diff options
author | Olof Johansson <olof@lixom.net> | 2007-04-23 11:11:55 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-04-24 08:06:59 -0400 |
commit | 687304014f7ca8e2fbb3feaefef356b4a0da65ad (patch) | |
tree | 2212a33688e74d8c8bef0affe67cabbf5a14e03c /arch/powerpc/kernel/asm-offsets.c | |
parent | 6cfef5b27e49e826125f12637ee0d7210a896044 (diff) |
[POWERPC] Save trap number in bad_stack
Save the trap number in the case of getting a bad stack in an exception
handler. It is sometimes useful to know what exception it was that caused
this to happen. Without this, no trap number is reported.
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/asm-offsets.c')
-rw-r--r-- | arch/powerpc/kernel/asm-offsets.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/asm-offsets.c b/arch/powerpc/kernel/asm-offsets.c index 9735e828b52d..0c5150c69175 100644 --- a/arch/powerpc/kernel/asm-offsets.c +++ b/arch/powerpc/kernel/asm-offsets.c | |||
@@ -139,6 +139,7 @@ int main(void) | |||
139 | DEFINE(PACA_SYSTEM_TIME, offsetof(struct paca_struct, system_time)); | 139 | DEFINE(PACA_SYSTEM_TIME, offsetof(struct paca_struct, system_time)); |
140 | DEFINE(PACA_SLBSHADOWPTR, offsetof(struct paca_struct, slb_shadow_ptr)); | 140 | DEFINE(PACA_SLBSHADOWPTR, offsetof(struct paca_struct, slb_shadow_ptr)); |
141 | DEFINE(PACA_DATA_OFFSET, offsetof(struct paca_struct, data_offset)); | 141 | DEFINE(PACA_DATA_OFFSET, offsetof(struct paca_struct, data_offset)); |
142 | DEFINE(PACA_TRAP_SAVE, offsetof(struct paca_struct, trap_save)); | ||
142 | 143 | ||
143 | DEFINE(SLBSHADOW_STACKVSID, | 144 | DEFINE(SLBSHADOW_STACKVSID, |
144 | offsetof(struct slb_shadow, save_area[SLB_NUM_BOLTED - 1].vsid)); | 145 | offsetof(struct slb_shadow, save_area[SLB_NUM_BOLTED - 1].vsid)); |