diff options
author | davidxu <davidxu@FreeBSD.org> | 2003-07-24 08:51:22 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2003-07-24 08:51:22 +0000 |
commit | 181093ade7e06086c04e2ecab88d6f11b2550cb2 (patch) | |
tree | bb5a9d7f13ba7478f9ca5113b1ebb23b7f81c4f8 /sys/amd64 | |
parent | 21804925b22e8dfdb24c092b7313df2d2b7d2097 (diff) | |
download | FreeBSD-src-181093ade7e06086c04e2ecab88d6f11b2550cb2.zip FreeBSD-src-181093ade7e06086c04e2ecab88d6f11b2550cb2.tar.gz |
Set fault address to si_addr.
Reviewed by: peter
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/machdep.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 0fb7a7d..21a4b98 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 */ } |