diff options
Diffstat (limited to 'sys/kern/kern_context.c')
-rw-r--r-- | sys/kern/kern_context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_context.c b/sys/kern/kern_context.c index ca3e2b1..300b1f4 100644 --- a/sys/kern/kern_context.c +++ b/sys/kern/kern_context.c @@ -70,7 +70,7 @@ getcontext(struct thread *td, struct getcontext_args *uap) if (uap->ucp == NULL) ret = EINVAL; else { - get_mcontext(td, &uc.uc_mcontext, 1); + get_mcontext(td, &uc.uc_mcontext, GET_MC_CLEAR_RET); PROC_LOCK(td->td_proc); uc.uc_sigmask = td->td_sigmask; PROC_UNLOCK(td->td_proc); @@ -114,7 +114,7 @@ swapcontext(struct thread *td, struct swapcontext_args *uap) if (uap->oucp == NULL || uap->ucp == NULL) ret = EINVAL; else { - get_mcontext(td, &uc.uc_mcontext, 1); + get_mcontext(td, &uc.uc_mcontext, GET_MC_CLEAR_RET); PROC_LOCK(td->td_proc); uc.uc_sigmask = td->td_sigmask; PROC_UNLOCK(td->td_proc); |