arm64/efi: split off EFI init and runtime code for reuse by 32-bit ARM
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 30 Nov 2015 12:28:18 +0000 (13:28 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 9 Dec 2015 16:57:23 +0000 (16:57 +0000)
commite5bc22a42e4d46cc203fdfb6d2c76202b08666a0
tree17e4fb14f10906ef57fb7937d03ffc8a1ded9d64
parent4dffbfc48d65e5d8157a634fd670065d237a9377
arm64/efi: split off EFI init and runtime code for reuse by 32-bit ARM

This splits off the early EFI init and runtime code that
- discovers the EFI params and the memory map from the FDT, and installs
  the memblocks and config tables.
- prepares and installs the EFI page tables so that UEFI Runtime Services
  can be invoked at the virtual address installed by the stub.

This will allow it to be reused for 32-bit ARM.

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
drivers/firmware/efi/Makefile
drivers/firmware/efi/arm-init.c [new file with mode: 0644]
drivers/firmware/efi/arm-runtime.c [new file with mode: 0644]