diff options
| author | Peter Jones <pjones@redhat.com> | 2021-07-23 14:28:59 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2021-09-07 17:05:04 -0400 |
| commit | 6ea93a28759d754778e483f86f95587a01c5fee8 (patch) | |
| tree | 80d24240d34e57863c9142b2bc5ab5006e9b060b /lib/execute.c | |
| parent | 116a8310ab93d803fa51f9ba9f3d6d0cb691e2bf (diff) | |
| download | efi-boot-shim-6ea93a28759d754778e483f86f95587a01c5fee8.tar.gz efi-boot-shim-6ea93a28759d754778e483f86f95587a01c5fee8.zip | |
cleanup: always use BS and RT, not gBS and gRT
This just makes one less thing we have to make sure is the same between
the test harnesses and the runtime code.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'lib/execute.c')
| -rw-r--r-- | lib/execute.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/execute.c b/lib/execute.c index 642f94a3..0eb872e4 100644 --- a/lib/execute.c +++ b/lib/execute.c @@ -63,8 +63,8 @@ execute(EFI_HANDLE image, CHAR16 *name) EFI_DEVICE_PATH *devpath; CHAR16 *PathName; - efi_status = gBS->HandleProtocol(image, &IMAGE_PROTOCOL, - (void **) &li); + efi_status = BS->HandleProtocol(image, &IMAGE_PROTOCOL, + (void **) &li); if (EFI_ERROR(efi_status)) return efi_status; @@ -72,12 +72,12 @@ execute(EFI_HANDLE image, CHAR16 *name) if (EFI_ERROR(efi_status)) return efi_status; - efi_status = gBS->LoadImage(FALSE, image, devpath, NULL, 0, &h); + efi_status = BS->LoadImage(FALSE, image, devpath, NULL, 0, &h); if (EFI_ERROR(efi_status)) goto out; - efi_status = gBS->StartImage(h, NULL, NULL); - gBS->UnloadImage(h); + efi_status = BS->StartImage(h, NULL, NULL); + BS->UnloadImage(h); out: FreePool(PathName); |
