Commit 0f20822a authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky

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: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 648ae35c
...@@ -39,4 +39,8 @@ static inline int insn_length(unsigned char code) ...@@ -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 *); ...@@ -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 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment