49b9165251
. test74 for mmap functionality . vm: add a mem_file memory type that specifies an mmap()ped memory range, backed by a file . add fdref, an object that keeps track of FD references within VM per process and so knows how to de-duplicate the use of FD's by various mmap()ped ranges; there can be many more than there can be FD's . turned off for now, enable with 'filemap=1' as boot option Change-Id: I640b1126cdaa522a0560301cf6732b7661555672
26 lines
619 B
Makefile
26 lines
619 B
Makefile
# Makefile for VM server
|
|
.include <bsd.own.mk>
|
|
|
|
PROG= vm
|
|
SRCS= main.c alloc.c utility.c exit.c fork.c break.c \
|
|
mmap.c slaballoc.c region.c pagefaults.c \
|
|
rs.c queryexit.c pb.c regionavl.c \
|
|
mem_anon.c mem_directphys.c mem_anon_contig.c mem_shared.c \
|
|
mem_cache.c cache.c vfs.c mem_file.c fdref.c
|
|
|
|
.if ${MACHINE_ARCH} == "earm"
|
|
LDFLAGS+= -T ${.CURDIR}/arch/${MACHINE_ARCH}/vm.lds
|
|
.endif
|
|
|
|
DPADD+= ${LIBSYS}
|
|
LDADD+= -lsys -lexec
|
|
|
|
MAN=
|
|
|
|
BINDIR?= /usr/sbin
|
|
|
|
CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${MACHINE_ARCH}
|
|
CPPFLAGS+= -I${NETBSDSRCDIR}
|
|
|
|
.include "arch/${MACHINE_ARCH}/Makefile.inc"
|
|
.include <minix.service.mk>
|