This patch fixes a problem introduced by commit
61bb6eeb4d93c0a34c1995d87914ab41398f9550.
The PcdSnpCreateExitBootServicesEvent is not guaranteed to be FixedAtBuild,
so use PcdGetBool() to supports both fixed and patchable PCD.
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Signed-off-by: Siyuan Fu <siyuan.fu@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
PxeShutdown (Snp);\r
PxeStop (Snp);\r
\r
- if (FixedPcdGetBool (PcdSnpCreateExitBootServicesEvent)) {\r
+ if (PcdGetBool (PcdSnpCreateExitBootServicesEvent)) {\r
//\r
// Create EXIT_BOOT_SERIVES Event\r
//\r
return Status;\r
}\r
\r
- if (FixedPcdGetBool (PcdSnpCreateExitBootServicesEvent)) {\r
+ if (PcdGetBool (PcdSnpCreateExitBootServicesEvent)) {\r
//\r
// Close EXIT_BOOT_SERIVES Event\r
//\r