Refactor part 5; Implement debugging ports
This commit is contained in:
@@ -34,9 +34,24 @@ BlStartXtLoader(IN EFI_HANDLE ImageHandle,
|
||||
EfiSystemTable = SystemTable;
|
||||
|
||||
/* Initialize UEFI console and early print XTLDR version */
|
||||
BlConsoleInitialize();
|
||||
BlpConsoleInitialize();
|
||||
BlConsolePrint(L"XTLDR boot loader v%s\n", XTOS_VERSION);
|
||||
|
||||
/* Parse configuration options passed from UEFI shell */
|
||||
BlpConfigParseCommandLine();
|
||||
|
||||
/* Attempt to early initialize debug console */
|
||||
if(DEBUG)
|
||||
{
|
||||
Status = BlpDebugInitializeConsole();
|
||||
if(Status != STATUS_EFI_SUCCESS)
|
||||
{
|
||||
/* Initialization failed, notify user on stdout */
|
||||
BlConsolePrint(L"ERROR: Failed to initialize debug console\n");
|
||||
BlSleepExecution(3000);
|
||||
}
|
||||
}
|
||||
|
||||
/* Temporary infinite loop */
|
||||
for(;;);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user