aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMurilo Opsfelder Araujo <muriloo@linux.ibm.com>2019-01-30 21:36:04 -0200
committerMichael S. Tsirkin <mst@redhat.com>2019-02-05 10:58:33 -0500
commit94af9e34821c5c47a3c69fe242e32d0b33c2fff6 (patch)
tree4e0200ccc4c551f78fca154740fd468720240bfe /include
parent009180bd49ad8851258acecfb109fc3aa2f480ad (diff)
downloadqemu-94af9e34821c5c47a3c69fe242e32d0b33c2fff6.zip
qemu-94af9e34821c5c47a3c69fe242e32d0b33c2fff6.tar.gz
qemu-94af9e34821c5c47a3c69fe242e32d0b33c2fff6.tar.bz2
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: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Greg Kurz <groug@kaod.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions