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:
vanjeff
2006-06-02 07:58:31 +00:00
parent 6fc80a45b5
commit 7d7c2b4640
8 changed files with 130 additions and 11 deletions

View File

@@ -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);
}