]> Zhao Yanbai Git Server - minix.git/commit
libexec: mmap support, prealloc variants 07/407/7
authorBen Gras <ben@minix3.org>
Sat, 16 Mar 2013 03:46:37 +0000 (03:46 +0000)
committerBen Gras <ben@minix3.org>
Wed, 24 Apr 2013 10:18:16 +0000 (10:18 +0000)
commit0cfff08e561c56297989976f4e3e37b4c83d5d7d
tree0a8097fc954c84d9e260d4ec91b0676770f5bb75
parent6fa5ce74ce611d64c71f06d9bcfb95aca6c1b022
libexec: mmap support, prealloc variants

In libexec, split the memory allocation method into cleared and
non-cleared. Cleared gives zeroed memory, non-cleared gives 'junk'
memory (that will be overwritten anyway, and so needn't be cleared)
that is faster to get.

Also introduce the 'memmap' method that can be used, if available,
to map code and data from executables into a process using the
third-party mmap() mode.

Change-Id: I26694fd3c21deb8b97e01ed675dfc14719b0672b
kernel/arch/earm/protect.c
kernel/arch/i386/protect.c
lib/libexec/exec_elf.c
lib/libexec/exec_general.c
lib/libexec/libexec.h
servers/rs/exec.c
servers/vfs/exec.c
servers/vm/main.c