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
This commit is contained in:
Konstantin Belousov 2009-04-01 12:48:17 +00:00
parent 6ce76ba376
commit 59aff0f894

View File

@ -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>