MAP_PRIVATE with PROT_WRITE
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 23 Jul 2010 02:31:35 +0000 (19:31 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:35:49 +0000 (17:35 -0700)
commit76531c73b5f21139e536c93d8b078df38f7ef25f
treea100414d358b4b27f53e46ae3bd7355829964a6e
parentc510ffba1c9b97c0c00e3c60aed11a6e8032902a
MAP_PRIVATE with PROT_WRITE

Allows mmap() to handle private writable regions.  For now, it will
immediately give you a fresh copy, instead of trying to CoW it when
write-faulted.  Due to the way we'll load elves, we'll need to have the
kernel be able to page fault if we want to change this.
kern/src/mm.c