Files
zig/lib/libc/include/x86_64-openbsd-none/machine/sysarch.h
T
Alex Rønne Petersen 66d97267c7 libc: add openbsd 7.8 headers
This excludes all headers in /usr/include/dev because that directory is bonkers
huge (18M). We can add these on an as-needed basis.
2026-01-05 14:52:48 +01:00

28 lines
513 B
C
Vendored

/* $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_ */