1 /* $NetBSD: sys_cygwin_component.c,v 1.6 2019/01/27 09:19:37 rin Exp $ */ 2 3 #include <sys/cdefs.h> 4 __KERNEL_RCSID(0, "$NetBSD: sys_cygwin_component.c,v 1.6 2019/01/27 09:19:37 rin Exp $"); 5 6 #include <sys/param.h> 7 #include <sys/proc.h> 8 9 #include <uvm/uvm_extern.h> 10 11 #include <rump-sys/kern.h> 12 13 #include "rump_cygwin_syscall.h" 14 15 extern struct sysent rump_cygwin_sysent[]; 16 extern const uint32_t rump_cygwin_sysent_nomodbits[]; 17 18 struct emul emul_rump_sys_cygwin = { 19 .e_name = "cygwin-rump", 20 .e_sysent = rump_cygwin_sysent, 21 .e_nomodbits = rump_cygwin_sysent_nomodbits, 22 #ifndef __HAVE_MINIMAL_EMUL 23 .e_nsysent = RUMP_CYGWIN_SYS_NSYSENT, 24 #endif 25 .e_vm_default_addr = uvm_default_mapaddr, 26 #ifdef __HAVE_SYSCALL_INTERN 27 .e_syscall_intern = syscall_intern, 28 #endif 29 }; 30 RUMP_COMPONENT(RUMP_COMPONENT_KERN)31RUMP_COMPONENT(RUMP_COMPONENT_KERN) 32 { 33 extern struct emul *emul_default; 34 35 emul_default = &emul_rump_sys_cygwin; 36 } 37