Initialize serial port only debugging enabled
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
parent
94e9fa1293
commit
b6b25ed04d
@ -425,11 +425,14 @@ BlStartXtLoader(IN EFI_HANDLE ImageHandle,
|
|||||||
BlEfiPrint(L"XTLDR boot loader v%s\n", XTOS_VERSION);
|
BlEfiPrint(L"XTLDR boot loader v%s\n", XTOS_VERSION);
|
||||||
|
|
||||||
/* Early initialize COM port for debugging */
|
/* Early initialize COM port for debugging */
|
||||||
Status = BlComPortInitialize();
|
if(DEBUG)
|
||||||
if(Status != STATUS_EFI_SUCCESS)
|
|
||||||
{
|
{
|
||||||
/* Initialization failed, try printing error to stdout and serial console */
|
Status = BlComPortInitialize();
|
||||||
BlEfiPrint(L"ERROR: Failed to initialize serial console\n");
|
if(Status != STATUS_EFI_SUCCESS)
|
||||||
|
{
|
||||||
|
/* Initialization failed, try printing error to stdout and serial console */
|
||||||
|
BlEfiPrint(L"ERROR: Failed to initialize serial console\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check SecureBoot status */
|
/* Check SecureBoot status */
|
||||||
|
Loading…
Reference in New Issue
Block a user