# HG changeset patch # User taiki # Date 1358528118 -32400 # Node ID 6c0c504fddaeb13deffc75bf0610bc715788c07f # Parent e6715e03b87a11bb89ee8b470ee576d8fc378ad1 minor change diff -r e6715e03b87a -r 6c0c504fddae boot/bootx64.c --- a/boot/bootx64.c Wed Jan 16 01:33:09 2013 +0900 +++ b/boot/bootx64.c Sat Jan 19 01:55:18 2013 +0900 @@ -1,32 +1,18 @@ #include #include + EFI_STATUS efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *system_table) { InitializeLib(image, system_table); - /* - EFI_LOADED_IMAGE *loaded_image = NULL; - EFI_GUID loaded_image_protocol = LOADED_IMAGE_PROTOCOL; - EFI_STATUS status; - uefi_call_wrapper(BS->SetWatchdogTimer, 4, 0, 0x0, 0, NULL); + Print(L"Hello, World\n"); - status = uefi_call_wrapper( - system_table->BootServices->HandleProtocol, - 3, - image, - &loaded_image_protocol, - (void **) &loaded_image); - - if (EFI_ERROR(status)) { - Print(L"handleprotocol: %r\n", status); + while (1) + { + asm volatile ("cli" : : ); } - Print(L"Image base: %lx\n", loaded_image->ImageBase); - Print(L"Image size: %lx\n", loaded_image->ImageSize); - Print(L"Image file: %s\n", DevicePathToStr(loaded_image->FilePath)); -*/ - Print(L"Hello, World\n"); return EFI_SUCCESS; }