aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/signal.c
diff options
context:
space:
mode:
authorK.Prasad <prasad@linux.vnet.ibm.com>2009-06-01 14:15:03 -0400
committerFrederic Weisbecker <fweisbec@gmail.com>2009-06-02 16:46:59 -0400
commitda0cdc14f5f7e0faee6b2393fefed056cdb17146 (patch)
tree7b37af4b77a61efc531325f3130a9c2432dabbc8 /arch/x86/kernel/signal.c
parent66cb5917295958652ff6ba36d83f98f2379c46b4 (diff)
hw-breakpoints: modify signal handling code to refrain from re-enabling HW Breakpoints
This patch disables re-enabling of Hardware Breakpoint registers through the signal handling code. This is now done during from hw_breakpoint_handler(). Original-patch-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: K.Prasad <prasad@linux.vnet.ibm.com> Reviewed-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'arch/x86/kernel/signal.c')
-rw-r--r--arch/x86/kernel/signal.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/x86/kernel/signal.c b/arch/x86/kernel/signal.c
index 14425166b8e3..f33d2e0ef095 100644
--- a/arch/x86/kernel/signal.c
+++ b/arch/x86/kernel/signal.c
@@ -800,15 +800,6 @@ static void do_signal(struct pt_regs *regs)
800 800
801 signr = get_signal_to_deliver(&info, &ka, regs, NULL); 801 signr = get_signal_to_deliver(&info, &ka, regs, NULL);
802 if (signr > 0) { 802 if (signr > 0) {
803 /*
804 * Re-enable any watchpoints before delivering the
805 * signal to user space. The processor register will
806 * have been cleared if the watchpoint triggered
807 * inside the kernel.
808 */
809 if (current->thread.debugreg7)
810 set_debugreg(current->thread.debugreg7, 7);
811
812 /* Whee! Actually deliver the signal. */ 803 /* Whee! Actually deliver the signal. */
813 if (handle_signal(signr, &info, &ka, oldset, regs) == 0) { 804 if (handle_signal(signr, &info, &ka, oldset, regs) == 0) {
814 /* 805 /*