summaryrefslogtreecommitdiff
path: root/DuetPkg/DxeIpl
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2008-04-29 07:50:58 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2008-04-29 07:50:58 +0000
commiteb16e24041d74b607d848adba78ea4f417edff44 (patch)
treec5199c81c00a581e5e50ce1234cae7577f8f35ed /DuetPkg/DxeIpl
parent46b5ebc877ae80e2fea6709552cbff46965f3abe (diff)
downloadedk2-eb16e24041d74b607d848adba78ea4f417edff44.zip
edk2-eb16e24041d74b607d848adba78ea4f417edff44.tar.gz
edk2-eb16e24041d74b607d848adba78ea4f417edff44.tar.bz2
Add 8254 module and fix the hob operation for R9 library.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5150 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg/DxeIpl')
-rw-r--r--DuetPkg/DxeIpl/DxeInit.c26
1 files changed, 24 insertions, 2 deletions
diff --git a/DuetPkg/DxeIpl/DxeInit.c b/DuetPkg/DxeIpl/DxeInit.c
index 9cce964..e42cd4c 100644
--- a/DuetPkg/DxeIpl/DxeInit.c
+++ b/DuetPkg/DxeIpl/DxeInit.c
@@ -135,7 +135,8 @@ Returns:
VOID *MemoryTopOnDescriptor;
VOID *MemoryDescriptor;
VOID *NvStorageBase;
-
+ CHAR8 PrintBuffer[256];
+
PrintString("Enter DxeIpl ...\n");
/*
ClearScreen();
@@ -182,9 +183,15 @@ Returns:
// 3.1 NV data
NvStorageBase = PrepareHobNvStorage (MemoryTopOnDescriptor);
+ AsciiSPrint (PrintBuffer, 256, "NV Storage Base=0x%x\n", (UINTN)NvStorageBase);
+ PrintString (PrintBuffer);
+
// 3.2 Stack
StackTop = NvStorageBase;
StackBottom = PrepareHobStack (StackTop);
+ AsciiSPrint (PrintBuffer, 256, "Stack Top=0x%x, Stack Bottom=0x%x\n",
+ (UINTN)StackTop, (UINTN)StackBottom);
+ PrintString (PrintBuffer);
// 3.3 Page Table
PageTableBase = PreparePageTable (StackBottom, gHob->Cpu.SizeOfMemorySpace);
// 3.4 MemDesc (will be used in PlatformBds)
@@ -206,6 +213,21 @@ Returns:
CompleteHobGeneration ();
+ AsciiSPrint (PrintBuffer, 256, "HobStart=0x%x\n", (UINTN)gHob);
+ PrintString (PrintBuffer);
+
+ AsciiSPrint (PrintBuffer, 256, "Memory Top=0x%x, Bottom=0x%x\n",
+ (UINTN)gHob->Phit.EfiMemoryTop, (UINTN)gHob->Phit.EfiMemoryBottom);
+ PrintString (PrintBuffer);
+
+ AsciiSPrint (PrintBuffer, 256, "Free Memory Top=0x%x, Bottom=0x%x\n",
+ (UINTN)gHob->Phit.EfiFreeMemoryTop, (UINTN)gHob->Phit.EfiFreeMemoryBottom);
+ PrintString (PrintBuffer);
+
+ AsciiSPrint (PrintBuffer, 256, "Nv Base=0x%x, Length=0x%x\n",
+ (UINTN)gHob->NvStorageFvb.FvbInfo.Entries[0].Base,
+ (UINTN)gHob->NvFtwFvb.FvbInfo.Entries[0].Length);
+ PrintString (PrintBuffer);
/*
//
// Print Hob Info
@@ -269,11 +291,11 @@ Returns:
PrintString("\n");
EFI_DEADLOOP();
*/
-
ClearScreen();
PrintString("\n\n\n\n\n\n\n\n\n\n");
PrintString(" WELCOME TO EFI WORLD!\n");
+
EnterDxeMain (StackTop, Handoff->DxeCoreEntryPoint, gHob, PageTableBase);
//