]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8eb188a2b3a72a7b409ed90c47a369ec18c33e52
tree17e4fb14f10906ef57fb7937d03ffc8a1ded9d64
parent96e4946c1867fc85b3c4b0126ce78dd5f32f4604
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]