Preserves mmaps of MAP_SHARED files across fork()
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 3 Feb 2012 23:44:09 +0000 (15:44 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 3 Feb 2012 23:44:09 +0000 (15:44 -0800)
commit3c849a0dc7e8d40c23421fcd19e969801c5f315f
treef4ab05473dc396edc7a7eb9d568b1ac3bf671a4f
parentca2e9b2a082205e5034b14fa821de11b5651e4a1
Preserves mmaps of MAP_SHARED files across fork()

mm.c's copy_pages() uses env_user_mem_walk(), which is probably faster
than a pgdir walk for each PTE, esp on 64 bit architectures.  Still, I
kept around code that can do the copy_page manually, since I'm not a
huge fan of the mem walk - I'll probably change its interface when the
need arises.
kern/include/mm.h
kern/src/mm.c
kern/src/syscall.c
tests/test_mmap_ipc.c