aboutsummaryrefslogtreecommitdiff
path: root/bsd-user/x86_64/syscall.h
diff options
context:
space:
mode:
authorJuergen Lock <nox@jelal.kn-bremen.de>2009-10-17 00:34:26 +0200
committerBlue Swirl <blauwirbel@gmail.com>2009-10-18 15:16:08 +0000
commit78cfb07fe0dc556cae662a0fab5fe1bd33daabdb (patch)
tree9d8123e0e1875cfbd1ba7544122f31b4519e7e80 /bsd-user/x86_64/syscall.h
parent976b2037e5eaa7dc18ca7062c9276ec03aaa37a9 (diff)
bsd-user: FreeBSD update
basic FreeBSD sysarch(2) handling fixed syscall errno return Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'bsd-user/x86_64/syscall.h')
-rw-r--r--bsd-user/x86_64/syscall.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/bsd-user/x86_64/syscall.h b/bsd-user/x86_64/syscall.h
index 2a8d696bf2..5f71b7cdcf 100644
--- a/bsd-user/x86_64/syscall.h
+++ b/bsd-user/x86_64/syscall.h
@@ -90,6 +90,24 @@ struct target_msqid64_ds {
abi_ulong __unused5;
};
+/* FreeBSD sysarch(2) */
+#define TARGET_FREEBSD_I386_GET_LDT 0
+#define TARGET_FREEBSD_I386_SET_LDT 1
+ /* I386_IOPL */
+#define TARGET_FREEBSD_I386_GET_IOPERM 3
+#define TARGET_FREEBSD_I386_SET_IOPERM 4
+ /* xxxxx */
+#define TARGET_FREEBSD_I386_GET_FSBASE 7
+#define TARGET_FREEBSD_I386_SET_FSBASE 8
+#define TARGET_FREEBSD_I386_GET_GSBASE 9
+#define TARGET_FREEBSD_I386_SET_GSBASE 10
+
+#define TARGET_FREEBSD_AMD64_GET_FSBASE 128
+#define TARGET_FREEBSD_AMD64_SET_FSBASE 129
+#define TARGET_FREEBSD_AMD64_GET_GSBASE 130
+#define TARGET_FREEBSD_AMD64_SET_GSBASE 131
+
+
#define UNAME_MACHINE "x86_64"
#define TARGET_ARCH_SET_GS 0x1001