Title: [9842] trunk/arch/sh/include/asm/ptrace.h: sh: convert to asm-generic ptrace.h
- Revision
- 9842
- Author
- vapier
- Date
- 2011-04-14 21:10:45 -0400 (Thu, 14 Apr 2011)
Log Message
sh: convert to asm-generic ptrace.h
Modified Paths
Diff
Modified: trunk/arch/sh/include/asm/ptrace.h (9841 => 9842)
--- trunk/arch/sh/include/asm/ptrace.h 2011-04-15 01:10:26 UTC (rev 9841)
+++ trunk/arch/sh/include/asm/ptrace.h 2011-04-15 01:10:45 UTC (rev 9842)
@@ -40,9 +40,8 @@
#include <asm/system.h>
#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 instruction_pointer(regs) ((unsigned long)(regs)->pc)
+#define GET_USP(regs) ((regs)->regs[15])
#define arch_has_single_step() (1)
@@ -137,6 +136,9 @@
return pc;
}
+#define profile_pc profile_pc
+
+#include <asm-generic/ptrace.h>
#endif /* __KERNEL__ */
#endif /* __ASM_SH_PTRACE_H */
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits