Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/sysent.h
Show First 20 Lines • Show All 144 Lines • ▼ Show 20 Lines | struct sysentvec { | ||||
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; | vm_offset_t sv_fxrng_gen_base; | ||||
void (*sv_onexec_old)(struct thread *td); | |||||
void (*sv_onexec)(struct proc *, struct image_params *); | void (*sv_onexec)(struct proc *, struct image_params *); | ||||
void (*sv_onexit)(struct proc *); | void (*sv_onexit)(struct proc *); | ||||
void (*sv_ontdexit)(struct thread *td); | void (*sv_ontdexit)(struct thread *td); | ||||
int (*sv_setid_allowed)(struct thread *td, | int (*sv_setid_allowed)(struct thread *td, | ||||
struct image_params *imgp); | struct image_params *imgp); | ||||
}; | }; | ||||
#define SV_ILP32 0x000100 /* 32-bit executable. */ | #define SV_ILP32 0x000100 /* 32-bit executable. */ | ||||
▲ Show 20 Lines • Show All 154 Lines • ▼ Show 20 Lines | |||||
void syscall_thread_exit(struct thread *td, struct sysent *se); | void syscall_thread_exit(struct thread *td, struct sysent *se); | ||||
int shared_page_alloc(int size, int align); | int shared_page_alloc(int size, int align); | ||||
int shared_page_fill(int size, int align, const void *data); | int shared_page_fill(int size, int align, const void *data); | ||||
void shared_page_write(int base, int size, const void *data); | void shared_page_write(int base, int size, const void *data); | ||||
void exec_sysvec_init(void *param); | void exec_sysvec_init(void *param); | ||||
void exec_sysvec_init_secondary(struct sysentvec *sv, struct sysentvec *sv2); | void exec_sysvec_init_secondary(struct sysentvec *sv, struct sysentvec *sv2); | ||||
void exec_inittk(void); | void exec_inittk(void); | ||||
void exit_onexit(struct proc *p); | |||||
void exec_onexec_old(struct thread *td); | |||||
#define INIT_SYSENTVEC(name, sv) \ | #define INIT_SYSENTVEC(name, sv) \ | ||||
SYSINIT(name, SI_SUB_EXEC, SI_ORDER_ANY, \ | SYSINIT(name, SI_SUB_EXEC, SI_ORDER_ANY, \ | ||||
(sysinit_cfunc_t)exec_sysvec_init, sv); | (sysinit_cfunc_t)exec_sysvec_init, sv); | ||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
#endif /* !_SYS_SYSENT_H_ */ | #endif /* !_SYS_SYSENT_H_ */ |