summaryrefslogtreecommitdiff
path: root/lib/libc_r
diff options
context:
space:
mode:
authorDavid Leonard <d@cvs.openbsd.org>1999-03-10 09:50:34 +0000
committerDavid Leonard <d@cvs.openbsd.org>1999-03-10 09:50:34 +0000
commitdf6a35e6ef978469275c15f590e00a85f9442815 (patch)
treea7397dcef7ff6305e6736a0f5eb61a93fbef845e /lib/libc_r
parent8c9876eefd4582670984b365e1dcb56f6bea47a1 (diff)
no need to save signal state in setjmp/longjmp - it will always be the same, so we may as well save a few syscalls
Diffstat (limited to 'lib/libc_r')
-rw-r--r--lib/libc_r/arch/i386/uthread_machdep.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc_r/arch/i386/uthread_machdep.h b/lib/libc_r/arch/i386/uthread_machdep.h
index 6e6e83b850c..cac445509ca 100644
--- a/lib/libc_r/arch/i386/uthread_machdep.h
+++ b/lib/libc_r/arch/i386/uthread_machdep.h
@@ -1,7 +1,7 @@
/*
* OpenBSD/i386 machine-dependent thread macros
*
- * $OpenBSD: uthread_machdep.h,v 1.4 1999/01/17 23:49:49 d Exp $
+ * $OpenBSD: uthread_machdep.h,v 1.5 1999/03/10 09:50:33 d Exp $
*/
#include <machine/reg.h>
@@ -74,7 +74,7 @@ _thread_machdep_setjmp_helper(a)
__asm__("mov %%es, %0\n" : "=m" (a->mjb_es) );
__asm__("mov %%fs, %0\n" : "=m" (a->mjb_fs) );
__asm__("mov %%gs, %0\n" : "=m" (a->mjb_gs) );
- v = setjmp(a->u.jb);
+ v = _setjmp(a->u.jb);
if (v) {
__asm__("mov %0, %%gs\n" :: "m" (a->mjb_gs) );
__asm__("mov %0, %%fs\n" :: "m" (a->mjb_fs) );
@@ -84,5 +84,5 @@ _thread_machdep_setjmp_helper(a)
return (v);
}
-#define _thread_machdep_longjmp(a,v) longjmp((a).u.jb,v)
+#define _thread_machdep_longjmp(a,v) _longjmp((a).u.jb,v)
#define _thread_machdep_setjmp(a) _thread_machdep_setjmp_helper(&(a))