summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-10-23 06:12:57 +0000
committerpeter <peter@FreeBSD.org>2003-10-23 06:12:57 +0000
commit9fdc368a9c0e3537711656f9d3eab28cc5a6db9d (patch)
tree29b2b857ce884f0caa7dc8ba048e14b48587121a /lib
parent52a61b01ad7e03b474706deaedcbe07623871caa (diff)
downloadFreeBSD-src-9fdc368a9c0e3537711656f9d3eab28cc5a6db9d.zip
FreeBSD-src-9fdc368a9c0e3537711656f9d3eab28cc5a6db9d.tar.gz
Use amd64_set_fsbase() instead of calling sysarch() directly.
Diffstat (limited to 'lib')
-rw-r--r--lib/libkse/arch/amd64/include/pthread_md.h7
-rw-r--r--lib/libpthread/arch/amd64/include/pthread_md.h7
2 files changed, 2 insertions, 12 deletions
diff --git a/lib/libkse/arch/amd64/include/pthread_md.h b/lib/libkse/arch/amd64/include/pthread_md.h
index b0bde5a..b6f05a8 100644
--- a/lib/libkse/arch/amd64/include/pthread_md.h
+++ b/lib/libkse/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. */
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. */
OpenPOWER on IntegriCloud