From 61f21f400d4664ff5e8008a06447227fb738cc04 Mon Sep 17 00:00:00 2001 From: klu2 Date: Thu, 1 Nov 2007 06:19:38 +0000 Subject: [PATCH] Should use MaxCarTop but *not* CarTop to computer the usage of stack git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4259 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Core/Pei/PeiMain/PeiMain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Core/Pei/PeiMain/PeiMain.c b/MdeModulePkg/Core/Pei/PeiMain/PeiMain.c index 96cc22b915..5c6efb95c0 100644 --- a/MdeModulePkg/Core/Pei/PeiMain/PeiMain.c +++ b/MdeModulePkg/Core/Pei/PeiMain/PeiMain.c @@ -199,7 +199,7 @@ Returns: DEBUG ((EFI_D_INFO, "Total Cache as RAM: %d bytes.\n", OldCoreData->SizeOfCacheAsRam)); DEBUG ((EFI_D_INFO, " CAR stack ever used: %d bytes.\n", - ((UINTN) OldCoreData->TopOfCarHeap - (UINTN) StackPointer) + ((UINTN) OldCoreData->MaxTopOfCarHeap - (UINTN) StackPointer) )); DEBUG ((EFI_D_INFO, " CAR heap used: %d bytes.\n", ((UINTN) OldCoreData->HobList.HandoffInformationTable->EfiFreeMemoryBottom -