Commit 3cea45c6 authored by Mike Frysinger's avatar Mike Frysinger Committed by Linus Torvalds

sh: convert to asm-generic ptrace.h

Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Jason Wessel <jason.wessel@windriver.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Sergei Shtylyov <sshtylyov@mvista.com>
Cc: Dongdong Deng <dongdong.deng@windriver.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c46dd6b4
...@@ -40,9 +40,8 @@ ...@@ -40,9 +40,8 @@
#include <asm/system.h> #include <asm/system.h>
#define user_mode(regs) (((regs)->sr & 0x40000000)==0) #define user_mode(regs) (((regs)->sr & 0x40000000)==0)
#define user_stack_pointer(_regs) ((unsigned long)(_regs)->regs[15])
#define kernel_stack_pointer(_regs) ((unsigned long)(_regs)->regs[15]) #define kernel_stack_pointer(_regs) ((unsigned long)(_regs)->regs[15])
#define instruction_pointer(regs) ((unsigned long)(regs)->pc) #define GET_USP(regs) ((regs)->regs[15])
extern void show_regs(struct pt_regs *); extern void show_regs(struct pt_regs *);
...@@ -139,6 +138,9 @@ static inline unsigned long profile_pc(struct pt_regs *regs) ...@@ -139,6 +138,9 @@ static inline unsigned long profile_pc(struct pt_regs *regs)
return pc; return pc;
} }
#define profile_pc profile_pc
#include <asm-generic/ptrace.h>
#endif /* __KERNEL__ */ #endif /* __KERNEL__ */
#endif /* __ASM_SH_PTRACE_H */ #endif /* __ASM_SH_PTRACE_H */
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