summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/arch
diff options
context:
space:
mode:
authord <d@openbsd.org>1999-01-10 22:59:33 +0000
committerd <d@openbsd.org>1999-01-10 22:59:33 +0000
commitd712789c340e0596d6047c802daa0303de1aed43 (patch)
tree7e568ffdc439facff2578b5a9878f1e1413d83d1 /lib/libpthread/arch
parentnice-ify (diff)
downloadwireguard-openbsd-d712789c340e0596d6047c802daa0303de1aed43.tar.xz
wireguard-openbsd-d712789c340e0596d6047c802daa0303de1aed43.zip
use <machine/reg>
Diffstat (limited to 'lib/libpthread/arch')
-rw-r--r--lib/libpthread/arch/i386/uthread_machdep.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/libpthread/arch/i386/uthread_machdep.h b/lib/libpthread/arch/i386/uthread_machdep.h
index 088ff200509..652f32d4285 100644
--- a/lib/libpthread/arch/i386/uthread_machdep.h
+++ b/lib/libpthread/arch/i386/uthread_machdep.h
@@ -1,20 +1,22 @@
/*
* OpenBSD/i386 machine-dependent thread macros
*
- * $OpenBSD: uthread_machdep.h,v 1.2 1998/11/09 03:13:13 d Exp $
+ * $OpenBSD: uthread_machdep.h,v 1.3 1999/01/10 22:59:33 d Exp $
*/
+#include <machine/reg.h>
+
/* save the floating point state of a thread */
#define _thread_machdep_save_float_state(thr) \
{ \
- char *fdata = (char*)((thr)->_machdep.saved_fp); \
+ char *fdata = (char*)(&(thr)->_machdep.saved_fp); \
__asm__("fsave %0"::"m" (*fdata)); \
}
/* restore the floating point state of a thread */
#define _thread_machdep_restore_float_state(thr) \
{ \
- char *fdata = (char*)((thr)->_machdep.saved_fp); \
+ char *fdata = (char*)(&(thr)->_machdep.saved_fp); \
__asm__("frstor %0"::"m" (*fdata)); \
}
@@ -33,6 +35,6 @@
#define _thread_machdep_setjmp(a) setjmp(a)
struct _machdep_struct {
- char saved_fp[108];
+ struct fpreg saved_fp;
};