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