diff options
author | Ananth N Mavinakayanahalli <ananth@in.ibm.com> | 2012-08-23 21:27:09 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-09-05 15:19:36 +1000 |
commit | 41ab5266c3622354353433618edb92ab278025fa (patch) | |
tree | 5e1313a104ae877a174a88a2c93eb010f1bd5861 /arch/powerpc/include/asm/processor.h | |
parent | 7118e7e648e0a902bf4f38c55a25fcff730f33d7 (diff) | |
download | blackbird-op-linux-41ab5266c3622354353433618edb92ab278025fa.tar.gz blackbird-op-linux-41ab5266c3622354353433618edb92ab278025fa.zip |
powerpc: Add trap_nr to thread_struct
Add thread_struct.trap_nr and use it to store the last exception
the thread experienced. In this patch, we populate the field at
various places where we force_sig_info() to the process.
This is also used in uprobes to determine if the probed instruction
caused an exception.
Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/processor.h')
-rw-r--r-- | arch/powerpc/include/asm/processor.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/processor.h b/arch/powerpc/include/asm/processor.h index 53b6dfa83344..e0f6710d1983 100644 --- a/arch/powerpc/include/asm/processor.h +++ b/arch/powerpc/include/asm/processor.h @@ -219,6 +219,7 @@ struct thread_struct { #endif /* CONFIG_HAVE_HW_BREAKPOINT */ #endif unsigned long dabr; /* Data address breakpoint register */ + unsigned long trap_nr; /* last trap # on this thread */ #ifdef CONFIG_ALTIVEC /* Complete AltiVec register set */ vector128 vr[32] __attribute__((aligned(16))); |