mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Set fault address to si_addr.
Reviewed by: peter
This commit is contained in:
parent
5be9a825e2
commit
81ebc68226
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=117961
@ -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 */
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user