efi_loader: update virtual address in efi_mem_carve_out
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 11 Apr 2019 18:08:54 +0000 (20:08 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 12 Apr 2019 20:00:42 +0000 (22:00 +0200)
commit9631fa0fd191adaa5521ee78369f62e975c57a06
treee879ff40b9306448c399c46c1e6ffeddee09c604
parent74f5baa28bebf243b372d63a673ddf214cbc50b6
efi_loader: update virtual address in efi_mem_carve_out

Handle virtual address in efi_mem_carve_out() function
when a new region is created to avoid issue in EFI memory map.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
At boottime physical and virtual addressed have to be the same.
This allowed to simplify the proposed logic.

Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_memory.c