summaryrefslogtreecommitdiff
path: root/include/asm-generic
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2017-09-03 14:14:17 +0200
committerAlexander Graf <agraf@suse.de>2017-09-18 23:53:56 +0200
commita148920e12cb9aa09589634966737c0fe88de2cc (patch)
treed0bf615fab35ec5c0927ca9c45aa61c16c6d7fb4 /include/asm-generic
parentae0bd3a983023aeb48b4ab3f417e5a62f8f72c37 (diff)
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>
Diffstat (limited to 'include/asm-generic')
0 files changed, 0 insertions, 0 deletions