ia64/xen-unstable

changeset 21:5029d4402aeb

bitkeeper revision 1.7.3.2 (3df0f173XnNFTDcxpCAbnHJZLHoMWw)

signal.c:
Only set DB7 on signal delivery when necessary
author kaf24@labyrinth.cl.cam.ac.uk
date Fri Dec 06 18:50:27 2002 +0000 (2002-12-06)
parents 1a7b9ea4cb94
children c89b11899064
files xenolinux-2.4.16-sparse/arch/xeno/kernel/signal.c
line diff
     1.1 --- a/xenolinux-2.4.16-sparse/arch/xeno/kernel/signal.c	Fri Dec 06 18:24:37 2002 +0000
     1.2 +++ b/xenolinux-2.4.16-sparse/arch/xeno/kernel/signal.c	Fri Dec 06 18:50:27 2002 +0000
     1.3 @@ -698,7 +698,8 @@ int do_signal(struct pt_regs *regs, sigs
     1.4                   * have been cleared if the watchpoint triggered
     1.5                   * inside the kernel.
     1.6                   */
     1.7 -                HYPERVISOR_set_debugreg(7, current->thread.debugreg[7]);
     1.8 +                if ( current->thread.debugreg[7] != 0 )
     1.9 +                    HYPERVISOR_set_debugreg(7, current->thread.debugreg[7]);
    1.10  
    1.11  		/* Whee!  Actually deliver the signal.  */
    1.12  		handle_signal(signr, ka, &info, oldset, regs);