NetBSD/sys/arch/i386/include/sysarch.h

50 lines
892 B
C
Raw Normal View History

/* $NetBSD: sysarch.h,v 1.9 1998/02/25 21:27:05 perry Exp $ */
1994-10-27 07:14:23 +03:00
#ifndef _I386_SYSARCH_H_
#define _I386_SYSARCH_H_
/*
* Architecture specific syscalls (i386)
*/
#define I386_GET_LDT 0
#define I386_SET_LDT 1
#define I386_IOPL 2
#define I386_GET_IOPERM 3
#define I386_SET_IOPERM 4
#define I386_VM86 5
1995-05-06 23:19:57 +04:00
struct i386_get_ldt_args {
int start;
union descriptor *desc;
int num;
};
struct i386_set_ldt_args {
int start;
union descriptor *desc;
int num;
};
struct i386_iopl_args {
int iopl;
};
struct i386_get_ioperm_args {
u_long *iomap;
};
struct i386_set_ioperm_args {
u_long *iomap;
};
1995-03-28 22:13:48 +04:00
#ifndef _KERNEL
int i386_get_ldt __P((int, union descriptor *, int));
int i386_set_ldt __P((int, union descriptor *, int));
int i386_iopl __P((int));
int i386_get_ioperm __P((u_long *));
int i386_set_ioperm __P((u_long *));
int sysarch __P((int, void *));
#endif
#endif /* !_I386_SYSARCH_H_ */