]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: correct efi_add_known_memory()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 12 Nov 2018 17:55:24 +0000 (18:55 +0100)
committerAlexander Graf <agraf@suse.de>
Sun, 2 Dec 2018 20:59:37 +0000 (21:59 +0100)
commit108bdff84a0b9104f05cb04a41bdd14f67f0d4c6
tree9b5bb587f486846ce7aa6abea111b14e355ab984
parent23fd84b3eccb1af51699d49368e257a5b0a78593
efi_loader: correct efi_add_known_memory()

If a memory bank is not EFI_PAGE_SIZE aligned efi_add_known_memory() the
number of memory pages may be incorrectly calculated.

We have to round up the start address and to round down the end address
to determine which complete pages are provided by the memory bank.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_memory.c