changeset 6:117ef669f2ce

...
author kono
date Fri, 19 Jan 2024 11:25:58 +0900
parents 209a1a162228
children f422d46482db
files gnu-efi-3.0.12/apps/bootloader.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gnu-efi-3.0.12/apps/bootloader.c	Fri Jan 19 11:16:05 2024 +0900
+++ b/gnu-efi-3.0.12/apps/bootloader.c	Fri Jan 19 11:25:58 2024 +0900
@@ -54,7 +54,7 @@
             // Now open a file
             Status = uefi_call_wrapper(Root->Open, 5, Root, &File,FileName , EFI_FILE_MODE_READ, 0);
             if (EFI_ERROR(Status)) {
-                Print(L"Failed to open file: %r\n", Status);
+                // Print(L"Failed to open file: %r\n", Status);
                 uefi_call_wrapper(Root->Close, 1, Root);
                 continue;
             }
@@ -116,6 +116,7 @@
     if (EFI_ERROR(Status)) {
         return Status;
     }
+    Print(L"Boot 1\n");
 
     struct BootParam boot_param;
     boot_param.kernel_addr = KernelBaseAddr;
@@ -132,6 +133,7 @@
     //     return Status;
     // }
     // boot_param.rsdp_addr = (UINT64)vendor_table;
+    Print(L"Boot 2\n");
 
     struct MemoryMap MemoryMap = {4096, NULL, 4096, 0, 0, 0};
     Status = uefi_call_wrapper(SystemTable->BootServices->AllocatePool, 3, EfiLoaderData, MemoryMap.BufferSize, &MemoryMap.Buffer);
@@ -145,6 +147,7 @@
         Print(L"Failed to get memory map.\n");
         return Status;
     }
+    Print(L"Boot 3\n");
 
     Status = uefi_call_wrapper(SystemTable->BootServices->ExitBootServices, 2, ImageHandle, MemoryMap.MapKey);
     if (EFI_ERROR(Status)) {
@@ -152,6 +155,7 @@
         return Status;
     }
 
+    Print(L"Start Entry\n");
     Entry(&boot_param);
 
     return Status;