summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include
diff options
context:
space:
mode:
Diffstat (limited to 'sys/amd64/include')
-rw-r--r--sys/amd64/include/sysarch.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/amd64/include/sysarch.h b/sys/amd64/include/sysarch.h
index f14ee31..9d487c6 100644
--- a/sys/amd64/include/sysarch.h
+++ b/sys/amd64/include/sysarch.h
@@ -39,12 +39,12 @@
#ifndef _MACHINE_SYSARCH_H_
#define _MACHINE_SYSARCH_H_
-#define AMD64_GET_FSBASE 0
-#define AMD64_SET_FSBASE 1
-#define AMD64_GET_GSBASE 2
-#define AMD64_SET_GSBASE 3
+/* Leave space for 0-127 for to avoid translating syscalls */
+#define AMD64_GET_FSBASE 128
+#define AMD64_SET_FSBASE 129
+#define AMD64_GET_GSBASE 130
+#define AMD64_SET_GSBASE 131
-#if 0 /* these wrappers need to be implemented in libc first */
#ifndef _KERNEL
#include <sys/cdefs.h>
@@ -55,6 +55,5 @@ unsigned long amd64_get_gsbase(void);
unsigned long amd64_set_gsbase(unsigned long);
__END_DECLS
#endif
-#endif
#endif /* !_MACHINE_SYSARCH_H_ */
OpenPOWER on IntegriCloud