summaryrefslogtreecommitdiffstats
path: root/GNU_efi_HelloWorld/hello.c
diff options
context:
space:
mode:
authorRegia König2022-08-16 12:03:17 +0200
committerRegia König2022-08-16 12:03:17 +0200
commit7a37ec94fbdf6a4a058f4094b9326387786e19b3 (patch)
treeae46540f140213c63e79b60b68b2d77fd4be3027 /GNU_efi_HelloWorld/hello.c
parentCorrect a mistake in test.sh (diff)
downloadmemtest86-7a37ec94fbdf6a4a058f4094b9326387786e19b3.tar.gz
memtest86-7a37ec94fbdf6a4a058f4094b9326387786e19b3.tar.xz
memtest86-7a37ec94fbdf6a4a058f4094b9326387786e19b3.zip
Start new project: Create a HelloWorld.efi with GNU-efi
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;
+}