mirror of https://github.com/acidanthera/audk.git
Add more debug print message and fix some issues.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5135 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
2a3ce6dd17
commit
ff514e2962
|
@ -135,7 +135,8 @@ Returns:
|
||||||
VOID *MemoryTopOnDescriptor;
|
VOID *MemoryTopOnDescriptor;
|
||||||
VOID *MemoryDescriptor;
|
VOID *MemoryDescriptor;
|
||||||
VOID *NvStorageBase;
|
VOID *NvStorageBase;
|
||||||
|
|
||||||
|
PrintString("Enter DxeIpl ...\n");
|
||||||
/*
|
/*
|
||||||
ClearScreen();
|
ClearScreen();
|
||||||
PrintString("handoff:\n");
|
PrintString("handoff:\n");
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
|
|
||||||
[BuildOptions.common]
|
[BuildOptions.common]
|
||||||
#MSFT:*_*_IA32_DLINK_FLAGS = /out:"$(BIN_DIR)\SecMain.exe" /base:0x10000000 /pdb:"$(BIN_DIR)\SecMain.pdb" /LIBPATH:"$(VCINSTALLDIR)\Lib" /LIBPATH:"$(VCINSTALLDIR)\PlatformSdk\Lib" /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT:REF /DEBUG /MACHINE:I386 /LTCG Kernel32.lib MSVCRTD.lib Gdi32.lib User32.lib Winmm.lib
|
#MSFT:*_*_IA32_DLINK_FLAGS = /out:"$(BIN_DIR)\SecMain.exe" /base:0x10000000 /pdb:"$(BIN_DIR)\SecMain.pdb" /LIBPATH:"$(VCINSTALLDIR)\Lib" /LIBPATH:"$(VCINSTALLDIR)\PlatformSdk\Lib" /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT:REF /DEBUG /MACHINE:I386 /LTCG Kernel32.lib MSVCRTD.lib Gdi32.lib User32.lib Winmm.lib
|
||||||
MSFT:*_*_IA32_CC_FLAGS = /nologo /W4 /WX /Gy /c /D UNICODE /Od /FI$(DEST_DIR_DEBUG)/AutoGen.h /EHs-c- /GF /Gs8192 /Zi /Gm /D _CRT_SECURE_NO_WARNINGS /D _CRT_SECURE_NO_DEPRECATE
|
MSFT:*_*_IA32_CC_FLAGS = /nologo /W4 /WX /Gy /c /D UNICODE /D EFI32 /Od /FI$(DEST_DIR_DEBUG)/AutoGen.h /EHs-c- /GF /Gs8192 /Zi /Gm /D _CRT_SECURE_NO_WARNINGS /D _CRT_SECURE_NO_DEPRECATE
|
||||||
MSFT:*_*_IA32_PP_FLAGS = /nologo /E /TC /FI$(DEST_DIR_DEBUG)/AutoGen.h
|
MSFT:*_*_IA32_PP_FLAGS = /nologo /E /TC /FI$(DEST_DIR_DEBUG)/AutoGen.h
|
||||||
MSFT:*_*_IA32_ASM_FLAGS = /nologo /W3 /WX /c /coff /Cx /Zd /W0 /Zi
|
MSFT:*_*_IA32_ASM_FLAGS = /nologo /W3 /WX /c /coff /Cx /Zd /W0 /Zi
|
||||||
MSFT:*_*_IA32_ASMLINK_FLAGS = /link /nologo /tiny
|
MSFT:*_*_IA32_ASMLINK_FLAGS = /link /nologo /tiny
|
||||||
|
|
|
@ -148,6 +148,7 @@ EfiLoader (
|
||||||
AsciiSPrint (PrintBuffer, 256, "Decompress DxeIpl image, Image Address=0x%x! Offset=0x%x\n",
|
AsciiSPrint (PrintBuffer, 256, "Decompress DxeIpl image, Image Address=0x%x! Offset=0x%x\n",
|
||||||
(UINTN)(EFILDR_HEADER_ADDRESS + EFILDRImage->Offset),
|
(UINTN)(EFILDR_HEADER_ADDRESS + EFILDRImage->Offset),
|
||||||
EFILDRImage->Offset);
|
EFILDRImage->Offset);
|
||||||
|
PrintString (PrintBuffer);
|
||||||
|
|
||||||
Status = TianoGetInfo (
|
Status = TianoGetInfo (
|
||||||
(VOID *)(UINTN)(EFILDR_HEADER_ADDRESS + EFILDRImage->Offset),
|
(VOID *)(UINTN)(EFILDR_HEADER_ADDRESS + EFILDRImage->Offset),
|
||||||
|
@ -192,6 +193,9 @@ EfiLoader (
|
||||||
PrintString (PrintBuffer);
|
PrintString (PrintBuffer);
|
||||||
SystemHang();
|
SystemHang();
|
||||||
}
|
}
|
||||||
|
AsciiSPrint (PrintBuffer, 256, "DxeIpl PE image is successed loaded at 0x%x, entry=0x%x\n",
|
||||||
|
(UINTN)DxeIplImage.ImageBasePage, (UINTN)DxeIplImage.EntryPoint);
|
||||||
|
PrintString (PrintBuffer);
|
||||||
|
|
||||||
// PrintString("Image.NoPages = ");
|
// PrintString("Image.NoPages = ");
|
||||||
// PrintValue(Image.NoPages);
|
// PrintValue(Image.NoPages);
|
||||||
|
@ -208,6 +212,10 @@ PrintHeader ('C');
|
||||||
//
|
//
|
||||||
// Decompress the image
|
// Decompress the image
|
||||||
//
|
//
|
||||||
|
AsciiSPrint (PrintBuffer, 256, "Decompress DXEMain FV image, Image Address=0x%x! Offset=0x%x\n",
|
||||||
|
(UINTN)(EFILDR_HEADER_ADDRESS + EFILDRImage->Offset),
|
||||||
|
EFILDRImage->Offset);
|
||||||
|
PrintString (PrintBuffer);
|
||||||
|
|
||||||
Status = TianoGetInfo (
|
Status = TianoGetInfo (
|
||||||
(VOID *)(UINTN)(EFILDR_HEADER_ADDRESS + EFILDRImage->Offset),
|
(VOID *)(UINTN)(EFILDR_HEADER_ADDRESS + EFILDRImage->Offset),
|
||||||
|
@ -216,6 +224,8 @@ PrintHeader ('C');
|
||||||
&ScratchSize
|
&ScratchSize
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
AsciiSPrint (PrintBuffer, 256, "Fail to get decompress information for DXEMain FV image!\n");
|
||||||
|
PrintString (PrintBuffer);
|
||||||
SystemHang();
|
SystemHang();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -243,6 +253,9 @@ PrintHeader ('C');
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
SystemHang();
|
SystemHang();
|
||||||
}
|
}
|
||||||
|
AsciiSPrint (PrintBuffer, 256, "DxeCore PE image is successed loaded at 0x%x, entry=0x%x\n",
|
||||||
|
(UINTN)DxeCoreImage.ImageBasePage, (UINTN)DxeCoreImage.EntryPoint);
|
||||||
|
PrintString (PrintBuffer);
|
||||||
|
|
||||||
PrintHeader ('E');
|
PrintHeader ('E');
|
||||||
|
|
||||||
|
@ -282,6 +295,9 @@ PrintHeader ('E');
|
||||||
Handoff.DxeCoreImageSize = DxeCoreImage.NoPages * EFI_PAGE_SIZE;
|
Handoff.DxeCoreImageSize = DxeCoreImage.NoPages * EFI_PAGE_SIZE;
|
||||||
Handoff.DxeCoreEntryPoint = (VOID *)(UINTN)DxeCoreImage.EntryPoint;
|
Handoff.DxeCoreEntryPoint = (VOID *)(UINTN)DxeCoreImage.EntryPoint;
|
||||||
|
|
||||||
|
AsciiSPrint (PrintBuffer, 256, "Transfer to DxeIpl ...Address=0x%x\n", (UINTN)DxeIplImage.EntryPoint);
|
||||||
|
PrintString (PrintBuffer);
|
||||||
|
|
||||||
EfiMainEntrypoint = (EFI_MAIN_ENTRYPOINT)(UINTN)DxeIplImage.EntryPoint;
|
EfiMainEntrypoint = (EFI_MAIN_ENTRYPOINT)(UINTN)DxeIplImage.EntryPoint;
|
||||||
EfiMainEntrypoint (&Handoff);
|
EfiMainEntrypoint (&Handoff);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1080,7 +1080,12 @@ Returns:
|
||||||
// from the graphic lib
|
// from the graphic lib
|
||||||
//
|
//
|
||||||
if (QuietBoot) {
|
if (QuietBoot) {
|
||||||
EnableQuietBootEx (&gEfiDefaultBmpLogoGuid, mBdsImageHandle);
|
Status = EnableQuietBootEx (&gEfiDefaultBmpLogoGuid, mBdsImageHandle);
|
||||||
|
if (EFI_ERROR (Status)) {
|
||||||
|
DisableQuietBoot ();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Perform system diagnostic
|
// Perform system diagnostic
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue