summaryrefslogtreecommitdiffstats
path: root/include/asm-frv/ptrace.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2006-07-10 13:44:55 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-07-10 22:24:22 +0200
commit84e8cd6dbc00b4979e8d1c15c80d91987aeb3417 (patch)
tree5df8103b5e6d414bc39e165655ae8bd5341abd76 /include/asm-frv/ptrace.h
parent[PATCH] FDPIC: Add coredump capability for the ELF-FDPIC binfmt (diff)
downloadlinux-84e8cd6dbc00b4979e8d1c15c80d91987aeb3417.tar.xz
linux-84e8cd6dbc00b4979e8d1c15c80d91987aeb3417.zip
[PATCH] FRV: Introduce asm-offsets for FRV arch
Introduce the use of asm-offsets into the FRV architecture. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-frv/ptrace.h')
-rw-r--r--include/asm-frv/ptrace.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/include/asm-frv/ptrace.h b/include/asm-frv/ptrace.h
index b2cce0718e57..7ff525162a72 100644
--- a/include/asm-frv/ptrace.h
+++ b/include/asm-frv/ptrace.h
@@ -62,18 +62,10 @@
#ifndef __ASSEMBLY__
/*
- * dedicate GR28; to keeping the a pointer to the current exception frame
+ * we dedicate GR28 to keeping a pointer to the current exception frame
+ * - gr28 is destroyed on entry to the kernel from userspace
*/
register struct pt_regs *__frame asm("gr28");
-register struct pt_regs *__debug_frame asm("gr31");
-
-#ifndef container_of
-#define container_of(ptr, type, member) ({ \
- const typeof( ((type *)0)->member ) *__mptr = (ptr); \
- (type *)( (char *)__mptr - offsetof(type,member) );})
-#endif
-
-#define __debug_regs container_of(__debug_frame, struct pt_debug_regs, normal_regs)
#define user_mode(regs) (!((regs)->psr & PSR_S))
#define instruction_pointer(regs) ((regs)->pc)