MdeModulePkg PeiCore: The DEBUG message (for HeapOffset and StackOffset) should be...
authorStar Zeng <star.zeng@intel.com>
Tue, 12 Aug 2014 01:41:25 +0000 (01:41 +0000)
committerlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 12 Aug 2014 01:41:25 +0000 (01:41 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15787 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c

index 3c867bf..ea80392 100644 (file)
@@ -927,8 +927,6 @@ PeiDispatcher (
               Private->StackOffsetPositive = StackOffsetPositive;\r
               Private->StackOffset = StackOffset;\r
 \r
-              DEBUG ((EFI_D_INFO, "Heap Offset = 0x%lX Stack Offset = 0x%lX\n", (UINT64)Private->HeapOffset, (UINT64)(StackOffset)));\r
-\r
               //\r
               // Build Stack HOB that describes the permanent memory stack\r
               //\r
@@ -966,7 +964,9 @@ PeiDispatcher (
                   Private->HeapOffsetPositive = FALSE;\r
                   Private->HeapOffset = (UINTN)((UINTN)SecCoreData->PeiTemporaryRamBase - BaseOfNewHeap);\r
                 }\r
-                \r
+\r
+                DEBUG ((EFI_D_INFO, "Heap Offset = 0x%lX Stack Offset = 0x%lX\n", (UINT64) Private->HeapOffset, (UINT64) Private->StackOffset));\r
+\r
                 //\r
                 // Caculate new HandOffTable and PrivateData address in permanent memory's stack\r
                 //\r
@@ -1021,6 +1021,8 @@ PeiDispatcher (
                   Private->HeapOffset = (UINTN)((UINTN)SecCoreData->PeiTemporaryRamBase - BaseOfNewHeap);\r
                 }\r
 \r
+                DEBUG ((EFI_D_INFO, "Heap Offset = 0x%lX Stack Offset = 0x%lX\n", (UINT64) Private->HeapOffset, (UINT64) Private->StackOffset));\r
+\r
                 //\r
                 // Migrate Heap\r
                 //\r