summaryrefslogtreecommitdiffstats
path: root/sys/pc98
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/pc98
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/pc98')
-rw-r--r--sys/pc98/i386/machdep.c12
-rw-r--r--sys/pc98/pc98/machdep.c12
2 files changed, 12 insertions, 12 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c
index ea42cdc..6ccdffe 100644
--- a/sys/pc98/i386/machdep.c
+++ b/sys/pc98/i386/machdep.c
@@ -700,7 +700,7 @@ osigreturn(td, uap)
/* Go back to user mode if both flags are set. */
if ((eflags & PSL_VIP) && (eflags & PSL_VIF))
- trapsignal(p, SIGBUS, 0);
+ trapsignal(td, SIGBUS, 0);
if (vm86->vm86_has_vme) {
eflags = (tf->tf_eflags & ~VME_USERCHANGE) |
@@ -741,7 +741,7 @@ osigreturn(td, uap)
* other selectors, invalid %eip's and invalid %esp's.
*/
if (!CS_SECURE(scp->sc_cs)) {
- trapsignal(p, SIGBUS, T_PROTFLT);
+ trapsignal(td, SIGBUS, T_PROTFLT);
return (EINVAL);
}
regs->tf_ds = scp->sc_ds;
@@ -818,7 +818,7 @@ freebsd4_sigreturn(td, uap)
/* Go back to user mode if both flags are set. */
if ((eflags & PSL_VIP) && (eflags & PSL_VIF))
- trapsignal(p, SIGBUS, 0);
+ trapsignal(td, SIGBUS, 0);
if (vm86->vm86_has_vme) {
eflags = (tf->tf_eflags & ~VME_USERCHANGE) |
@@ -864,7 +864,7 @@ freebsd4_sigreturn(td, uap)
cs = ucp->uc_mcontext.mc_cs;
if (!CS_SECURE(cs)) {
printf("freebsd4_sigreturn: cs = 0x%x\n", cs);
- trapsignal(p, SIGBUS, T_PROTFLT);
+ trapsignal(td, SIGBUS, T_PROTFLT);
return (EINVAL);
}
@@ -925,7 +925,7 @@ sigreturn(td, uap)
/* Go back to user mode if both flags are set. */
if ((eflags & PSL_VIP) && (eflags & PSL_VIF))
- trapsignal(p, SIGBUS, 0);
+ trapsignal(td, SIGBUS, 0);
if (vm86->vm86_has_vme) {
eflags = (tf->tf_eflags & ~VME_USERCHANGE) |
@@ -971,7 +971,7 @@ sigreturn(td, uap)
cs = ucp->uc_mcontext.mc_cs;
if (!CS_SECURE(cs)) {
printf("sigreturn: cs = 0x%x\n", cs);
- trapsignal(p, SIGBUS, T_PROTFLT);
+ trapsignal(td, SIGBUS, T_PROTFLT);
return (EINVAL);
}
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c
index ea42cdc..6ccdffe 100644
--- a/sys/pc98/pc98/machdep.c
+++ b/sys/pc98/pc98/machdep.c
@@ -700,7 +700,7 @@ osigreturn(td, uap)
/* Go back to user mode if both flags are set. */
if ((eflags & PSL_VIP) && (eflags & PSL_VIF))
- trapsignal(p, SIGBUS, 0);
+ trapsignal(td, SIGBUS, 0);
if (vm86->vm86_has_vme) {
eflags = (tf->tf_eflags & ~VME_USERCHANGE) |
@@ -741,7 +741,7 @@ osigreturn(td, uap)
* other selectors, invalid %eip's and invalid %esp's.
*/
if (!CS_SECURE(scp->sc_cs)) {
- trapsignal(p, SIGBUS, T_PROTFLT);
+ trapsignal(td, SIGBUS, T_PROTFLT);
return (EINVAL);
}
regs->tf_ds = scp->sc_ds;
@@ -818,7 +818,7 @@ freebsd4_sigreturn(td, uap)
/* Go back to user mode if both flags are set. */
if ((eflags & PSL_VIP) && (eflags & PSL_VIF))
- trapsignal(p, SIGBUS, 0);
+ trapsignal(td, SIGBUS, 0);
if (vm86->vm86_has_vme) {
eflags = (tf->tf_eflags & ~VME_USERCHANGE) |
@@ -864,7 +864,7 @@ freebsd4_sigreturn(td, uap)
cs = ucp->uc_mcontext.mc_cs;
if (!CS_SECURE(cs)) {
printf("freebsd4_sigreturn: cs = 0x%x\n", cs);
- trapsignal(p, SIGBUS, T_PROTFLT);
+ trapsignal(td, SIGBUS, T_PROTFLT);
return (EINVAL);
}
@@ -925,7 +925,7 @@ sigreturn(td, uap)
/* Go back to user mode if both flags are set. */
if ((eflags & PSL_VIP) && (eflags & PSL_VIF))
- trapsignal(p, SIGBUS, 0);
+ trapsignal(td, SIGBUS, 0);
if (vm86->vm86_has_vme) {
eflags = (tf->tf_eflags & ~VME_USERCHANGE) |
@@ -971,7 +971,7 @@ sigreturn(td, uap)
cs = ucp->uc_mcontext.mc_cs;
if (!CS_SECURE(cs)) {
printf("sigreturn: cs = 0x%x\n", cs);
- trapsignal(p, SIGBUS, T_PROTFLT);
+ trapsignal(td, SIGBUS, T_PROTFLT);
return (EINVAL);
}
OpenPOWER on IntegriCloud