diff options
Diffstat (limited to 'lib/libpthread')
-rw-r--r-- | lib/libpthread/arch/amd64/include/pthread_md.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/libpthread/arch/amd64/include/pthread_md.h b/lib/libpthread/arch/amd64/include/pthread_md.h index b0bde5a..b6f05a8 100644 --- a/lib/libpthread/arch/amd64/include/pthread_md.h +++ b/lib/libpthread/arch/amd64/include/pthread_md.h @@ -37,9 +37,6 @@ #include <machine/sysarch.h> #include <ucontext.h> -/* <machine/sysarch.h> should define this, but doesn't. */ -extern int sysarch(int, void *); - #define KSE_STACKSIZE 16384 #define THR_GETCONTEXT(ucp) \ @@ -151,9 +148,7 @@ void _kcb_dtor(struct kcb *); static __inline void _kcb_set(struct kcb *kcb) { - void *addr = kcb; - - sysarch(AMD64_SET_FSBASE, &addr); + amd64_set_fsbase(kcb); } /* Get the current kcb. */ |