diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2012-03-08 14:40:33 +0000 |
---|---|---|
committer | Riku Voipio <riku.voipio@linaro.org> | 2012-04-06 18:49:58 +0300 |
commit | 59e9d91c7ae1b655997aec61c08eec1685414117 (patch) | |
tree | 4c047f5d48774c57a0428c7cef98b15bfede8099 /linux-user/qemu.h | |
parent | 39879bbbea4661a4004ca26673e3d1e6ae1e0bc3 (diff) |
linux-user: resolve reserved_va vma downwards
After consulting with Paul Brook, we concluded that it's best to search
the VMA space downwards, so that we don't even get the chance to conflict
with the brk range.
This patch resolves a bunch of allocation conflicts when using -R.
Signed-off-by: Alexander Graf <agraf@suse.de>
[minor changes to get it to apply -- PMM]
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user/qemu.h')
-rw-r--r-- | linux-user/qemu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-user/qemu.h b/linux-user/qemu.h index 68895671ed..dd74cc0510 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -251,6 +251,7 @@ abi_long target_mremap(abi_ulong old_addr, abi_ulong old_size, abi_ulong new_addr); int target_msync(abi_ulong start, abi_ulong len, int flags); extern unsigned long last_brk; +extern abi_ulong mmap_next_start; void mmap_lock(void); void mmap_unlock(void); abi_ulong mmap_find_vma(abi_ulong, abi_ulong); |