Use CPU_STACK_ALIGNMENT to align stack allocated for used in the DXE Phase.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1925 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
mdkinney 2006-11-09 22:05:07 +00:00
parent 395859376e
commit 5a0c25f817
1 changed files with 2 additions and 1 deletions

View File

@ -262,7 +262,8 @@ Returns:
// Compute the top of the stack we were allocated. Pre-allocate a 32 bytes // Compute the top of the stack we were allocated. Pre-allocate a 32 bytes
// for safety (PpisNeededByDxe and DxeCore). // for safety (PpisNeededByDxe and DxeCore).
// //
TopOfStack = BaseOfStack + EFI_SIZE_TO_PAGES (STACK_SIZE) * EFI_PAGE_SIZE - 32; TopOfStack = BaseOfStack + EFI_SIZE_TO_PAGES (STACK_SIZE) * EFI_PAGE_SIZE - CPU_STACK_ALIGNMENT;
TopOfStack = ALIGN_POINTER (TopOfStack, CPU_STACK_ALIGNMENT);
// //
// Add architecture-specifc HOBs (including the BspStore HOB) // Add architecture-specifc HOBs (including the BspStore HOB)