summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/arch/sparc
diff options
context:
space:
mode:
authormarc <marc@openbsd.org>2003-01-31 04:46:16 +0000
committermarc <marc@openbsd.org>2003-01-31 04:46:16 +0000
commit644b0b5fa72e35c9fc7dc0abe910d822d28cf38d (patch)
tree1563377f6846d8bc600232851c9b7bae3cf5bcf8 /lib/libpthread/arch/sparc
parentfetch the font and use it, some cleanup and knf (diff)
downloadwireguard-openbsd-644b0b5fa72e35c9fc7dc0abe910d822d28cf38d.tar.xz
wireguard-openbsd-644b0b5fa72e35c9fc7dc0abe910d822d28cf38d.zip
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.
Diffstat (limited to 'lib/libpthread/arch/sparc')
-rw-r--r--lib/libpthread/arch/sparc/uthread_machdep.c10
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]);
}