mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
s390/dis: move disassembler function prototypes to proper header file
Now that the in-kernel disassembler has an own header file move the disassembler related function prototypes to that header file. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
648ae35c54
commit
0f20822a69
5 changed files with 7 additions and 6 deletions
|
@ -39,4 +39,8 @@ static inline int insn_length(unsigned char code)
|
||||||
return ((((int) code + 64) >> 7) + 1) << 1;
|
return ((((int) code + 64) >> 7) + 1) << 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void show_code(struct pt_regs *regs);
|
||||||
|
void print_fn_code(unsigned char *code, unsigned long len);
|
||||||
|
int insn_to_mnemonic(unsigned char *instruction, char *buf, unsigned int len);
|
||||||
|
|
||||||
#endif /* __ASM_S390_DIS_H__ */
|
#endif /* __ASM_S390_DIS_H__ */
|
||||||
|
|
|
@ -169,11 +169,6 @@ extern void release_thread(struct task_struct *);
|
||||||
*/
|
*/
|
||||||
extern unsigned long thread_saved_pc(struct task_struct *t);
|
extern unsigned long thread_saved_pc(struct task_struct *t);
|
||||||
|
|
||||||
extern void show_code(struct pt_regs *regs);
|
|
||||||
extern void print_fn_code(unsigned char *code, unsigned long len);
|
|
||||||
extern int insn_to_mnemonic(unsigned char *instruction, char *buf,
|
|
||||||
unsigned int len);
|
|
||||||
|
|
||||||
unsigned long get_wchan(struct task_struct *p);
|
unsigned long get_wchan(struct task_struct *p);
|
||||||
#define task_pt_regs(tsk) ((struct pt_regs *) \
|
#define task_pt_regs(tsk) ((struct pt_regs *) \
|
||||||
(task_stack_page(tsk) + THREAD_SIZE) - 1)
|
(task_stack_page(tsk) + THREAD_SIZE) - 1)
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
#include <linux/sched.h>
|
#include <linux/sched.h>
|
||||||
#include <asm/processor.h>
|
#include <asm/processor.h>
|
||||||
#include <asm/debug.h>
|
#include <asm/debug.h>
|
||||||
|
#include <asm/dis.h>
|
||||||
#include <asm/ipl.h>
|
#include <asm/ipl.h>
|
||||||
|
|
||||||
#ifndef CONFIG_64BIT
|
#ifndef CONFIG_64BIT
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
#include <linux/tracepoint.h>
|
#include <linux/tracepoint.h>
|
||||||
#include <asm/sigp.h>
|
#include <asm/sigp.h>
|
||||||
#include <asm/debug.h>
|
#include <asm/debug.h>
|
||||||
|
#include <asm/dis.h>
|
||||||
|
|
||||||
#undef TRACE_SYSTEM
|
#undef TRACE_SYSTEM
|
||||||
#define TRACE_SYSTEM kvm
|
#define TRACE_SYSTEM kvm
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
#include <linux/random.h>
|
#include <linux/random.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <asm/cacheflush.h>
|
#include <asm/cacheflush.h>
|
||||||
#include <asm/processor.h>
|
|
||||||
#include <asm/facility.h>
|
#include <asm/facility.h>
|
||||||
|
#include <asm/dis.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Conventions:
|
* Conventions:
|
||||||
|
|
Loading…
Add table
Reference in a new issue