]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] ia64: pass si_isr for a few more signal sources
authorStéphane Eranian <eranian@hpl.hp.com>
Thu, 18 Sep 2003 05:07:24 +0000 (22:07 -0700)
committerDavid Mosberger <davidm@tiger.hpl.hp.com>
Thu, 18 Sep 2003 05:07:24 +0000 (22:07 -0700)
This patch changes the kernel such that si_isr gets setup for hardware
breakpoints, single-step, and taken-branch traps.  This is useful, e.g., to
determine what kind of hw breakpoint triggered the signal.

arch/ia64/kernel/traps.c

index 2e6cd77d03504da8a36134f54f32dd5be07cae37..522d5b3a4bf740510802549de50884ce2b8254a7 100644 (file)
@@ -568,10 +568,10 @@ ia64_fault (unsigned long vector, unsigned long isr, unsigned long ifa,
                }
                siginfo.si_signo = SIGTRAP;
                siginfo.si_errno = 0;
-               siginfo.si_flags = 0;
-               siginfo.si_isr = 0;
-               siginfo.si_addr = (void *) ifa;
-               siginfo.si_imm = 0;
+               siginfo.si_addr  = (void *) ifa;
+               siginfo.si_imm   = 0;
+               siginfo.si_flags = __ISR_VALID;
+               siginfo.si_isr   = isr;
                force_sig_info(SIGTRAP, &siginfo, current);
                return;