summary refs log tree commit diff stats
path: root/util/oslib-posix.c
diff options
context:
space:
mode:
authorMurilo Opsfelder Araujo <muriloo@linux.ibm.com>2019-01-30 21:36:04 -0200
committerDavid Gibson <david@gibson.dropbear.id.au>2019-02-04 18:44:20 +1100
commit2044c3e7116eeac0449dcb4a4130cc8f8b9310da (patch)
tree05b5e5a1d5450729bfc8d54c231a7c4ebe27397a /util/oslib-posix.c
parenteac57b405afabcdf6aea82ef5f4cf44cd45c04cb (diff)
downloadfocaccia-qemu-2044c3e7116eeac0449dcb4a4130cc8f8b9310da.tar.gz
focaccia-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 'util/oslib-posix.c')
0 files changed, 0 insertions, 0 deletions