| 1 | /*	$OpenBSD: sysarch.h,v 1.14 2018/01/07 18:54:44 guenther Exp $	*/ |
| 2 | /*	$NetBSD: sysarch.h,v 1.1 2003/04/26 18:39:48 fvdl Exp $	*/ |
| 3 | |
| 4 | #ifndef _MACHINE_SYSARCH_H_ |
| 5 | #define _MACHINE_SYSARCH_H_ |
| 6 | |
| 7 | /* |
| 8 | * Architecture specific syscalls (amd64) |
| 9 | */ |
| 10 | #define	AMD64_IOPL		2 |
| 11 | |
| 12 | struct amd64_iopl_args { |
| 13 | 	int iopl; |
| 14 | }; |
| 15 | |
| 16 | #ifdef _KERNEL |
| 17 | int amd64_iopl(struct proc *, void *, register_t *); |
| 18 | #else |
| 19 | |
| 20 | #include <sys/cdefs.h> |
| 21 | |
| 22 | __BEGIN_DECLS |
| 23 | int amd64_iopl(int); |
| 24 | int sysarch(int, void *); |
| 25 | __END_DECLS |
| 26 | #endif |
| 27 | |
| 28 | #endif /* !_MACHINE_SYSARCH_H_ */ |