From 46e6ba39f10b4874298cd617b4db656bb562eb37 Mon Sep 17 00:00:00 2001 From: jeff Date: Mon, 31 Mar 2003 22:49:17 +0000 Subject: - Move p->p_sigmask to td->td_sigmask. Signal masks will be per thread with a follow on commit to kern_sig.c - signotify() now operates on a thread since unmasked pending signals are stored in the thread. - PS_NEEDSIGCHK moves to TDF_NEEDSIGCHK. --- sys/pc98/i386/machdep.c | 18 +++++++++--------- sys/pc98/pc98/machdep.c | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) (limited to 'sys/pc98') diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c index 6ccdffe..2b2b979 100644 --- a/sys/pc98/i386/machdep.c +++ b/sys/pc98/i386/machdep.c @@ -771,9 +771,9 @@ osigreturn(td, uap) else p->p_sigstk.ss_flags &= ~SS_ONSTACK; #endif - SIGSETOLD(p->p_sigmask, scp->sc_mask); - SIG_CANTMASK(p->p_sigmask); - signotify(p); + SIGSETOLD(td->td_sigmask, scp->sc_mask); + SIG_CANTMASK(td->td_sigmask); + signotify(td); PROC_UNLOCK(p); return (EJUSTRETURN); } @@ -879,9 +879,9 @@ freebsd4_sigreturn(td, uap) p->p_sigstk.ss_flags &= ~SS_ONSTACK; #endif - p->p_sigmask = ucp->uc_sigmask; - SIG_CANTMASK(p->p_sigmask); - signotify(p); + td->td_sigmask = ucp->uc_sigmask; + SIG_CANTMASK(td->td_sigmask); + signotify(td); PROC_UNLOCK(p); return (EJUSTRETURN); } @@ -989,9 +989,9 @@ sigreturn(td, uap) p->p_sigstk.ss_flags &= ~SS_ONSTACK; #endif - p->p_sigmask = ucp->uc_sigmask; - SIG_CANTMASK(p->p_sigmask); - signotify(p); + td->td_sigmask = ucp->uc_sigmask; + SIG_CANTMASK(td->td_sigmask); + signotify(td); PROC_UNLOCK(p); return (EJUSTRETURN); } diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index 6ccdffe..2b2b979 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -771,9 +771,9 @@ osigreturn(td, uap) else p->p_sigstk.ss_flags &= ~SS_ONSTACK; #endif - SIGSETOLD(p->p_sigmask, scp->sc_mask); - SIG_CANTMASK(p->p_sigmask); - signotify(p); + SIGSETOLD(td->td_sigmask, scp->sc_mask); + SIG_CANTMASK(td->td_sigmask); + signotify(td); PROC_UNLOCK(p); return (EJUSTRETURN); } @@ -879,9 +879,9 @@ freebsd4_sigreturn(td, uap) p->p_sigstk.ss_flags &= ~SS_ONSTACK; #endif - p->p_sigmask = ucp->uc_sigmask; - SIG_CANTMASK(p->p_sigmask); - signotify(p); + td->td_sigmask = ucp->uc_sigmask; + SIG_CANTMASK(td->td_sigmask); + signotify(td); PROC_UNLOCK(p); return (EJUSTRETURN); } @@ -989,9 +989,9 @@ sigreturn(td, uap) p->p_sigstk.ss_flags &= ~SS_ONSTACK; #endif - p->p_sigmask = ucp->uc_sigmask; - SIG_CANTMASK(p->p_sigmask); - signotify(p); + td->td_sigmask = ucp->uc_sigmask; + SIG_CANTMASK(td->td_sigmask); + signotify(td); PROC_UNLOCK(p); return (EJUSTRETURN); } -- cgit v1.1