aboutsummaryrefslogtreecommitdiffstats
path: root/Lessons/Lesson_21/UefiLessonsPkg/PCDLesson/PCDLesson.c
blob: ce92e04365d507d7efd0a9f9a67aae80d339c488 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (c) 2021, Konstantin Aladyshev <aladyshev22@gmail.com>
 *
 * SPDX-License-Identifier: MIT
 */

#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;
}