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.
This commit is contained in:
Peter Wemm 2002-09-17 07:40:15 +00:00
parent 8da4b35652
commit 1e19df3303
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103463
2 changed files with 20 additions and 0 deletions

View File

@ -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);

View File

@ -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);