efi/libstub/x86: Make loaded_image protocol handling mixed mode safe
authorArd Biesheuvel <ardb@kernel.org>
Fri, 14 Feb 2020 13:29:21 +0000 (14:29 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Sun, 23 Feb 2020 20:59:42 +0000 (21:59 +0100)
commitf7b85b33eb0b3025830a102b01e6e1c3426cdf13
tree11421638fef0184982fa81b41daed0a1385433e0
parent832187f03994b03b6cc4a3b9130d82b1ec5cbec4
efi/libstub/x86: Make loaded_image protocol handling mixed mode safe

Add the definitions and use the special wrapper so that the loaded_image
UEFI protocol can be safely used from mixed mode.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/efi-stub-helper.c
drivers/firmware/efi/libstub/efistub.h
drivers/firmware/efi/libstub/x86-stub.c