NetworkPkg/SnpDxe: Use PcdGetBool() instead of FixedPcdGetBool in Snp.c
This patch fixes a problem introduced by commit
61bb6eeb4d
.
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>
This commit is contained in:
@@ -647,7 +647,7 @@ SimpleNetworkDriverStart (
|
|||||||
PxeShutdown (Snp);
|
PxeShutdown (Snp);
|
||||||
PxeStop (Snp);
|
PxeStop (Snp);
|
||||||
|
|
||||||
if (FixedPcdGetBool (PcdSnpCreateExitBootServicesEvent)) {
|
if (PcdGetBool (PcdSnpCreateExitBootServicesEvent)) {
|
||||||
//
|
//
|
||||||
// Create EXIT_BOOT_SERIVES Event
|
// Create EXIT_BOOT_SERIVES Event
|
||||||
//
|
//
|
||||||
@@ -780,7 +780,7 @@ SimpleNetworkDriverStop (
|
|||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FixedPcdGetBool (PcdSnpCreateExitBootServicesEvent)) {
|
if (PcdGetBool (PcdSnpCreateExitBootServicesEvent)) {
|
||||||
//
|
//
|
||||||
// Close EXIT_BOOT_SERIVES Event
|
// Close EXIT_BOOT_SERIVES Event
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user