aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2003-10-23 05:31:23 +0000
committerPeter Wemm <peter@FreeBSD.org>2003-10-23 05:31:23 +0000
commitc0432d033e292851f0925e9fbd81cc36b9248688 (patch)
tree770c76460d6834d21fe95333161f62afa6a01b52
parentfb1e0a7107737398231662cdf6a598b32a571ea4 (diff)
downloadsrc-c0432d033e292851f0925e9fbd81cc36b9248688.tar.gz
src-c0432d033e292851f0925e9fbd81cc36b9248688.zip
Renumber the sysarch vectors for amd64 specific syscalls so that I can
implement i386 compat numbers where it makes sense. This would save a syscall translation layer. Yes, this breaks the abi slightly again, but fortunately its just a recompile rather than tweaking the source. I will be fixing the libc stubs while I'm here.
Notes
Notes: svn path=/head/; revision=121398
-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 f14ee31c43bc..9d487c608479 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_ */