]> git.karo-electronics.de Git - mv-sheeva.git/commit
powerpc, hw_breakpoint: Discard extraneous interrupt due to accesses outside symbol...
authorK.Prasad <prasad@linux.vnet.ibm.com>
Tue, 15 Jun 2010 06:06:12 +0000 (11:36 +0530)
committerPaul Mackerras <paulus@samba.org>
Tue, 22 Jun 2010 09:40:51 +0000 (19:40 +1000)
commite3e94084adb5610987283367574ebc771e8206e1
tree2787caa5a5f657a218d199b7dff8c7dcd326eb7f
parent06532a6743d83fac4b79389fc8c86c88cb4e3302
powerpc, hw_breakpoint: Discard extraneous interrupt due to accesses outside symbol length

Many a times, the requested breakpoint length can be less than the
fixed breakpoint length i.e. 8 bytes supported by PowerPC 64-bit
server (Book III S) processors.  This could lead to extraneous
interrupts resulting in false breakpoint notifications.  This
detects and discards such interrupts for non-ptrace requests.
We don't change ptrace behaviour to avoid breaking compatability.

[Suggestion from Paul Mackerras <paulus@samba.org> to add a new flag in
'struct arch_hw_breakpoint' to identify extraneous interrupts]

Signed-off-by: K.Prasad <prasad@linux.vnet.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/include/asm/hw_breakpoint.h
arch/powerpc/kernel/hw_breakpoint.c