summaryrefslogtreecommitdiff
path: root/Nt32Pkg/Sec
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2008-03-06 08:37:29 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2008-03-06 08:37:29 +0000
commitff33b87dd84157e943d74e9e1ec7ce70a8dfd6c1 (patch)
treee83d2558b20c6636a101ea9fc870f323bc395718 /Nt32Pkg/Sec
parent1b5538a375583addee95dcde5675c18ef0c6878f (diff)
downloadedk2-platforms-ff33b87dd84157e943d74e9e1ec7ce70a8dfd6c1.tar.xz
Correct the value of StackBase, the stack base address is not stack's top address.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4794 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Nt32Pkg/Sec')
-rw-r--r--Nt32Pkg/Sec/SecMain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Nt32Pkg/Sec/SecMain.c b/Nt32Pkg/Sec/SecMain.c
index ccfc6bb3f8..f45c5daaea 100644
--- a/Nt32Pkg/Sec/SecMain.c
+++ b/Nt32Pkg/Sec/SecMain.c
@@ -617,9 +617,9 @@ Returns:
SecCoreData->BootFirmwareVolumeSize = FixedPcdGet32(PcdWinNtFirmwareFdSize);
SecCoreData->TemporaryRamBase = (VOID*)(UINTN)LargestRegion;
SecCoreData->TemporaryRamSize = STACK_SIZE;
- SecCoreData->StackBase = (VOID*) ((UINTN) SecCoreData->TemporaryRamBase + PeiStackSize);
+ SecCoreData->StackBase = SecCoreData->TemporaryRamBase;
SecCoreData->StackSize = PeiStackSize;
- SecCoreData->PeiTemporaryRamBase = SecCoreData->StackBase;
+ SecCoreData->PeiTemporaryRamBase = (VOID*) ((UINTN) SecCoreData->TemporaryRamBase + PeiStackSize);
SecCoreData->PeiTemporaryRamSize = STACK_SIZE - PeiStackSize;
//