From 647bf6f4e839de84266f618cf10855aad6bfc4ad Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 23 Oct 2003 05:31:23 +0000 Subject: 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. --- sys/amd64/include/sysarch.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'sys/amd64/include') 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 @@ -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_ */ -- cgit v1.1