summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2002-09-17 06:22:51 +0000
committerPeter Wemm <peter@FreeBSD.org>2002-09-17 06:22:51 +0000
commit6064ca520ae5f646d2fa62dc42f7538be3698a06 (patch)
tree33a29c25ce6f2aa080a4c7734ba64175b37cae65
parent40cfbfd5085b953f00e6fd3feb4d68ad34cf3312 (diff)
Notes
-rw-r--r--lib/libc/gen/swapcontext.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc/gen/swapcontext.c b/lib/libc/gen/swapcontext.c
index eeb2f782a3f5..f6ba87fc0dba 100644
--- a/lib/libc/gen/swapcontext.c
+++ b/lib/libc/gen/swapcontext.c
@@ -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)) {