mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Bandaid to stop failing on non-i386 platforms.
Add a big ugly #warning as a reminder.
This commit is contained in:
parent
40cfbfd508
commit
6064ca520a
1 changed files with 5 additions and 0 deletions
|
|
@ -36,11 +36,15 @@ __FBSDID("$FreeBSD$");
|
|||
|
||||
__weak_reference(__swapcontext, swapcontext);
|
||||
|
||||
#warning "FIX __swapcontext on non i386 please!"
|
||||
|
||||
int
|
||||
__swapcontext(ucontext_t *oucp, const ucontext_t *ucp)
|
||||
{
|
||||
int ret;
|
||||
|
||||
#ifdef __i386__
|
||||
/* XXX PLEASE FIX! XXX */
|
||||
if ((oucp == NULL) ||
|
||||
(oucp->uc_mcontext.mc_len != sizeof(mcontext_t)) ||
|
||||
(ucp == NULL) ||
|
||||
|
|
@ -48,6 +52,7 @@ __swapcontext(ucontext_t *oucp, const ucontext_t *ucp)
|
|||
errno = EINVAL;
|
||||
return (-1);
|
||||
}
|
||||
#endif
|
||||
oucp->uc_flags &= ~UCF_SWAPPED;
|
||||
ret = getcontext(oucp);
|
||||
if ((ret == 0) && !(oucp->uc_flags & UCF_SWAPPED)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue