summaryrefslogtreecommitdiffstats
path: root/MdePkg/Include/Library/PcdLib.h
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2006-06-22 14:07:22 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2006-06-22 14:07:22 +0000
commitdc530c7b9df56725243aae875ed90ac1138e4628 (patch)
tree033c55927f95fb0e3c3eeb98e3a647a32e3695b0 /MdePkg/Include/Library/PcdLib.h
parent30a60d29aac19ca429dc75b6295db907618513b4 (diff)
downloadedk2-dc530c7b9df56725243aae875ed90ac1138e4628.tar.gz
edk2-dc530c7b9df56725243aae875ed90ac1138e4628.tar.bz2
edk2-dc530c7b9df56725243aae875ed90ac1138e4628.zip
In before, FixedPcdGetxx macro was defined as global variable, it is wrong. It should be defined as value directly, and module developer can use it to define length of array.
1) Change macro FixedPcdGetxx to value macro. 2) Change some wrong macro usage in library. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@598 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Include/Library/PcdLib.h')
-rw-r--r--MdePkg/Include/Library/PcdLib.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/MdePkg/Include/Library/PcdLib.h b/MdePkg/Include/Library/PcdLib.h
index c4e5502a0d..b513a61e86 100644
--- a/MdePkg/Include/Library/PcdLib.h
+++ b/MdePkg/Include/Library/PcdLib.h
@@ -26,23 +26,23 @@ Module Name: PcdLib.h
//
// Feature Flag is in the form of a global constant
//
-#define FeaturePcdGet(TokenName) _gPcd_FixedAtBuild_##TokenName
+#define FeaturePcdGet(TokenName) _PCD_VALUE_##TokenName
//
// Fixed is fixed at build time
//
-#define FixedPcdGet8(TokenName) _gPcd_FixedAtBuild_##TokenName
-#define FixedPcdGet16(TokenName) _gPcd_FixedAtBuild_##TokenName
-#define FixedPcdGet32(TokenName) _gPcd_FixedAtBuild_##TokenName
-#define FixedPcdGet64(TokenName) _gPcd_FixedAtBuild_##TokenName
-#define FixedPcdGetBool(TokenName) _gPcd_FixedAtBuild_##TokenName
+#define FixedPcdGet8(TokenName) _PCD_VALUE_##TokenName
+#define FixedPcdGet16(TokenName) _PCD_VALUE_##TokenName
+#define FixedPcdGet32(TokenName) _PCD_VALUE_##TokenName
+#define FixedPcdGet64(TokenName) _PCD_VALUE_##TokenName
+#define FixedPcdGetBool(TokenName) _PCD_VALUE_##TokenName
//
// BugBug: This works for strings, but not constants.
//
-#define FixedPcdGetPtr(TokenName) ((VOID *)_gPcd_FixedAtBuild_##TokenName)
+#define FixedPcdGetPtr(TokenName) ((VOID *)_PCD_VALUE_##TokenName)
//