aboutsummaryrefslogtreecommitdiffstats
path: root/Lesson_20/UefiLessonsPkg/PCDLesson/PCDLesson.c
diff options
context:
space:
mode:
Diffstat (limited to 'Lesson_20/UefiLessonsPkg/PCDLesson/PCDLesson.c')
-rw-r--r--Lesson_20/UefiLessonsPkg/PCDLesson/PCDLesson.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/Lesson_20/UefiLessonsPkg/PCDLesson/PCDLesson.c b/Lesson_20/UefiLessonsPkg/PCDLesson/PCDLesson.c
new file mode 100644
index 0000000..7ed3081
--- /dev/null
+++ b/Lesson_20/UefiLessonsPkg/PCDLesson/PCDLesson.c
@@ -0,0 +1,15 @@
+#include <Library/UefiBootServicesTableLib.h>
+#include <Library/UefiLib.h>
+
+#include <Library/PcdLib.h>
+
+EFI_STATUS
+EFIAPI
+UefiMain (
+ IN EFI_HANDLE ImageHandle,
+ IN EFI_SYSTEM_TABLE *SystemTable
+ )
+{
+ Print(L"PcdMyVar32=%d\n", FixedPcdGet32(PcdMyVar32));
+ return EFI_SUCCESS;
+}