]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a mmap flag (MAP_32BIT) on 64-bit platforms to request that a mapping use
authorJohn Baldwin <jhb@FreeBSD.org>
Mon, 9 Sep 2013 18:11:59 +0000 (18:11 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Mon, 9 Sep 2013 18:11:59 +0000 (18:11 +0000)
commitedb572a38c433b49f2a06fe12bed3f8156e88cfa
tree42d2ff2e91fcca16534848427856c6243db2126a
parentd7510453f38b8f16eb426f321c6e638f5a770345
Add a mmap flag (MAP_32BIT) on 64-bit platforms to request that a mapping use
an address in the first 2GB of the process's address space.  This flag should
have the same semantics as the same flag on Linux.

To facilitate this, add a new parameter to vm_map_find() that specifies an
optional maximum virtual address.  While here, fix several callers of
vm_map_find() to use a VMFS_* constant for the findspace argument instead of
TRUE and FALSE.

Reviewed by: alc
Approved by: re (kib)
25 files changed:
lib/libc/sys/mmap.2
sys/compat/freebsd32/freebsd32_misc.c
sys/compat/linux/linux_misc.c
sys/compat/svr4/imgact_svr4.c
sys/dev/drm2/i915/i915_gem.c
sys/i386/ibcs2/imgact_coff.c
sys/i386/linux/imgact_linux.c
sys/ia64/ia32/ia32_signal.c
sys/kern/imgact_elf.c
sys/kern/imgact_gzip.c
sys/kern/init_main.c
sys/kern/link_elf.c
sys/kern/link_elf_obj.c
sys/kern/sys_pipe.c
sys/kern/sysv_shm.c
sys/kern/uipc_shm.c
sys/sparc64/sparc64/pmap.c
sys/sys/mman.h
sys/vm/vm_init.c
sys/vm/vm_kern.c
sys/vm/vm_map.c
sys/vm/vm_map.h
sys/vm/vm_mmap.c
usr.bin/kdump/mksubr
usr.bin/truss/syscalls.c