path: root/lib/efi_loader/efi_boottime.c
Commit message (Collapse)AuthorAgeFilesLines
* efi_loader: Move to normal debug infrastructureAlexander Graf2016-06-061-5/+1
| | | | | | | | | | | | We introduced special "DEBUG_EFI" defines when the efi loader support was new. After giving it a bit of thought, turns out we really didn't have to - the normal #define DEBUG infrastructure works well enough for efi loader as well. So this patch switches to the common debug() and #define DEBUG way of printing debug information. Signed-off-by: Alexander Graf <>
* efi_loader: Add exit supportAlexander Graf2016-06-061-5/+16
| | | | | | | | | | | Some times you may want to exit an EFI payload again, for example to default boot into a PXE installation and decide that you would rather want to boot from the local disk instead. This patch adds exit functionality to the EFI implementation, allowing EFI payloads to exit. Signed-off-by: Alexander Graf <>
* efi_loader: Fix some entry/exit pointsAlexander Graf2016-03-271-3/+10
| | | | | | | | | | | | When switching between EFI context and U-Boot context we need to swap the register that "gd" resides in. Some functions slipped through here, with efi_allocate_pool / efi_free_pool not doing the switch correctly and efi_return_handle switching too often. Fix them all up to make sure we always have consistent register state. Signed-off-by: Alexander Graf <>
* efi_loader: Add runtime servicesAlexander Graf2016-03-151-3/+3
| | | | | | | | | | | | | | | | | After booting has finished, EFI allows firmware to still interact with the OS using the "runtime services". These callbacks live in a separate address space, since they are available long after U-Boot has been overwritten by the OS. This patch adds enough framework for arbitrary code inside of U-Boot to become a runtime service with the right section attributes set. For now, we don't make use of it yet though. We could maybe in the future map U-boot environment variables to EFI variables here. Signed-off-by: Alexander Graf <> Reviewed-by: Simon Glass <> Tested-by: Simon Glass <>
* efi_loader: Add boot time servicesAlexander Graf2016-03-151-0/+781
When an EFI application runs, it has access to a few descriptor and callback tables to instruct the EFI compliant firmware to do things for it. The bulk of those interfaces are "boot time services". They handle all object management, and memory allocation. This patch adds support for the boot time services and also exposes a system table, which is the point of entry descriptor table for EFI payloads. Signed-off-by: Alexander Graf <> Reviewed-by: Simon Glass <> Tested-by: Simon Glass <>
OpenPOWER on IntegriCloud