diff options
author | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-01-29 23:39:48 +0000 |
---|---|---|
committer | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-01-29 23:39:48 +0000 |
commit | 188e4e8444bdc69e2f6c65e90c35956eb01cd4b3 (patch) | |
tree | 1dedd2987f85bec8857920f890b70726bae68bba /MdeModulePkg/Universal/PCD/Dxe | |
parent | c37f052fe912998d88abd58c5446a03b546f4831 (diff) | |
download | edk2-platforms-188e4e8444bdc69e2f6c65e90c35956eb01cd4b3.tar.xz |
Remove unnecessary use of FixedPcdxxx() functions and [FixedPcd] INF sections. These should only be used for PCDs that are used to pre-init global variables, pre-init global structures, or size arrays.
Do some minor clean ups to INF files
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9868 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/PCD/Dxe')
-rw-r--r-- | MdeModulePkg/Universal/PCD/Dxe/Pcd.inf | 6 | ||||
-rw-r--r-- | MdeModulePkg/Universal/PCD/Dxe/Service.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/MdeModulePkg/Universal/PCD/Dxe/Pcd.inf b/MdeModulePkg/Universal/PCD/Dxe/Pcd.inf index 5e5bacbcfc..e3739aae57 100644 --- a/MdeModulePkg/Universal/PCD/Dxe/Pcd.inf +++ b/MdeModulePkg/Universal/PCD/Dxe/Pcd.inf @@ -276,7 +276,7 @@ # - Variable GUID for HII type PCD
# - Token space GUID for dynamicex type PCD
#
-# Copyright (c) 2006 - 2009, Intel Corporation
+# Copyright (c) 2006 - 2010, Intel Corporation
#
# All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@@ -303,7 +303,7 @@ # VALID_ARCHITECTURES = IA32 X64 IPF EBC
#
-[Sources.common]
+[Sources]
Pcd.c
Service.c
Service.h
@@ -331,7 +331,7 @@ gPcdProtocolGuid ## PRODUCES
gEfiPcdProtocolGuid ## PRODUCES
-[FixedPcd.common]
+[Pcd]
gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress
[Depex]
diff --git a/MdeModulePkg/Universal/PCD/Dxe/Service.c b/MdeModulePkg/Universal/PCD/Dxe/Service.c index 1999ac6cc4..5cd9eb8ce5 100644 --- a/MdeModulePkg/Universal/PCD/Dxe/Service.c +++ b/MdeModulePkg/Universal/PCD/Dxe/Service.c @@ -119,7 +119,7 @@ GetWorker ( switch (LocalTokenNumber & PCD_TYPE_ALL_SET) {
case PCD_TYPE_VPD:
VpdHead = (VPD_HEAD *) ((UINT8 *) PcdDb + Offset);
- RetPtr = (VOID *) (UINTN) (FixedPcdGet32(PcdVpdBaseAddress) + VpdHead->Offset);
+ RetPtr = (VOID *) (UINTN) (PcdGet32 (PcdVpdBaseAddress) + VpdHead->Offset);
break;
case PCD_TYPE_HII:
|