Commit 9ad197d95c17f0274067855e04dc682810b2c708
Committed by
Riku Voipio
1 parent
72716184
export mmap_find_vma for shmat
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Showing
2 changed files
with
2 additions
and
1 deletions
linux-user/mmap.c
| ... | ... | @@ -281,7 +281,7 @@ unsigned long last_brk; |
| 281 | 281 | */ |
| 282 | 282 | /* page_init() marks pages used by the host as reserved to be sure not |
| 283 | 283 | to use them. */ |
| 284 | -static abi_ulong mmap_find_vma(abi_ulong start, abi_ulong size) | |
| 284 | +abi_ulong mmap_find_vma(abi_ulong start, abi_ulong size) | |
| 285 | 285 | { |
| 286 | 286 | abi_ulong addr, addr1, addr_start; |
| 287 | 287 | int prot; | ... | ... |
linux-user/qemu.h
| ... | ... | @@ -229,6 +229,7 @@ int target_msync(abi_ulong start, abi_ulong len, int flags); |
| 229 | 229 | extern unsigned long last_brk; |
| 230 | 230 | void mmap_lock(void); |
| 231 | 231 | void mmap_unlock(void); |
| 232 | +abi_ulong mmap_find_vma(abi_ulong, abi_ulong); | |
| 232 | 233 | void cpu_list_lock(void); |
| 233 | 234 | void cpu_list_unlock(void); |
| 234 | 235 | #if defined(USE_NPTL) | ... | ... |