diff options
author | 2000-10-04 05:55:33 +0000 | |
---|---|---|
committer | 2000-10-04 05:55:33 +0000 | |
commit | 789060e356dc0d45ff8b10b23e67fb240c40e245 (patch) | |
tree | 433c497a393444dcea2ecdd760f9bc499789e5b2 /lib/libpthread/arch/m68k | |
parent | if fstat fails fails, as it will on some sockets, close anyway. (diff) | |
download | wireguard-openbsd-789060e356dc0d45ff8b10b23e67fb240c40e245.tar.xz wireguard-openbsd-789060e356dc0d45ff8b10b23e67fb240c40e245.zip |
switch to _machdep_switch() instead of setjmp/longjmp. For some reason this fixes sparc threads.
Diffstat (limited to 'lib/libpthread/arch/m68k')
-rw-r--r-- | lib/libpthread/arch/m68k/uthread_machdep.h | 42 |
1 files changed, 4 insertions, 38 deletions
diff --git a/lib/libpthread/arch/m68k/uthread_machdep.h b/lib/libpthread/arch/m68k/uthread_machdep.h index 8bda374924d..d9bb9935ca6 100644 --- a/lib/libpthread/arch/m68k/uthread_machdep.h +++ b/lib/libpthread/arch/m68k/uthread_machdep.h @@ -1,40 +1,6 @@ -/* - * OpenBSD/m68k machine-dependent thread macros - * - * $OpenBSD: uthread_machdep.h,v 1.3 1999/11/25 07:01:28 d Exp $ - */ +/* $OpenBSD: uthread_machdep.h,v 1.4 2000/10/04 05:55:34 d Exp $ */ +/* David Leonard, <d@csee.uq.edu.au>. Public domain. */ -/* save the floating point state of a thread */ -#define _thread_machdep_save_float_state(thr) \ - { \ - /* fsave privileged instr */ \ - } - -/* restore the floating point state of a thread */ -#define _thread_machdep_restore_float_state(thr) \ - { \ - /* frestore privileged instr */ \ - } - -/* initialise the jmpbuf stack frame so it continues from entry */ - -#define _thread_machdep_thread_create(thr, entry, pattr) \ - { \ - /* entry */ \ - (thr)->saved_jmp_buf[5] = (long) entry; \ - /* stack */ \ - (thr)->saved_jmp_buf[2] = (long) (thr)->stack->base \ - + (thr)->stack->size \ - - sizeof(double); \ - } - -#define _thread_machdep_longjmp(a,v) _longjmp(a,v) -#define _thread_machdep_setjmp(a) _setjmp(a) - -typedef jmp_buf _machdep_jmp_buf; - -struct _machdep_struct { - /* char saved_fp[108]; */ - int dummy; +struct _machdep_state { + int sp; }; - |