main.c 567 B

123456789101112131415161718192021222324
  1. #include <efi.h>
  2. #include <efilib.h>
  3. EFI_STATUS
  4. EFIAPI
  5. efi_main (EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable) {
  6. InitializeLib(ImageHandle, SystemTable);
  7. Print(L"Hello, world!\n");
  8. return EFI_SUCCESS;
  9. }
  10. /*
  11. #include <efi.h>
  12. #include <efilib.h>
  13. EFI_STATUS efi_main(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable) {
  14. SIMPLE_TEXT_OUTPUT_INTERFACE *conout;
  15. InitializeLib(ImageHandle, SystemTable);
  16. conout = SystemTable->ConOut;
  17. uefi_call_wrapper(conout->OutputString, 2, conout, (CHAR16 *)L"Hello World\n\r");
  18. return EFI_SUCCESS;
  19. }
  20. */