arm64/efi: mark UEFI reserved regions as MEMBLOCK_NOMAP
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 30 Nov 2015 12:28:17 +0000 (13:28 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 9 Dec 2015 16:57:23 +0000 (16:57 +0000)
commit4dffbfc48d65e5d8157a634fd670065d237a9377
tree9b0101b04106dcfcaa3e825d5e7cf6399d31c474
parent68709f45385aeddb0ca96a060c0c8259944f321b
arm64/efi: mark UEFI reserved regions as MEMBLOCK_NOMAP

Change the EFI memory reservation logic to use memblock_mark_nomap()
rather than memblock_reserve() to mark UEFI reserved regions as
occupied. In addition to reserving them against allocations done by
memblock, this will also prevent them from being covered by the linear
mapping.

Reviewed-by: Matt Fleming <matt@codeblueprint.co.uk>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/efi.c