diff options
author | 2012-09-01 00:32:23 +0000 | |
---|---|---|
committer | 2012-09-01 00:32:23 +0000 | |
commit | cde6fc201d55f174c423caf7560c454b29da406e (patch) | |
tree | 3c8a6d2fd05c6c6d8d34297c0d9d94bea91bbc5b /lib/libpthread/arch/sparc/uthread_machdep.c | |
parent | modload needs to invoke ld with -nopie now on ELF platforms (diff) | |
download | wireguard-openbsd-cde6fc201d55f174c423caf7560c454b29da406e.tar.xz wireguard-openbsd-cde6fc201d55f174c423caf7560c454b29da406e.zip |
So passes uthreads
Like autumn leaves on water
don't fear the tedu@
Diffstat (limited to 'lib/libpthread/arch/sparc/uthread_machdep.c')
-rw-r--r-- | lib/libpthread/arch/sparc/uthread_machdep.c | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/lib/libpthread/arch/sparc/uthread_machdep.c b/lib/libpthread/arch/sparc/uthread_machdep.c deleted file mode 100644 index f7599ef4636..00000000000 --- a/lib/libpthread/arch/sparc/uthread_machdep.c +++ /dev/null @@ -1,49 +0,0 @@ -/* $OpenBSD: uthread_machdep.c,v 1.3 2003/01/31 04:46:16 marc Exp $ */ - -/* - * Machine-dependent thread state functions for OpenBSD/sparc. - */ - -#include <machine/frame.h> -#include <machine/param.h> -#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. - */ -void -_thread_machdep_init(statep, base, len, entry) - struct _machdep_state* statep; - void *base; - int len; - void (*entry)(void); -{ - struct frame *f; - - /* Locate the initial frame, aligned at the top of the stack */ - f = (struct frame *)(((int)base + len - sizeof *f) & ~ALIGNBYTES); - - f->fr_fp = (struct frame *)-1; /* purposefully misaligned */ - f->fr_pc = -1; /* for gdb */ - statep->fp = (int)f; - statep->pc = -8 + (int)entry; -} - -void -_thread_machdep_save_float_state(statep) - struct _machdep_state* statep; -{ - _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]); -} |