Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/sysent.h
Show First 20 Lines • Show All 138 Lines • ▼ Show 20 Lines | struct sysentvec { | ||||
vm_offset_t sv_sigcode_base; | vm_offset_t sv_sigcode_base; | ||||
void *sv_shared_page_obj; | void *sv_shared_page_obj; | ||||
void (*sv_schedtail)(struct thread *); | void (*sv_schedtail)(struct thread *); | ||||
void (*sv_thread_detach)(struct thread *); | void (*sv_thread_detach)(struct thread *); | ||||
int (*sv_trap)(struct thread *); | int (*sv_trap)(struct thread *); | ||||
u_long *sv_hwcap; /* Value passed in AT_HWCAP. */ | u_long *sv_hwcap; /* Value passed in AT_HWCAP. */ | ||||
u_long *sv_hwcap2; /* Value passed in AT_HWCAP2. */ | u_long *sv_hwcap2; /* Value passed in AT_HWCAP2. */ | ||||
const char *(*sv_machine_arch)(struct proc *); | const char *(*sv_machine_arch)(struct proc *); | ||||
vm_offset_t sv_fxrng_gen_base; | |||||
}; | }; | ||||
#define SV_ILP32 0x000100 /* 32-bit executable. */ | #define SV_ILP32 0x000100 /* 32-bit executable. */ | ||||
#define SV_LP64 0x000200 /* 64-bit executable. */ | #define SV_LP64 0x000200 /* 64-bit executable. */ | ||||
#define SV_IA32 0x004000 /* Intel 32-bit executable. */ | #define SV_IA32 0x004000 /* Intel 32-bit executable. */ | ||||
#define SV_AOUT 0x008000 /* a.out executable. */ | #define SV_AOUT 0x008000 /* a.out executable. */ | ||||
#define SV_SHP 0x010000 /* Shared page. */ | #define SV_SHP 0x010000 /* Shared page. */ | ||||
#define SV_CAPSICUM 0x020000 /* Force cap_enter() on startup. */ | #define SV_CAPSICUM 0x020000 /* Force cap_enter() on startup. */ | ||||
#define SV_TIMEKEEP 0x040000 /* Shared page timehands. */ | #define SV_TIMEKEEP 0x040000 /* Shared page timehands. */ | ||||
#define SV_ASLR 0x080000 /* ASLR allowed. */ | #define SV_ASLR 0x080000 /* ASLR allowed. */ | ||||
#define SV_RNG_SEED_VER 0x100000 /* random(4) reseed generation. */ | |||||
#define SV_ABI_MASK 0xff | #define SV_ABI_MASK 0xff | ||||
#define SV_PROC_FLAG(p, x) ((p)->p_sysent->sv_flags & (x)) | #define SV_PROC_FLAG(p, x) ((p)->p_sysent->sv_flags & (x)) | ||||
#define SV_PROC_ABI(p) ((p)->p_sysent->sv_flags & SV_ABI_MASK) | #define SV_PROC_ABI(p) ((p)->p_sysent->sv_flags & SV_ABI_MASK) | ||||
#define SV_CURPROC_FLAG(x) SV_PROC_FLAG(curproc, x) | #define SV_CURPROC_FLAG(x) SV_PROC_FLAG(curproc, x) | ||||
#define SV_CURPROC_ABI() SV_PROC_ABI(curproc) | #define SV_CURPROC_ABI() SV_PROC_ABI(curproc) | ||||
/* same as ELFOSABI_XXX, to prevent header pollution */ | /* same as ELFOSABI_XXX, to prevent header pollution */ | ||||
#define SV_ABI_LINUX 3 | #define SV_ABI_LINUX 3 | ||||
▲ Show 20 Lines • Show All 165 Lines • Show Last 20 Lines |