u-boot-brain/lib/efi_loader
Alexander Graf 282a06cbca efi_loader: Expose U-Boot addresses in memory map for sandbox
We currently expose host addresses in the EFI memory map. That can be
bad if we ever want to use sandbox to boot strap a real kernel, because
then the kernel would fetch its memory table from our host virtual address
map. But to make that use case work, we would need to have full control
over the address space the EFI application sees.

So let's expose only U-Boot addresses to the guest until we get to the
point of allocation. EFI's allocation functions are fun - they can take
U-Boot addresses as input values for hints and return host addresses as
allocation results through the same uint64_t * parameter. So we need to
be extra careful on what to pass in when.

With this patch I am successfully able to run the efi selftest suite as
well as grub.efi on aarch64.

Signed-off-by: Alexander Graf <agraf@suse.de>
2018-07-25 14:57:44 +02:00
..
.gitignore lib: gitignore *.elf and *.so generated by efi_loader 2017-01-09 10:30:24 -05:00
efi_acpi.c efi_loader: Install ACPI configuration tables 2018-07-02 09:23:28 +08:00
efi_bootmgr.c efi_loader: adjust definitions of variable services 2018-06-03 15:27:20 +02:00
efi_boottime.c efi_loader: Introduce ms abi vararg helpers 2018-07-25 14:57:43 +02:00
efi_console.c efi_loader: Fix warning in raw/cols query 2018-06-03 15:51:19 +02:00
efi_device_path_to_text.c SPDX: Convert a few files that were missed before 2018-05-10 20:38:35 -04:00
efi_device_path_utilities.c SPDX: Convert a few files that were missed before 2018-05-10 20:38:35 -04:00
efi_device_path.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
efi_disk.c SPDX: Convert a few files that were missed before 2018-05-10 20:38:35 -04:00
efi_file.c SPDX: Convert a few files that were missed before 2018-05-10 20:38:35 -04:00
efi_gop.c efi_loader: Fix GOP 32bpp exposure 2018-06-21 17:18:18 +02:00
efi_image_loader.c efi_loader: Use compiler constants for image loader 2018-07-25 14:57:43 +02:00
efi_memory.c efi_loader: Expose U-Boot addresses in memory map for sandbox 2018-07-25 14:57:44 +02:00
efi_net.c SPDX: Convert a few files that were missed before 2018-05-10 20:38:35 -04:00
efi_runtime.c efi_loader: Use common elf.h reloc defines 2018-07-25 14:57:43 +02:00
efi_smbios.c efi_loader: Allow SMBIOS tables in highmem 2018-07-25 14:57:43 +02:00
efi_variable.c efi_loader: fix off-by-one bug in efi_get_variable 2018-06-03 15:27:20 +02:00
efi_watchdog.c SPDX: Convert a few files that were missed before 2018-05-10 20:38:35 -04:00
helloworld.c efi_loader: helloworld: Output ACPI configuration table 2018-07-02 09:23:28 +08:00
Kconfig Revert "efi_loader: no support for ARMV7_NONSEC=y" 2018-07-25 14:57:43 +02:00
Makefile efi_loader: Install ACPI configuration tables 2018-07-02 09:23:28 +08:00