aboutsummaryrefslogtreecommitdiffstats
path: root/Lesson_16/UefiLessonsPkg/HelloWorld
diff options
context:
space:
mode:
authorKonstantin Aladyshev <aladyshev22@gmail.com>2021-06-24 14:43:14 +0300
committerKonstantin Aladyshev <aladyshev22@gmail.com>2021-06-24 14:43:14 +0300
commit9d89eecb980b52ef61c1374f0661d2591c51cf8a (patch)
tree5269d75869fb7ca74fa925322d953a167d1c8284 /Lesson_16/UefiLessonsPkg/HelloWorld
parent35b4c9ce3baf2894601d9ed9334e7af51c35fe81 (diff)
downloadUEFI-Lessons-9d89eecb980b52ef61c1374f0661d2591c51cf8a.tar.gz
UEFI-Lessons-9d89eecb980b52ef61c1374f0661d2591c51cf8a.tar.bz2
UEFI-Lessons-9d89eecb980b52ef61c1374f0661d2591c51cf8a.zip
Add lesson 16
Diffstat (limited to 'Lesson_16/UefiLessonsPkg/HelloWorld')
-rw-r--r--Lesson_16/UefiLessonsPkg/HelloWorld/HelloWorld.c15
-rw-r--r--Lesson_16/UefiLessonsPkg/HelloWorld/HelloWorld.inf18
2 files changed, 33 insertions, 0 deletions
diff --git a/Lesson_16/UefiLessonsPkg/HelloWorld/HelloWorld.c b/Lesson_16/UefiLessonsPkg/HelloWorld/HelloWorld.c
new file mode 100644
index 0000000..1f05899
--- /dev/null
+++ b/Lesson_16/UefiLessonsPkg/HelloWorld/HelloWorld.c
@@ -0,0 +1,15 @@
+#include <Library/UefiBootServicesTableLib.h>
+#include <Library/UefiLib.h>
+
+EFI_STATUS
+EFIAPI
+UefiMain (
+ IN EFI_HANDLE ImageHandle,
+ IN EFI_SYSTEM_TABLE *SystemTable
+ )
+{
+ SystemTable->ConOut->OutputString(SystemTable->ConOut, L"Hello World!\n");
+ gST->ConOut->OutputString(gST->ConOut, L"Hello again!\n");
+ Print(L"Bye!\n");
+ return EFI_SUCCESS;
+}
diff --git a/Lesson_16/UefiLessonsPkg/HelloWorld/HelloWorld.inf b/Lesson_16/UefiLessonsPkg/HelloWorld/HelloWorld.inf
new file mode 100644
index 0000000..d65ca2e
--- /dev/null
+++ b/Lesson_16/UefiLessonsPkg/HelloWorld/HelloWorld.inf
@@ -0,0 +1,18 @@
+[Defines]
+ INF_VERSION = 1.25
+ BASE_NAME = HelloWorld
+ FILE_GUID = 2e55fa38-f148-42d3-af90-1be247323e30
+ MODULE_TYPE = UEFI_APPLICATION
+ VERSION_STRING = 1.0
+ ENTRY_POINT = UefiMain
+
+[Sources]
+ HelloWorld.c
+
+[Packages]
+ MdePkg/MdePkg.dec
+
+[LibraryClasses]
+ UefiApplicationEntryPoint
+ UefiLib
+