1. Added Non-existing.c in BaseLib to assert no invocations of SwitchStack() on IPF.

2. Added SwitchIplStacks() function to DxeIplPeim to encapsulate arch details on stack switching.
3. Added PeiSwitchStacks() function to PeiMain to encapsulate arch details on stack switching.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1328 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
bxing
2006-08-21 02:53:29 +00:00
parent ce3b85747a
commit eeb1cd5af3
11 changed files with 385 additions and 89 deletions

View File

@@ -208,12 +208,13 @@ Returns:
//in order to provide buffer protection against possible illegal stack
//access that might corrupt the stack.
//
SwitchStack (
PeiSwitchStacks (
(SWITCH_STACK_ENTRY_POINT)(UINTN)TempPtr.Raw,
PeiStartupDescriptor,
(VOID*)PrivateDataInMem,
(VOID*)((UINTN)PrivateData->StackBase + (UINTN)PrivateData->StackSize)
);
(VOID*)((UINTN)PrivateData->StackBase + (UINTN)PrivateData->StackSize),
(VOID*)(UINTN)PrivateData->StackBase
);
}
}
}
@@ -345,7 +346,7 @@ Returns:
DebugFoundPeimPoint++;
DebugNotDispatchedBitmap >>= 1;
}
DEBUG_CODE_END ();
return EFI_NOT_FOUND;