From 554fb3155709b904a93ff82faea577e959db6102 Mon Sep 17 00:00:00 2001 From: jeff Date: Mon, 31 Mar 2003 22:41:32 +0000 Subject: [PATCH] - Fix two calls to trapsignal() that were still passing in 'struct proc'. These were missed in my last commit. --- sys/amd64/amd64/trap.c | 4 ++-- sys/i386/i386/trap.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c index d29cc079366c..0eb46ee99ed4 100644 --- a/sys/amd64/amd64/trap.c +++ b/sys/amd64/amd64/trap.c @@ -645,7 +645,7 @@ trap(frame) if (*p->p_sysent->sv_transtrap) i = (*p->p_sysent->sv_transtrap)(i, type); - trapsignal(p, i, ucode); + trapsignal(td, i, ucode); #ifdef DEBUG if (type <= MAX_TRAP_MSG) { @@ -1071,7 +1071,7 @@ syscall(frame) */ if ((orig_tf_eflags & PSL_T) && !(orig_tf_eflags & PSL_VM)) { frame.tf_eflags &= ~PSL_T; - trapsignal(p, SIGTRAP, 0); + trapsignal(td, SIGTRAP, 0); } /* diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c index d29cc079366c..0eb46ee99ed4 100644 --- a/sys/i386/i386/trap.c +++ b/sys/i386/i386/trap.c @@ -645,7 +645,7 @@ trap(frame) if (*p->p_sysent->sv_transtrap) i = (*p->p_sysent->sv_transtrap)(i, type); - trapsignal(p, i, ucode); + trapsignal(td, i, ucode); #ifdef DEBUG if (type <= MAX_TRAP_MSG) { @@ -1071,7 +1071,7 @@ syscall(frame) */ if ((orig_tf_eflags & PSL_T) && !(orig_tf_eflags & PSL_VM)) { frame.tf_eflags &= ~PSL_T; - trapsignal(p, SIGTRAP, 0); + trapsignal(td, SIGTRAP, 0); } /*