diff options
Diffstat (limited to 'sys/kern/kern_thread.c')
-rw-r--r-- | sys/kern/kern_thread.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index 48f5ac0..ac7daa4 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -729,13 +729,7 @@ void thread_getcontext(struct thread *td, ucontext_t *uc) { -/* - * XXX this is declared in a MD include file, i386/include/ucontext.h but - * is used in MI code. - */ -#ifdef __i386__ - get_mcontext(td, &uc->uc_mcontext); -#endif + get_mcontext(td, &uc->uc_mcontext, 0); PROC_LOCK(td->td_proc); uc->uc_sigmask = td->td_sigmask; PROC_UNLOCK(td->td_proc); @@ -751,15 +745,7 @@ thread_setcontext(struct thread *td, ucontext_t *uc) { int ret; -/* - * XXX this is declared in a MD include file, i386/include/ucontext.h but - * is used in MI code. - */ -#ifdef __i386__ ret = set_mcontext(td, &uc->uc_mcontext); -#else - ret = ENOSYS; -#endif if (ret == 0) { SIG_CANTMASK(uc->uc_sigmask); PROC_LOCK(td->td_proc); |