Changeset View
Changeset View
Standalone View
Standalone View
head/sys/compat/freebsd32/freebsd32_util.h
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | static struct sysent syscallname##_sysent32 = { \ | ||||
(sizeof(struct syscallname ## _args ) \ | (sizeof(struct syscallname ## _args ) \ | ||||
/ sizeof(register_t)), \ | / sizeof(register_t)), \ | ||||
(sy_call_t *)& syscallname \ | (sy_call_t *)& syscallname \ | ||||
}; \ | }; \ | ||||
SYSCALL32_MODULE(syscallname, \ | SYSCALL32_MODULE(syscallname, \ | ||||
& syscallname##_syscall32, & syscallname##_sysent32,\ | & syscallname##_syscall32, & syscallname##_sysent32,\ | ||||
NULL, NULL); | NULL, NULL); | ||||
#define SYSCALL32_INIT_HELPER(syscallname) { \ | #define SYSCALL32_INIT_HELPER_F(syscallname, flags) { \ | ||||
.new_sysent = { \ | .new_sysent = { \ | ||||
.sy_narg = (sizeof(struct syscallname ## _args ) \ | .sy_narg = (sizeof(struct syscallname ## _args ) \ | ||||
/ sizeof(register_t)), \ | / sizeof(register_t)), \ | ||||
.sy_call = (sy_call_t *)& syscallname, \ | .sy_call = (sy_call_t *)& syscallname, \ | ||||
.sy_flags = (flags) \ | |||||
}, \ | }, \ | ||||
.syscall_no = FREEBSD32_SYS_##syscallname \ | .syscall_no = FREEBSD32_SYS_##syscallname \ | ||||
} | } | ||||
#define SYSCALL32_INIT_HELPER_COMPAT(syscallname) { \ | #define SYSCALL32_INIT_HELPER_COMPAT_F(syscallname, flags) { \ | ||||
.new_sysent = { \ | .new_sysent = { \ | ||||
.sy_narg = (sizeof(struct syscallname ## _args ) \ | .sy_narg = (sizeof(struct syscallname ## _args ) \ | ||||
/ sizeof(register_t)), \ | / sizeof(register_t)), \ | ||||
.sy_call = (sy_call_t *)& sys_ ## syscallname, \ | .sy_call = (sy_call_t *)& sys_ ## syscallname, \ | ||||
.sy_flags = (flags) \ | |||||
}, \ | }, \ | ||||
.syscall_no = FREEBSD32_SYS_##syscallname \ | .syscall_no = FREEBSD32_SYS_##syscallname \ | ||||
} | } | ||||
#define SYSCALL32_INIT_HELPER(syscallname) \ | |||||
SYSCALL32_INIT_HELPER_F(syscallname, 0) | |||||
#define SYSCALL32_INIT_HELPER_COMPAT(syscallname) \ | |||||
SYSCALL32_INIT_HELPER_COMPAT_F(syscallname, 0) | |||||
int syscall32_register(int *offset, struct sysent *new_sysent, | int syscall32_register(int *offset, struct sysent *new_sysent, | ||||
struct sysent *old_sysent, int flags); | struct sysent *old_sysent, int flags); | ||||
int syscall32_deregister(int *offset, struct sysent *old_sysent); | int syscall32_deregister(int *offset, struct sysent *old_sysent); | ||||
int syscall32_module_handler(struct module *mod, int what, void *arg); | int syscall32_module_handler(struct module *mod, int what, void *arg); | ||||
int syscall32_helper_register(struct syscall_helper_data *sd, int flags); | int syscall32_helper_register(struct syscall_helper_data *sd, int flags); | ||||
int syscall32_helper_unregister(struct syscall_helper_data *sd); | int syscall32_helper_unregister(struct syscall_helper_data *sd); | ||||
Show All 12 Lines |