efi_loader: Fix some entry/exit points
authorAlexander Graf <agraf@suse.de>
Thu, 24 Mar 2016 00:37:37 +0000 (01:37 +0100)
committerTom Rini <trini@konsulko.com>
Sun, 27 Mar 2016 13:13:02 +0000 (09:13 -0400)
commit1cd29f0abd787eb881523452a77e12dab1cb32c5
treea23d6d161fe43ba552d0e3880672b9f5299dfe38
parentedc498c651d97e4b2cbd9a83a93a7f815a93e272
efi_loader: Fix some entry/exit points

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 <agraf@suse.de>
lib/efi_loader/efi_boottime.c
lib/efi_loader/efi_image_loader.c