diff options
author | kib <kib@FreeBSD.org> | 2009-04-01 12:48:17 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2009-04-01 12:48:17 +0000 |
commit | e81c32aa375c3dc4b0c34a23684314b46616d249 (patch) | |
tree | 711d92f5999e2071699f71ca897e56867b2aa925 /sys/amd64/include/sysarch.h | |
parent | aaeb4d6376e61f48cf71d297d061433d353807f5 (diff) | |
download | FreeBSD-src-e81c32aa375c3dc4b0c34a23684314b46616d249.zip FreeBSD-src-e81c32aa375c3dc4b0c34a23684314b46616d249.tar.gz |
Fully enumerate all i386 sysarch commands an amd64 include file.
Provides i386/freebsd API-compatible definitions for the argument
structures of the above sysarch commands. struct i386_ioperm_args
definition is ABI-compatible.
In collaboration with: pho
Reviewed by: jhb
Diffstat (limited to 'sys/amd64/include/sysarch.h')
-rw-r--r-- | sys/amd64/include/sysarch.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sys/amd64/include/sysarch.h b/sys/amd64/include/sysarch.h index 67c8a4a..2b0d0a6 100644 --- a/sys/amd64/include/sysarch.h +++ b/sys/amd64/include/sysarch.h @@ -35,6 +35,15 @@ #ifndef _MACHINE_SYSARCH_H_ #define _MACHINE_SYSARCH_H_ +#define I386_GET_LDT 0 +#define I386_SET_LDT 1 +#define LDT_AUTO_ALLOC 0xffffffff + /* I386_IOPL */ +#define I386_GET_IOPERM 3 +#define I386_SET_IOPERM 4 + +/* XXX Not implementable #define I386_VM86 6 */ + #define I386_GET_FSBASE 7 #define I386_SET_FSBASE 8 #define I386_GET_GSBASE 9 @@ -46,6 +55,18 @@ #define AMD64_GET_GSBASE 130 #define AMD64_SET_GSBASE 131 +struct i386_ldt_args { + unsigned int start; + struct user_segment_descriptor *descs __packed; + unsigned int num; +}; + +struct i386_ioperm_args { + unsigned int start; + unsigned int length; + int enable; +}; + #ifndef _KERNEL #include <sys/cdefs.h> |