u-boot/lib/efi_loader
Alexander Graf a148920e12 efi_loader: Fix efi_exit gd clobbering
Commit f494950b (efi_loader: call __efi_exit_check in efi_exit) added a call
to __efi_exit_check inside efi_exit to account for the fact that we're exiting
the efi_exit function via a longjmp call.

However, __efi_exit_check also swizzles gd to the application gd while the
longjmp will put us back into EFI context, so we need the efi (u-boot) gd.

This patch fixes that up by explicitly setting gd back to efi_gd before
doing the longjmp. It also adds a few comments on why it does that.

Signed-off-by: Alexander Graf <agraf@suse.de>
2017-09-18 23:53:56 +02:00
..
.gitignore lib: gitignore *.elf and *.so generated by efi_loader 2017-01-09 10:30:24 -05:00
efi_boottime.c efi_loader: Fix efi_exit gd clobbering 2017-09-18 23:53:56 +02:00
efi_console.c lib: add some utf16 handling helpers 2017-09-12 17:57:59 -04:00
efi_device_path_to_text.c efi_loader: add some missing breaks 2017-07-28 09:13:17 +02:00
efi_disk.c efi_disk: efi_disk_rw_blocks is not an API function 2017-09-18 23:53:56 +02:00
efi_gop.c efi_loader: GOP fix for no display 2017-08-11 13:49:23 +02:00
efi_image_loader.c efi_loader: refactor efi_open_protocol 2017-07-19 14:14:23 +02:00
efi_memory.c efi_loader: fix bug in efi_get_memory_map 2017-07-26 22:09:49 +02:00
efi_net.c efi_loader: refactor efi_open_protocol 2017-07-19 14:14:23 +02:00
efi_runtime.c efi_loader: use EFI_PAGE_MASK instead of EFI_PAGE_SIZE - 1 2017-08-12 14:05:45 +02:00
efi_smbios.c smbios: Expose in efi_loader as table 2016-10-19 09:01:52 +02:00
helloworld.c efi: Add support for a hello world test program 2016-11-14 23:24:03 +01:00
Kconfig x86: Enable EFI loader support 2016-11-14 23:24:04 +01:00
Makefile efi_loader: gop: fixes for CONFIG_DM_VIDEO without CONFIG_LCD 2017-07-24 14:43:40 +02:00