diff options
author | Murilo Opsfelder Araujo <muriloo@linux.ibm.com> | 2019-01-30 21:36:04 -0200 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2019-02-04 18:44:20 +1100 |
commit | 2044c3e7116eeac0449dcb4a4130cc8f8b9310da (patch) | |
tree | 05b5e5a1d5450729bfc8d54c231a7c4ebe27397a /exec.c | |
parent | eac57b405afabcdf6aea82ef5f4cf44cd45c04cb (diff) |
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 'exec.c')
0 files changed, 0 insertions, 0 deletions