diff options
author | Murilo Opsfelder Araujo | 2019-01-31 00:36:04 +0100 |
---|---|---|
committer | David Gibson | 2019-02-04 08:44:20 +0100 |
commit | 2044c3e7116eeac0449dcb4a4130cc8f8b9310da (patch) | |
tree | 05b5e5a1d5450729bfc8d54c231a7c4ebe27397a /include | |
parent | hw/ppc: Don't include m48t59.h if it is not necessary (diff) | |
download | qemu-2044c3e7116eeac0449dcb4a4130cc8f8b9310da.tar.gz qemu-2044c3e7116eeac0449dcb4a4130cc8f8b9310da.tar.xz qemu-2044c3e7116eeac0449dcb4a4130cc8f8b9310da.zip |
mmap-alloc: unfold qemu_ram_mmap()
Unfold parts of qemu_ram_mmap() for the sake of understanding, moving
declarations to the top, and keeping architecture-specifics in the
ifdef-else blocks. No changes in the function behaviour.
Give ptr and ptr1 meaningful names:
ptr -> guardptr : pointer to the PROT_NONE guard region
ptr1 -> ptr : pointer to the mapped memory returned to caller
Signed-off-by: Murilo Opsfelder Araujo <muriloo@linux.ibm.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions