mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-22 21:24:35 +02:00
NetworkPkg/SnpDxe: Use PcdGetBool() instead of FixedPcdGetBool in Snp.c
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>
This commit is contained in:
parent
d4269c8e7c
commit
6f3ac73cd3
@ -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
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user