diff options
| author | Peter Jones <pjones@redhat.com> | 2013-05-14 13:10:52 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2013-05-14 13:10:52 -0400 |
| commit | 40cf2a423d7a080999cb22d0cb0bae33ab028c62 (patch) | |
| tree | 417c5053f7389fbec410dce1886faf5636f941a2 | |
| parent | 8807e36aaecfa2c4c67b33480cf44182518e313c (diff) | |
| download | efi-boot-shim-40cf2a423d7a080999cb22d0cb0bae33ab028c62.tar.gz efi-boot-shim-40cf2a423d7a080999cb22d0cb0bae33ab028c62.zip | |
Pass parameters correctly when booting.
Signed-off-by: Peter Jones <pjones@redhat.com>
| -rw-r--r-- | fallback.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -626,6 +626,14 @@ try_start_first_option(EFI_HANDLE parent_image_handle) uefi_call_wrapper(BS->Stall, 1, 2000000); return rc; } + + EFI_LOADED_IMAGE *image; + rc = uefi_call_wrapper(BS->HandleProtocol, 3, image_handle, &LoadedImageProtocol, (void *)&image); + if (!EFI_ERROR(rc)) { + image->LoadOptions = first_new_option_args; + image->LoadOptionsSize = first_new_option_size; + } + rc = uefi_call_wrapper(BS->StartImage, 3, image_handle, NULL, NULL); if (EFI_ERROR(rc)) { Print(L"StartImage failed: %d\n", rc); |
