summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/include/sysarch.h
blob: d59506441de86a5754cf0b5b129ef239b641e2df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*	$OpenBSD: sysarch.h,v 1.14 2018/01/07 18:54:44 guenther Exp $	*/
/*	$NetBSD: sysarch.h,v 1.1 2003/04/26 18:39:48 fvdl Exp $	*/

#ifndef _MACHINE_SYSARCH_H_
#define _MACHINE_SYSARCH_H_

/*
 * Architecture specific syscalls (amd64)
 */
#define	AMD64_IOPL		2

struct amd64_iopl_args {
	int iopl;
};

#ifdef _KERNEL
int amd64_iopl(struct proc *, void *, register_t *);
#else

#include <sys/cdefs.h>

__BEGIN_DECLS
int amd64_iopl(int);
int sysarch(int, void *);
__END_DECLS
#endif

#endif /* !_MACHINE_SYSARCH_H_ */