aboutsummaryrefslogtreecommitdiffstats
path: root/hello-efi/main.c
diff options
context:
space:
mode:
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;
+}