Mercurial > hg > Members > taiki > EFIKernel
changeset 10:6c0c504fddae
minor change
author | taiki |
---|---|
date | Sat, 19 Jan 2013 01:55:18 +0900 |
parents | e6715e03b87a |
children | 09ced7d8f64a |
files | boot/bootx64.c |
diffstat | 1 files changed, 5 insertions(+), 19 deletions(-) [+] |
line wrap: on
line diff
--- 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 <efi.h> #include <efilib.h> + 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; }