Skip to content

Commit 04419e8

Browse files
committed
efi: libstub: fix up the last remaining open coded boot service call
We use a macro efi_bs_call() to call boot services, which is more concise, and on x86, it encapsulates the mixed mode handling. This code does not run in mixed mode, but let's switch to the macro for general tidiness. Signed-off-by: Ard Biesheuvel <[email protected]>
1 parent 69e377b commit 04419e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/firmware/efi/libstub/efi-stub.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ efi_status_t __efiapi efi_pe_entry(efi_handle_t handle,
154154
* information about the running image, such as size and the command
155155
* line.
156156
*/
157-
status = efi_system_table->boottime->handle_protocol(handle,
158-
&loaded_image_proto, (void *)&image);
157+
status = efi_bs_call(handle_protocol, handle, &loaded_image_proto,
158+
(void *)&image);
159159
if (status != EFI_SUCCESS) {
160160
efi_err("Failed to get loaded image protocol\n");
161161
goto fail;

0 commit comments

Comments
 (0)