]> Zhao Yanbai Git Server - minix.git/commit
VM: make mapping types explicit
authorBen Gras <ben@minix3.org>
Thu, 11 Oct 2012 13:15:49 +0000 (15:15 +0200)
committerBen Gras <ben@minix3.org>
Fri, 12 Oct 2012 12:52:01 +0000 (14:52 +0200)
commitd343041caab6b6147d3b6a2282c584439904ef4f
treecbfc185454c6d6c9d144ac74122cd0965c08d258
parentfd4ddef49a10751e21aa1250709e20a617a9f7dc
VM: make mapping types explicit

Introduce explicit abstractions for different mapping types,
handling the instantiation, forking, pagefaults and freeing of
anonymous memory, direct physical mappings, shared memory and
physically contiguous anonymous memory as separate types, making
region.c more generic.

Also some other genericification like merging the 3 munmap cases
into one.

COW and SMAP safemap code is still implicit in region.c.
24 files changed:
include/sys/mman.h
servers/ipc/shm.c
servers/is/dmp_vm.c
servers/procfs/pid.c
servers/vm/Makefile
servers/vm/alloc.c
servers/vm/glo.h
servers/vm/main.c
servers/vm/mem_anon.c [new file with mode: 0644]
servers/vm/mem_anon_contig.c [new file with mode: 0644]
servers/vm/mem_directphys.c [new file with mode: 0644]
servers/vm/mem_shared.c [new file with mode: 0644]
servers/vm/memtype.h [new file with mode: 0644]
servers/vm/mmap.c
servers/vm/pagefaults.c
servers/vm/pb.c
servers/vm/phys_region.h
servers/vm/physravl.c
servers/vm/physravl_defs.h
servers/vm/proto.h
servers/vm/region.c
servers/vm/region.h
servers/vm/sanitycheck.h
servers/vm/vm.h