diff options
Diffstat (limited to 'lib/libpthread/arch/sparc')
-rw-r--r-- | lib/libpthread/arch/sparc/uthread_machdep.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/libpthread/arch/sparc/uthread_machdep.c b/lib/libpthread/arch/sparc/uthread_machdep.c index 006fb9f4aa5..f7599ef4636 100644 --- a/lib/libpthread/arch/sparc/uthread_machdep.c +++ b/lib/libpthread/arch/sparc/uthread_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthread_machdep.c,v 1.2 2003/01/26 20:24:36 jason Exp $ */ +/* $OpenBSD: uthread_machdep.c,v 1.3 2003/01/31 04:46:16 marc Exp $ */ /* * Machine-dependent thread state functions for OpenBSD/sparc. @@ -9,6 +9,9 @@ #include <pthread.h> #include "pthread_private.h" +extern void _thread_machdep_fpsave(u_int32_t *, u_int64_t *); +extern void _thread_machdep_fprestore(u_int32_t *, u_int64_t *); + /* * Given a stack and an entry function, initialise a state * structure that can be later switched to. @@ -35,13 +38,12 @@ void _thread_machdep_save_float_state(statep) struct _machdep_state* statep; { - u_int32_t zero = 0; - - _thread_machdep_fpsave(&statep->fs_csr, &statep->fs_regs[0], &zero); + _thread_machdep_fpsave(&statep->fs_csr, &statep->fs_regs[0]); } void _thread_machdep_restore_float_state(statep) struct _machdep_state* statep; { + _thread_machdep_fprestore(&statep->fs_csr, &statep->fs_regs[0]); } |