mirror of https://github.com/acidanthera/audk.git
Fix the issue that CAR size is shown as negative number.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4249 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
402bbc765b
commit
6797657e9a
|
@ -190,13 +190,13 @@ Returns:
|
||||||
UINTN StackValue;
|
UINTN StackValue;
|
||||||
|
|
||||||
StackValue = INIT_CAR_VALUE;
|
StackValue = INIT_CAR_VALUE;
|
||||||
for (StackPointer = (UINTN *) OldCoreData->MaxTopOfCarHeap;
|
for (StackPointer = (UINTN *) OldCoreData->TopOfCarHeap;
|
||||||
((UINTN) StackPointer < ((UINTN) OldCoreData->BottomOfCarHeap + OldCoreData->SizeOfCacheAsRam))
|
((UINTN) StackPointer < ((UINTN) OldCoreData->MaxTopOfCarHeap))
|
||||||
&& StackValue == INIT_CAR_VALUE;
|
&& StackValue == INIT_CAR_VALUE;
|
||||||
StackPointer++) {
|
StackPointer++) {
|
||||||
StackValue = *StackPointer;
|
StackValue = *StackPointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG ((EFI_D_INFO, "Total Cache as RAM: %d bytes.\n", OldCoreData->SizeOfCacheAsRam));
|
DEBUG ((EFI_D_INFO, "Total Cache as RAM: %d bytes.\n", OldCoreData->SizeOfCacheAsRam));
|
||||||
DEBUG ((EFI_D_INFO, " CAR stack ever used: %d bytes.\n",
|
DEBUG ((EFI_D_INFO, " CAR stack ever used: %d bytes.\n",
|
||||||
((UINTN) OldCoreData->TopOfCarHeap - (UINTN) StackPointer)
|
((UINTN) OldCoreData->TopOfCarHeap - (UINTN) StackPointer)
|
||||||
|
|
Loading…
Reference in New Issue