Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh: convert to asm-generic ptrace.h

Signed-off-by: Mike 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: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Mike Frysinger and committed by
Linus Torvalds
3cea45c6 c46dd6b4

+4 -2
+4 -2
arch/sh/include/asm/ptrace.h
··· 40 40 #include <asm/system.h> 41 41 42 42 #define user_mode(regs) (((regs)->sr & 0x40000000)==0) 43 - #define user_stack_pointer(_regs) ((unsigned long)(_regs)->regs[15]) 44 43 #define kernel_stack_pointer(_regs) ((unsigned long)(_regs)->regs[15]) 45 - #define instruction_pointer(regs) ((unsigned long)(regs)->pc) 44 + #define GET_USP(regs) ((regs)->regs[15]) 46 45 47 46 extern void show_regs(struct pt_regs *); 48 47 ··· 138 139 139 140 return pc; 140 141 } 142 + #define profile_pc profile_pc 143 + 144 + #include <asm-generic/ptrace.h> 141 145 #endif /* __KERNEL__ */ 142 146 143 147 #endif /* __ASM_SH_PTRACE_H */