From 81ebc682266dec65c79db964826302a27a282a99 Mon Sep 17 00:00:00 2001 From: David Xu Date: Thu, 24 Jul 2003 08:51:22 +0000 Subject: [PATCH] Set fault address to si_addr. Reviewed by: peter --- sys/amd64/amd64/machdep.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 0fb7a7db3e73..21a4b9878c9c 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -307,14 +307,17 @@ cpu_thread_siginfo(int sig, u_long code, siginfo_t *si) { struct proc *p; struct thread *td; + struct trapframe *regs; td = curthread; p = td->td_proc; + regs = td->td_frame; PROC_LOCK_ASSERT(p, MA_OWNED); bzero(si, sizeof(*si)); si->si_signo = sig; si->si_code = code; + si->si_addr = (void *)regs->tf_addr; /* XXXKSE fill other fields */ }