diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2008-10-09 03:22:56 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-10-09 03:22:56 -0400 |
commit | f5a817e3f707759882e423060badd2f2e52b66a4 (patch) | |
tree | 498fe571c12989c73db3b540607054407472db61 /arch | |
parent | cb4c173d94e90f9d8c7b621d1a8dfc8b741874a2 (diff) |
Blackfin arch: ptrace - make sure PT_ORIG_R0 and PT_ORIG_P0 offsets are declared
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/blackfin/include/asm/ptrace.h | 2 | ||||
-rw-r--r-- | arch/blackfin/kernel/asm-offsets.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/ptrace.h b/arch/blackfin/include/asm/ptrace.h index a45a80e54adc..e3f086dc7268 100644 --- a/arch/blackfin/include/asm/ptrace.h +++ b/arch/blackfin/include/asm/ptrace.h | |||
@@ -158,6 +158,8 @@ extern void show_regs(struct pt_regs *); | |||
158 | #define PT_SEQSTAT 8 | 158 | #define PT_SEQSTAT 8 |
159 | #define PT_IPEND 4 | 159 | #define PT_IPEND 4 |
160 | 160 | ||
161 | #define PT_ORIG_R0 208 | ||
162 | #define PT_ORIG_P0 212 | ||
161 | #define PT_SYSCFG 216 | 163 | #define PT_SYSCFG 216 |
162 | #define PT_TEXT_ADDR 220 | 164 | #define PT_TEXT_ADDR 220 |
163 | #define PT_TEXT_END_ADDR 224 | 165 | #define PT_TEXT_END_ADDR 224 |
diff --git a/arch/blackfin/kernel/asm-offsets.c b/arch/blackfin/kernel/asm-offsets.c index 881afe9082c7..9bb85dd5ccb3 100644 --- a/arch/blackfin/kernel/asm-offsets.c +++ b/arch/blackfin/kernel/asm-offsets.c | |||
@@ -60,6 +60,7 @@ int main(void) | |||
60 | DEFINE(KERNEL_STACK_SIZE, THREAD_SIZE); | 60 | DEFINE(KERNEL_STACK_SIZE, THREAD_SIZE); |
61 | 61 | ||
62 | /* offsets into the pt_regs */ | 62 | /* offsets into the pt_regs */ |
63 | DEFINE(PT_ORIG_R0, offsetof(struct pt_regs, orig_r0)); | ||
63 | DEFINE(PT_ORIG_P0, offsetof(struct pt_regs, orig_p0)); | 64 | DEFINE(PT_ORIG_P0, offsetof(struct pt_regs, orig_p0)); |
64 | DEFINE(PT_ORIG_PC, offsetof(struct pt_regs, orig_pc)); | 65 | DEFINE(PT_ORIG_PC, offsetof(struct pt_regs, orig_pc)); |
65 | DEFINE(PT_R0, offsetof(struct pt_regs, r0)); | 66 | DEFINE(PT_R0, offsetof(struct pt_regs, r0)); |