sys_sunos_component.c revision 1.5
1/*	$NetBSD: sys_sunos_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_sunos_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_sunos_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_sunos_syscall.h"
17
18extern struct sysent rump_sunos_sysent[];
19extern const uint32_t rump_sunos_sysent_nomodbits[];
20
21struct emul emul_rump_sys_sunos = {
22	.e_name = "sunos-rump",
23	.e_sysent = rump_sunos_sysent,
24	.e_nomodbits = rump_sunos_sysent_nomodbits,
25#ifndef __HAVE_MINIMAL_EMUL
26	.e_nsysent = RUMP_SUNOS_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_sunos;
39}
40