Deleted x64\SwitchStack.c Ipf/SwitchStack.c.
Added SwitchStack.c in Baselib\ Rename Ia32/SwitchStack.c to Ia32/InternalSwitchStack.c Changed _SwitchStack() into InternalSwitchStack() in SwitchStack.asm and SwitchStack.s Fixed one bug in LinkedList.c, that List length couldn't up to PcdMaximumLinkedListLength. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@394 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -34,6 +34,10 @@ IsNodeInList (
|
||||
ASSERT (Node != NULL);
|
||||
|
||||
Count = FixedPcdGet32 (PcdMaximumLinkedListLength);
|
||||
if (Count != 0) {
|
||||
Count++;
|
||||
}
|
||||
|
||||
Ptr = List;
|
||||
do {
|
||||
Ptr = Ptr->ForwardLink;
|
||||
@@ -44,6 +48,7 @@ IsNodeInList (
|
||||
if (FixedPcdGet32 (PcdMaximumLinkedListLength) > 0) {
|
||||
while ((Count > 0) && (Ptr != List)) {
|
||||
Ptr = Ptr->ForwardLink;
|
||||
Count--;
|
||||
}
|
||||
ASSERT (Count > 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user