mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-28 19:47:08 +03:00
66d97267c7
This excludes all headers in /usr/include/dev because that directory is bonkers huge (18M). We can add these on an as-needed basis.
38 lines
805 B
C
Vendored
38 lines
805 B
C
Vendored
/* $OpenBSD: sysarch.h,v 1.14 2016/03/24 04:56:08 guenther Exp $ */
|
|
/* $NetBSD: sysarch.h,v 1.8 1996/01/08 13:51:44 mycroft Exp $ */
|
|
|
|
#ifndef _MACHINE_SYSARCH_H_
|
|
#define _MACHINE_SYSARCH_H_
|
|
|
|
/*
|
|
* Architecture specific syscalls (i386)
|
|
*/
|
|
#define I386_IOPL 2
|
|
#define I386_VM86 5
|
|
#define I386_GET_FSBASE 6
|
|
#define I386_SET_FSBASE 7
|
|
#define I386_GET_GSBASE 8
|
|
#define I386_SET_GSBASE 9
|
|
|
|
struct i386_iopl_args {
|
|
int iopl;
|
|
};
|
|
|
|
#ifdef _KERNEL
|
|
uint32_t i386_get_threadbase(struct proc *, int);
|
|
int i386_set_threadbase(struct proc *, uint32_t, int);
|
|
#else
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
__BEGIN_DECLS
|
|
int i386_iopl(int);
|
|
int i386_get_fsbase(void **);
|
|
int i386_set_fsbase(void *);
|
|
int i386_get_gsbase(void **);
|
|
int i386_set_gsbase(void *);
|
|
int sysarch(int, void *);
|
|
__END_DECLS
|
|
#endif
|
|
|
|
#endif /* !_MACHINE_SYSARCH_H_ */ |