diff options
author | peter <peter@FreeBSD.org> | 2003-10-23 05:31:23 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-10-23 05:31:23 +0000 |
commit | 647bf6f4e839de84266f618cf10855aad6bfc4ad (patch) | |
tree | 770c76460d6834d21fe95333161f62afa6a01b52 /sys/amd64 | |
parent | af7ff0b8a98110fb9fdbe19b67b60e7f939823d6 (diff) | |
download | FreeBSD-src-647bf6f4e839de84266f618cf10855aad6bfc4ad.zip FreeBSD-src-647bf6f4e839de84266f618cf10855aad6bfc4ad.tar.gz |
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.
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/include/sysarch.h | 11 |
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_ */ |