MFi386: revision 1.517.
This commit is contained in:
parent
961ff64e43
commit
4c6efe7dae
@ -548,6 +548,8 @@ sendsig(catcher, sig, mask, code)
|
||||
* context left by sendsig. Check carefully to
|
||||
* make sure that the user has not modified the
|
||||
* state to gain improper privileges.
|
||||
*
|
||||
* MPSAFE
|
||||
*/
|
||||
int
|
||||
osigreturn(td, uap)
|
||||
@ -644,6 +646,10 @@ osigreturn(td, uap)
|
||||
regs->tf_cs = scp->sc_cs;
|
||||
regs->tf_ss = scp->sc_ss;
|
||||
regs->tf_isp = scp->sc_isp;
|
||||
regs->tf_ebp = scp->sc_fp;
|
||||
regs->tf_esp = scp->sc_sp;
|
||||
regs->tf_eip = scp->sc_pc;
|
||||
regs->tf_eflags = eflags;
|
||||
|
||||
PROC_LOCK(p);
|
||||
#if defined(COMPAT_43) || defined(COMPAT_SUNOS)
|
||||
@ -652,21 +658,19 @@ 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);
|
||||
PROC_UNLOCK(p);
|
||||
regs->tf_ebp = scp->sc_fp;
|
||||
regs->tf_esp = scp->sc_sp;
|
||||
regs->tf_eip = scp->sc_pc;
|
||||
regs->tf_eflags = eflags;
|
||||
return (EJUSTRETURN);
|
||||
#else /* !COMPAT_43 */
|
||||
return (ENOSYS);
|
||||
#endif /* COMPAT_43 */
|
||||
}
|
||||
|
||||
/*
|
||||
* MPSAFE
|
||||
*/
|
||||
int
|
||||
sigreturn(td, uap)
|
||||
struct thread *td;
|
||||
|
@ -548,6 +548,8 @@ sendsig(catcher, sig, mask, code)
|
||||
* context left by sendsig. Check carefully to
|
||||
* make sure that the user has not modified the
|
||||
* state to gain improper privileges.
|
||||
*
|
||||
* MPSAFE
|
||||
*/
|
||||
int
|
||||
osigreturn(td, uap)
|
||||
@ -644,6 +646,10 @@ osigreturn(td, uap)
|
||||
regs->tf_cs = scp->sc_cs;
|
||||
regs->tf_ss = scp->sc_ss;
|
||||
regs->tf_isp = scp->sc_isp;
|
||||
regs->tf_ebp = scp->sc_fp;
|
||||
regs->tf_esp = scp->sc_sp;
|
||||
regs->tf_eip = scp->sc_pc;
|
||||
regs->tf_eflags = eflags;
|
||||
|
||||
PROC_LOCK(p);
|
||||
#if defined(COMPAT_43) || defined(COMPAT_SUNOS)
|
||||
@ -652,21 +658,19 @@ 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);
|
||||
PROC_UNLOCK(p);
|
||||
regs->tf_ebp = scp->sc_fp;
|
||||
regs->tf_esp = scp->sc_sp;
|
||||
regs->tf_eip = scp->sc_pc;
|
||||
regs->tf_eflags = eflags;
|
||||
return (EJUSTRETURN);
|
||||
#else /* !COMPAT_43 */
|
||||
return (ENOSYS);
|
||||
#endif /* COMPAT_43 */
|
||||
}
|
||||
|
||||
/*
|
||||
* MPSAFE
|
||||
*/
|
||||
int
|
||||
sigreturn(td, uap)
|
||||
struct thread *td;
|
||||
|
Loading…
Reference in New Issue
Block a user