aboutsummaryrefslogtreecommitdiffstats
path: root/hello-efi/main.c
diff options
context:
space:
mode:
authorGravatar ornitorrincos 2026-08-18 12:15:05 +0200
committerGravatar ornitorrincos 2026-08-18 12:15:05 +0200
commit132d3236bb884433bf94e961f6d32264e0334aec (patch)
tree06638976b06f019ea4037175ff228f8271057c44 /hello-efi/main.c
Diffstat (limited to 'hello-efi/main.c')
-rw-r--r--hello-efi/main.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/hello-efi/main.c b/hello-efi/main.c
new file mode 100644
index 0000000..46ae5c7
--- /dev/null
+++ b/hello-efi/main.c
@@ -0,0 +1,11 @@
+#include <efi.h>
+#include <efilib.h>
+
+EFI_STATUS
+EFIAPI
+efi_main (EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
+{
+ InitializeLib(ImageHandle, SystemTable);
+ Print(L"Hello, world!\n");
+ return EFI_SUCCESS;
+}