summaryrefslogtreecommitdiffstats
path: root/sys/i386/linux/linux_sysvec.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2003-03-31 22:02:38 +0000
committerjeff <jeff@FreeBSD.org>2003-03-31 22:02:38 +0000
commit4a3718fb251369224e283ab56a6a157fc2cc75ed (patch)
tree9692813d1ffe9f9b0937d412c615f0a0ddfd7eb8 /sys/i386/linux/linux_sysvec.c
parent848087b9b0b45a29daa2a3f8acf9cb8d797e8b51 (diff)
downloadFreeBSD-src-4a3718fb251369224e283ab56a6a157fc2cc75ed.zip
FreeBSD-src-4a3718fb251369224e283ab56a6a157fc2cc75ed.tar.gz
- Change trapsignal() to accept a thread and not a proc.
- Change all consumers to pass in a thread. Right now this does not cause any functional changes but it will be important later when signals can be delivered to specific threads.
Diffstat (limited to 'sys/i386/linux/linux_sysvec.c')
-rw-r--r--sys/i386/linux/linux_sysvec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/linux/linux_sysvec.c b/sys/i386/linux/linux_sysvec.c
index 309c4fc..017a2e0 100644
--- a/sys/i386/linux/linux_sysvec.c
+++ b/sys/i386/linux/linux_sysvec.c
@@ -554,7 +554,7 @@ linux_sigreturn(struct thread *td, struct linux_sigreturn_args *args)
*/
#define CS_SECURE(cs) (ISPL(cs) == SEL_UPL)
if (!CS_SECURE(frame.sf_sc.sc_cs)) {
- trapsignal(p, SIGBUS, T_PROTFLT);
+ trapsignal(td, SIGBUS, T_PROTFLT);
return(EINVAL);
}
@@ -652,7 +652,7 @@ linux_rt_sigreturn(struct thread *td, struct linux_rt_sigreturn_args *args)
*/
#define CS_SECURE(cs) (ISPL(cs) == SEL_UPL)
if (!CS_SECURE(context->sc_cs)) {
- trapsignal(p, SIGBUS, T_PROTFLT);
+ trapsignal(td, SIGBUS, T_PROTFLT);
return(EINVAL);
}
OpenPOWER on IntegriCloud