Remove grub_efi_allocate_pages.
authorVladimir Serbinenko <phcoder@gmail.com>
Mon, 7 Aug 2017 16:33:29 +0000 (18:33 +0200)
committerVladimir Serbinenko <phcoder@gmail.com>
Mon, 7 Aug 2017 16:33:29 +0000 (18:33 +0200)
commit4bc909bf89f5b4ff86c9e4e609d4fe0c11a66b0c
tree4d67760ff62f9a85bdbf8fe126b132280b230de2
parentdd5fde2df83c5c03b7ba04d2cc5b7be96de8da7b
Remove grub_efi_allocate_pages.

grub_efi_allocate_pages Essentially does 2 unrelated things:
* Allocate at fixed address.
* Allocate at any address.

To switch between 2 different functions it uses address == 0 as magic
value which is wrong as 0 is a perfectly valid fixed adress to allocate at.
grub-core/kern/arm/efi/misc.c
grub-core/kern/efi/mm.c
grub-core/loader/arm64/fdt.c
grub-core/loader/arm64/linux.c
grub-core/loader/arm64/xen_boot.c
grub-core/loader/ia64/efi/linux.c
include/grub/autoefi.h
include/grub/efi/efi.h