Title: [9841] trunk/arch/x86/include/asm/ptrace.h: x86: convert to asm-generic ptrace.h
Revision
9841
Author
vapier
Date
2011-04-14 21:10:26 -0400 (Thu, 14 Apr 2011)

Log Message

x86: convert to asm-generic ptrace.h

Modified Paths


Diff

Modified: trunk/arch/x86/include/asm/ptrace.h (9840 => 9841)


--- trunk/arch/x86/include/asm/ptrace.h	2011-04-15 01:10:10 UTC (rev 9840)
+++ trunk/arch/x86/include/asm/ptrace.h	2011-04-15 01:10:26 UTC (rev 9841)
@@ -136,6 +136,7 @@
 struct task_struct;
 
 extern unsigned long profile_pc(struct pt_regs *regs);
+#define profile_pc profile_pc
 
 extern unsigned long
 convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs);
@@ -202,21 +203,12 @@
 #endif
 }
 
-static inline unsigned long instruction_pointer(struct pt_regs *regs)
-{
-	return regs->ip;
-}
+#define GET_IP(regs) ((regs)->ip)
+#define GET_FP(regs) ((regs)->bp)
+#define GET_USP(regs) ((regs)->sp)
 
-static inline unsigned long frame_pointer(struct pt_regs *regs)
-{
-	return regs->bp;
-}
+#include <asm-generic/ptrace.h>
 
-static inline unsigned long user_stack_pointer(struct pt_regs *regs)
-{
-	return regs->sp;
-}
-
 /* Query offset/name of register from its name/offset */
 extern int regs_query_register_offset(const char *name);
 extern const char *regs_query_register_name(unsigned int offset);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to