Index: sys/sys/sysent.h =================================================================== --- sys/sys/sysent.h +++ sys/sys/sysent.h @@ -101,11 +101,13 @@ struct sysentvec { int sv_size; /* number of entries */ + u_int sv_flags; struct sysent *sv_table; /* pointer to sysent */ + void (*sv_set_syscall_retval)(struct thread *, int); + int (*sv_fetch_syscall_args)(struct thread *); + int (*sv_trap)(struct thread *); int (*sv_transtrap)(int, int); /* translate trap-to-signal mapping */ - int (*sv_fixup)(uintptr_t *, struct image_params *); - /* stack fixup function */ void (*sv_sendsig)(void (*)(int), struct ksiginfo *, struct __sigset *); /* send signal */ char *sv_sigcode; /* start of sigtramp code */ @@ -117,6 +119,8 @@ void (*sv_stackgap)(struct image_params *, uintptr_t *); int (*sv_copyout_auxargs)(struct image_params *, uintptr_t); + int (*sv_fixup)(uintptr_t *, struct image_params *); + /* stack fixup function */ int sv_minsigstksz; /* minimum signal stack size */ vm_offset_t sv_minuser; /* VM_MIN_ADDRESS */ vm_offset_t sv_maxuser; /* VM_MAXUSER_ADDRESS */ @@ -129,9 +133,6 @@ uintptr_t); void (*sv_fixlimit)(struct rlimit *, int); u_long *sv_maxssiz; - u_int sv_flags; - void (*sv_set_syscall_retval)(struct thread *, int); - int (*sv_fetch_syscall_args)(struct thread *); const char **sv_syscallnames; vm_offset_t sv_timekeep_base; vm_offset_t sv_shared_page_base; @@ -140,7 +141,6 @@ void *sv_shared_page_obj; void (*sv_schedtail)(struct thread *); void (*sv_thread_detach)(struct thread *); - int (*sv_trap)(struct thread *); u_long *sv_hwcap; /* Value passed in AT_HWCAP. */ u_long *sv_hwcap2; /* Value passed in AT_HWCAP2. */ const char *(*sv_machine_arch)(struct proc *);