1 2 3 4 5 6 7 8 9 10 11 12 13 14 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; }