diff options
author | Regia König | 2022-08-16 12:03:17 +0200 |
---|---|---|
committer | Regia König | 2022-08-16 12:03:17 +0200 |
commit | 7a37ec94fbdf6a4a058f4094b9326387786e19b3 (patch) | |
tree | ae46540f140213c63e79b60b68b2d77fd4be3027 /GNU_efi_HelloWorld/hello.c | |
parent | Correct a mistake in test.sh (diff) | |
download | memtest86-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.c | 11 |
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; +} |