diff options
author | peter <peter@FreeBSD.org> | 2002-09-17 07:40:15 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-09-17 07:40:15 +0000 |
commit | 70885af57c8961e148c76377cd7376de2dbac0fc (patch) | |
tree | 1a8d204e0b2e38d4b4a7a864329d9392ff260b25 /sys/kern/kern_thread.c | |
parent | 773f57148083a9645a1164d46262b80e8ce46556 (diff) | |
download | FreeBSD-src-70885af57c8961e148c76377cd7376de2dbac0fc.zip FreeBSD-src-70885af57c8961e148c76377cd7376de2dbac0fc.tar.gz |
Stub out the calls to get_mcontext and set_mcontext which only exist on
i386. This stuff should not be prototyped in MD inludes if the interface
is expected to be MI.
Diffstat (limited to 'sys/kern/kern_thread.c')
-rw-r--r-- | sys/kern/kern_thread.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index 8324773..08fd626 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -171,7 +171,11 @@ 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 uc->uc_sigmask = td->td_proc->p_sigmask; } @@ -185,7 +189,13 @@ 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); |