Searched hist:"4648 ba0a0f20a61d9fc0dcd26bbf00283d86e465" (Results 1 – 2 of 2) sorted by relevance
/freebsd/sys/vm/ |
H A D | vm_mmap.c | diff 4648ba0a0f20a61d9fc0dcd26bbf00283d86e465 Mon Jun 09 05:37:41 CEST 2014 Konstantin Belousov <kib@FreeBSD.org> Make mmap(MAP_STACK) search for the available address space, similar to !MAP_STACK mapping requests. For MAP_STACK | MAP_FIXED, clear any mappings which could previously exist in the used range.
For this, teach vm_map_find() and vm_map_fixed() to handle MAP_STACK_GROWS_DOWN or _UP cow flags, by calling a new vm_map_stack_locked() helper, which is factored out from vm_map_stack().
The side effect of the change is that MAP_STACK started obeying MAP_ALIGNMENT and MAP_32BIT flags.
Reported by: rwatson Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
|
H A D | vm_map.c | diff 4648ba0a0f20a61d9fc0dcd26bbf00283d86e465 Mon Jun 09 05:37:41 CEST 2014 Konstantin Belousov <kib@FreeBSD.org> Make mmap(MAP_STACK) search for the available address space, similar to !MAP_STACK mapping requests. For MAP_STACK | MAP_FIXED, clear any mappings which could previously exist in the used range.
For this, teach vm_map_find() and vm_map_fixed() to handle MAP_STACK_GROWS_DOWN or _UP cow flags, by calling a new vm_map_stack_locked() helper, which is factored out from vm_map_stack().
The side effect of the change is that MAP_STACK started obeying MAP_ALIGNMENT and MAP_32BIT flags.
Reported by: rwatson Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
|