]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Blackfin arch: ptrace - make sure PT_ORIG_R0 and PT_ORIG_P0 offsets are declared
authorMike Frysinger <vapier.adi@gmail.com>
Thu, 9 Oct 2008 07:22:56 +0000 (15:22 +0800)
committerBryan Wu <cooloney@kernel.org>
Thu, 9 Oct 2008 07:22:56 +0000 (15:22 +0800)
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
arch/blackfin/include/asm/ptrace.h
arch/blackfin/kernel/asm-offsets.c

index a45a80e54adcbe75a774df805d881c03a8da7015..e3f086dc7268eca47b1d7c4c72d57fa13a2d0f40 100644 (file)
@@ -158,6 +158,8 @@ extern void show_regs(struct pt_regs *);
 #define PT_SEQSTAT 8
 #define PT_IPEND 4
 
+#define PT_ORIG_R0 208
+#define PT_ORIG_P0 212
 #define PT_SYSCFG 216
 #define PT_TEXT_ADDR 220
 #define PT_TEXT_END_ADDR 224
index 881afe9082c76744bd9bdb01cc0bcd564a50f973..9bb85dd5ccb39a65d0926dcf27c019f6fa44df34 100644 (file)
@@ -60,6 +60,7 @@ int main(void)
        DEFINE(KERNEL_STACK_SIZE, THREAD_SIZE);
 
        /* offsets into the pt_regs */
+       DEFINE(PT_ORIG_R0, offsetof(struct pt_regs, orig_r0));
        DEFINE(PT_ORIG_P0, offsetof(struct pt_regs, orig_p0));
        DEFINE(PT_ORIG_PC, offsetof(struct pt_regs, orig_pc));
        DEFINE(PT_R0, offsetof(struct pt_regs, r0));