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
//\r
// Feature Flag is in the form of a global constant\r
//\r
//\r
// Feature Flag is in the form of a global constant\r
//\r
-#define FeaturePcdGet(TokenName) _gPcd_FixedAtBuild_##TokenName\r
+#define FeaturePcdGet(TokenName) _PCD_VALUE_##TokenName\r
\r
\r
//\r
// Fixed is fixed at build time\r
//\r
\r
\r
//\r
// Fixed is fixed at build time\r
//\r
-#define FixedPcdGet8(TokenName) _gPcd_FixedAtBuild_##TokenName\r
-#define FixedPcdGet16(TokenName) _gPcd_FixedAtBuild_##TokenName\r
-#define FixedPcdGet32(TokenName) _gPcd_FixedAtBuild_##TokenName\r
-#define FixedPcdGet64(TokenName) _gPcd_FixedAtBuild_##TokenName\r
-#define FixedPcdGetBool(TokenName) _gPcd_FixedAtBuild_##TokenName\r
+#define FixedPcdGet8(TokenName) _PCD_VALUE_##TokenName\r
+#define FixedPcdGet16(TokenName) _PCD_VALUE_##TokenName\r
+#define FixedPcdGet32(TokenName) _PCD_VALUE_##TokenName\r
+#define FixedPcdGet64(TokenName) _PCD_VALUE_##TokenName\r
+#define FixedPcdGetBool(TokenName) _PCD_VALUE_##TokenName\r
\r
\r
//\r
// BugBug: This works for strings, but not constants.\r
//\r
\r
\r
//\r
// BugBug: This works for strings, but not constants.\r
//\r
-#define FixedPcdGetPtr(TokenName) ((VOID *)_gPcd_FixedAtBuild_##TokenName)\r
+#define FixedPcdGetPtr(TokenName) ((VOID *)_PCD_VALUE_##TokenName)\r
ASSERT (List->BackLink != NULL);\r
ASSERT (Node != NULL);\r
\r
ASSERT (List->BackLink != NULL);\r
ASSERT (Node != NULL);\r
\r
- Count = FixedPcdGet32 (PcdMaximumLinkedListLength);\r
+ Count = PcdGet32 (PcdMaximumLinkedListLength);\r
if (Count != 0) {\r
Count++;\r
}\r
if (Count != 0) {\r
Count++;\r
}\r
} while ((Ptr != List) && (Ptr != Node) && (Count > 0));\r
Found = (BOOLEAN)(Ptr == Node);\r
\r
} while ((Ptr != List) && (Ptr != Node) && (Count > 0));\r
Found = (BOOLEAN)(Ptr == Node);\r
\r
- if (FixedPcdGet32 (PcdMaximumLinkedListLength) > 0) {\r
+ if (PcdGet32 (PcdMaximumLinkedListLength) > 0) {\r
while ((Count > 0) && (Ptr != List)) {\r
Ptr = Ptr->ForwardLink;\r
Count--;\r
while ((Count > 0) && (Ptr != List)) {\r
Ptr = Ptr->ForwardLink;\r
Count--;\r
// If PcdMaximumUnicodeStringLength is not zero,\r
// length should not more than PcdMaximumUnicodeStringLength\r
//\r
// If PcdMaximumUnicodeStringLength is not zero,\r
// length should not more than PcdMaximumUnicodeStringLength\r
//\r
- if (FixedPcdGet32 (PcdMaximumUnicodeStringLength) != 0) {\r
- ASSERT (Length < FixedPcdGet32 (PcdMaximumUnicodeStringLength));\r
+ if (PcdGet32 (PcdMaximumUnicodeStringLength) != 0) {\r
+ ASSERT (Length < PcdGet32 (PcdMaximumUnicodeStringLength));\r
// If PcdMaximumUnicodeStringLength is not zero,\r
// length should not more than PcdMaximumUnicodeStringLength\r
//\r
// If PcdMaximumUnicodeStringLength is not zero,\r
// length should not more than PcdMaximumUnicodeStringLength\r
//\r
- if (FixedPcdGet32 (PcdMaximumAsciiStringLength) != 0) {\r
- ASSERT (Length < FixedPcdGet32 (PcdMaximumAsciiStringLength));\r
+ if (PcdGet32 (PcdMaximumAsciiStringLength) != 0) {\r
+ ASSERT (Length < PcdGet32 (PcdMaximumAsciiStringLength));\r
Tick = 0;\r
Start = 0;\r
End = 0;\r
Tick = 0;\r
Start = 0;\r
End = 0;\r
- if (FixedPcdGet32 (PcdSpinLockTimeout) > 0) {\r
+ if (PcdGet32 (PcdSpinLockTimeout) > 0) {\r
Tick = GetPerformanceCounter ();\r
Timeout = DivU64x32 (\r
MultU64x32 (\r
GetPerformanceCounterProperties (&Start, &End),\r
Tick = GetPerformanceCounter ();\r
Timeout = DivU64x32 (\r
MultU64x32 (\r
GetPerformanceCounterProperties (&Start, &End),\r
- FixedPcdGet32 (PcdSpinLockTimeout)\r
+ PcdGet32 (PcdSpinLockTimeout)\r