[Glibc-bsd-commits] r2622 - trunk/glibc-ports/kfreebsd/x86_64
Aurelien Jarno
aurel32 at alioth.debian.org
Sat Jul 11 17:41:25 UTC 2009
Author: aurel32
Date: 2009-07-11 17:41:24 +0000 (Sat, 11 Jul 2009)
New Revision: 2622
Modified:
trunk/glibc-ports/kfreebsd/x86_64/sysarch.h
Log:
Update sysarch.h with values from FreeBSD 8.0
Modified: trunk/glibc-ports/kfreebsd/x86_64/sysarch.h
===================================================================
--- trunk/glibc-ports/kfreebsd/x86_64/sysarch.h 2009-07-11 10:47:46 UTC (rev 2621)
+++ trunk/glibc-ports/kfreebsd/x86_64/sysarch.h 2009-07-11 17:41:24 UTC (rev 2622)
@@ -23,18 +23,42 @@
#include <features.h>
/* Function that can be used as first argument to 'sysarch'. */
+enum
+ {
+ I386_GET_LDT = 0,
+#define I386_GET_LDT I386_GET_LDT
+ I386_SET_LDT = 1,
+#define I386_SET_LDT I386_SET_LDT
+ I386_GET_IOPERM = 3,
+#define I386_GET_IOPERM I386_GET_IOPERM
+ I386_SET_IOPERM = 4,
+#define I386_SET_IOPERM I386_SET_IOPERM
+ I386_GET_FSBASE = 7,
+#define I386_GET_FSBASE I386_GET_FSBASE
+ I386_SET_FSBASE = 8,
+#define I386_SET_FSBASE I386_SET_FSBASE
+ I386_GET_GSBASE = 9,
+#define I386_GET_GSBASE I386_GET_GSBASE
+ I386_SET_GSBASE = 10,
+#define I386_SET_GSBASE I386_SET_GSBASE
+ AMD64_GET_FSBASE = 128,
+#define AMD64_GET_FSBASE AMD64_GET_FSBASE
+ AMD64_SET_FSBASE = 129,
+#define AMD64_SET_FSBASE AMD64_SET_FSBASE
+ AMD64_GET_GSBASE = 130,
+#define AMD64_GET_GSBASE AMD64_GET_GSBASE
+ AMD64_SET_GSBASE = 131
+#define AMD64_SET_GSBASE AMD64_SET_GSBASE
+ };
-#define I386_GET_FSBASE 7
-#define I386_SET_FSBASE 8
-#define I386_GET_GSBASE 9
-#define I386_SET_GSBASE 10
+/* Argument struct for I386_GET_IOPERM and I386_SET_IOPERM. */
+struct i386_ioperm_args
+ {
+ unsigned int start;
+ unsigned int length;
+ int enable;
+ };
-/* 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
-
__BEGIN_DECLS
extern int sysarch (int __cmd, void *__arg);
More information about the Glibc-bsd-commits
mailing list