summaryrefslogtreecommitdiffstats
path: root/GNU_efi_HelloWorld/hello.c
diff options
context:
space:
mode:
Diffstat (limited to 'GNU_efi_HelloWorld/hello.c')
-rw-r--r--GNU_efi_HelloWorld/hello.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/GNU_efi_HelloWorld/hello.c b/GNU_efi_HelloWorld/hello.c
new file mode 100644
index 0000000..26cbd42
--- /dev/null
+++ b/GNU_efi_HelloWorld/hello.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;
+}