summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/sysarch.h
diff options
context:
space:
mode:
authorluoqi <luoqi@FreeBSD.org>1999-09-02 20:59:50 +0000
committerluoqi <luoqi@FreeBSD.org>1999-09-02 20:59:50 +0000
commited22cebc5fb59a4f9d771db8dbb3db36cf23d484 (patch)
treec624b9e1201ebf0c623b641876b81293fa919fe2 /sys/amd64/include/sysarch.h
parentf037ce228f961f3d4703a9e7c2aa5f6f63a2aed8 (diff)
downloadFreeBSD-src-ed22cebc5fb59a4f9d771db8dbb3db36cf23d484.zip
FreeBSD-src-ed22cebc5fb59a4f9d771db8dbb3db36cf23d484.tar.gz
Some reorganization of sysarch() interface:
1. Move definitions of struct i386_*_args to the header file sysarch.h, since they are part of the sysarch API. struct i386_get_ldt_args and i386_set_ldt_args were identical, therefore make them into one struct i386_ldt_args. Libc should use these definitions as well. 2. Return a more sensible EOPNOTSUPP for unknown operations. Reviewed by: marcel
Diffstat (limited to 'sys/amd64/include/sysarch.h')
-rw-r--r--sys/amd64/include/sysarch.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/sys/amd64/include/sysarch.h b/sys/amd64/include/sysarch.h
index 009c781..5ea3ee6 100644
--- a/sys/amd64/include/sysarch.h
+++ b/sys/amd64/include/sysarch.h
@@ -47,6 +47,23 @@
/* xxxxx */
#define I386_VM86 6
+struct i386_ldt_args {
+ int start;
+ union descriptor *descs;
+ int num;
+};
+
+struct i386_ioperm_args {
+ unsigned int start;
+ unsigned int length;
+ int enable;
+};
+
+struct i386_vm86_args {
+ int sub_op; /* sub-operation to perform */
+ char *sub_args; /* args */
+};
+
#ifndef KERNEL
#include <sys/cdefs.h>
OpenPOWER on IntegriCloud