diff options
author | Siyuan, Fu <siyuan.fu@intel.com> | 2019-10-29 09:41:10 +0800 |
---|---|---|
committer | Siyuan Fu <siyuan.fu@intel.com> | 2019-10-29 17:39:10 +0800 |
commit | 6f3ac73cd3792c7eeccb4533e545270d640bef4c (patch) | |
tree | b0140c88b5f39059b8af6c753c4df259d3b58187 /NetworkPkg | |
parent | d4269c8e7c4d132f24bfc08bd723f81265154546 (diff) | |
download | edk2-6f3ac73cd3792c7eeccb4533e545270d640bef4c.tar.gz edk2-6f3ac73cd3792c7eeccb4533e545270d640bef4c.tar.bz2 edk2-6f3ac73cd3792c7eeccb4533e545270d640bef4c.zip |
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>
Diffstat (limited to 'NetworkPkg')
-rw-r--r-- | NetworkPkg/SnpDxe/Snp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/NetworkPkg/SnpDxe/Snp.c b/NetworkPkg/SnpDxe/Snp.c index 9fb007f7ae..1099dbfa6a 100644 --- a/NetworkPkg/SnpDxe/Snp.c +++ b/NetworkPkg/SnpDxe/Snp.c @@ -647,7 +647,7 @@ SimpleNetworkDriverStart ( PxeShutdown (Snp);
PxeStop (Snp);
- if (FixedPcdGetBool (PcdSnpCreateExitBootServicesEvent)) {
+ if (PcdGetBool (PcdSnpCreateExitBootServicesEvent)) {
//
// Create EXIT_BOOT_SERIVES Event
//
@@ -780,7 +780,7 @@ SimpleNetworkDriverStop ( return Status;
}
- if (FixedPcdGetBool (PcdSnpCreateExitBootServicesEvent)) {
+ if (PcdGetBool (PcdSnpCreateExitBootServicesEvent)) {
//
// Close EXIT_BOOT_SERIVES Event
//
|