aboutsummaryrefslogtreecommitdiffstats
path: root/Lessons/Lesson_21/UefiLessonsPkg/PCDLesson/PCDLesson.c
diff options
context:
space:
mode:
Diffstat (limited to 'Lessons/Lesson_21/UefiLessonsPkg/PCDLesson/PCDLesson.c')
-rw-r--r--Lessons/Lesson_21/UefiLessonsPkg/PCDLesson/PCDLesson.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/Lessons/Lesson_21/UefiLessonsPkg/PCDLesson/PCDLesson.c b/Lessons/Lesson_21/UefiLessonsPkg/PCDLesson/PCDLesson.c
new file mode 100644
index 0000000..3c88a9b
--- /dev/null
+++ b/Lessons/Lesson_21/UefiLessonsPkg/PCDLesson/PCDLesson.c
@@ -0,0 +1,17 @@
+#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));
+ Print(L"PcdMyVar32_1=%d\n", FixedPcdGet32(PcdMyVar32_1));
+ Print(L"PcdMyVar32_2=%d\n", FixedPcdGet32(PcdMyVar32_2));
+ return EFI_SUCCESS;
+}