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
This commit is contained in:
klu2
2006-06-22 14:07:22 +00:00
parent 30a60d29aa
commit dc530c7b9d
4 changed files with 15 additions and 15 deletions

View File

@@ -33,7 +33,7 @@ IsNodeInList (
ASSERT (List->BackLink != NULL);
ASSERT (Node != NULL);
Count = FixedPcdGet32 (PcdMaximumLinkedListLength);
Count = PcdGet32 (PcdMaximumLinkedListLength);
if (Count != 0) {
Count++;
}
@@ -45,7 +45,7 @@ IsNodeInList (
} while ((Ptr != List) && (Ptr != Node) && (Count > 0));
Found = (BOOLEAN)(Ptr == Node);
if (FixedPcdGet32 (PcdMaximumLinkedListLength) > 0) {
if (PcdGet32 (PcdMaximumLinkedListLength) > 0) {
while ((Count > 0) && (Ptr != List)) {
Ptr = Ptr->ForwardLink;
Count--;