Improve the change in the previous commit: use a stub for osigreturn()
when it is not really used instead of unconditionalizing all of it.
This commit is contained in:
parent
42dcd8695a
commit
5c8d0a85b0
@ -1446,6 +1446,7 @@ osigreturn(struct thread *td,
|
||||
struct osigcontext *sigcntxp;
|
||||
} */ *uap)
|
||||
{
|
||||
#ifdef COMPAT_43
|
||||
struct osigcontext *scp, ksc;
|
||||
struct proc *p = td->td_proc;
|
||||
|
||||
@ -1498,6 +1499,9 @@ osigreturn(struct thread *td,
|
||||
sizeof(struct fpreg));
|
||||
td->td_pcb->pcb_fp_control = ksc.sc_fp_control;
|
||||
return (EJUSTRETURN);
|
||||
#else /* !COMPAT_43 */
|
||||
return (ENOSYS);
|
||||
#endif /* COMPAT_43 */
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -594,6 +594,7 @@ osigreturn(td, uap)
|
||||
struct osigcontext *sigcntxp;
|
||||
} */ *uap;
|
||||
{
|
||||
#ifdef COMPAT_43
|
||||
struct trapframe *regs;
|
||||
struct osigcontext *scp;
|
||||
struct proc *p = td->td_proc;
|
||||
@ -696,6 +697,9 @@ osigreturn(td, uap)
|
||||
regs->tf_eip = scp->sc_pc;
|
||||
regs->tf_eflags = eflags;
|
||||
return (EJUSTRETURN);
|
||||
#else /* !COMPAT_43 */
|
||||
return (ENOSYS);
|
||||
#endif /* COMPAT_43 */
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -594,6 +594,7 @@ osigreturn(td, uap)
|
||||
struct osigcontext *sigcntxp;
|
||||
} */ *uap;
|
||||
{
|
||||
#ifdef COMPAT_43
|
||||
struct trapframe *regs;
|
||||
struct osigcontext *scp;
|
||||
struct proc *p = td->td_proc;
|
||||
@ -696,6 +697,9 @@ osigreturn(td, uap)
|
||||
regs->tf_eip = scp->sc_pc;
|
||||
regs->tf_eflags = eflags;
|
||||
return (EJUSTRETURN);
|
||||
#else /* !COMPAT_43 */
|
||||
return (ENOSYS);
|
||||
#endif /* COMPAT_43 */
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -607,6 +607,7 @@ osigreturn(td, uap)
|
||||
struct osigcontext *sigcntxp;
|
||||
} */ *uap;
|
||||
{
|
||||
#ifdef COMPAT_43
|
||||
struct trapframe *regs;
|
||||
struct osigcontext *scp;
|
||||
struct proc *p = td->td_proc;
|
||||
@ -709,6 +710,9 @@ osigreturn(td, uap)
|
||||
regs->tf_eip = scp->sc_pc;
|
||||
regs->tf_eflags = eflags;
|
||||
return (EJUSTRETURN);
|
||||
#else /* !COMPAT_43 */
|
||||
return (ENOSYS);
|
||||
#endif /* COMPAT_43 */
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -607,6 +607,7 @@ osigreturn(td, uap)
|
||||
struct osigcontext *sigcntxp;
|
||||
} */ *uap;
|
||||
{
|
||||
#ifdef COMPAT_43
|
||||
struct trapframe *regs;
|
||||
struct osigcontext *scp;
|
||||
struct proc *p = td->td_proc;
|
||||
@ -709,6 +710,9 @@ osigreturn(td, uap)
|
||||
regs->tf_eip = scp->sc_pc;
|
||||
regs->tf_eflags = eflags;
|
||||
return (EJUSTRETURN);
|
||||
#else /* !COMPAT_43 */
|
||||
return (ENOSYS);
|
||||
#endif /* COMPAT_43 */
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user