From 644b0b5fa72e35c9fc7dc0abe910d822d28cf38d Mon Sep 17 00:00:00 2001 From: marc Date: Fri, 31 Jan 2003 04:46:16 +0000 Subject: Create a siginfo_t for thread-to-thread kill. Clean up (compiler warning elimination). Compile check options added but commented out as they have not been checked on all architectures, yet. --- lib/libpthread/arch/sparc/uthread_machdep.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'lib/libpthread/arch/sparc') 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 #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]); } -- cgit v1.2.3-59-g8ed1b