Initialize XTLDR configuration list and check if EFI LoadedImage protocol opened successfully
This commit is contained in:
parent
16a2565ad9
commit
32042ef643
@ -564,7 +564,7 @@ BlpUpdateConfiguration(IN PLIST_ENTRY NewConfig)
|
|||||||
/* Make sure config entry does not exist yet */
|
/* Make sure config entry does not exist yet */
|
||||||
if(BlGetConfigValue(ConfigEntry->Name) == NULL)
|
if(BlGetConfigValue(ConfigEntry->Name) == NULL)
|
||||||
{
|
{
|
||||||
/* Remove new config entry from input list and put it into global config list */
|
/* Put new config entry into global config list */
|
||||||
RtlInsertTailList(BlpConfig, &ConfigEntry->Flink);
|
RtlInsertTailList(BlpConfig, &ConfigEntry->Flink);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -143,12 +143,17 @@ BlpInitializeEfiBootLoader()
|
|||||||
/* Print XTLDR version */
|
/* Print XTLDR version */
|
||||||
BlConsolePrint(L"XTLDR boot loader v%s\n", XTOS_VERSION);
|
BlConsolePrint(L"XTLDR boot loader v%s\n", XTOS_VERSION);
|
||||||
|
|
||||||
|
/* Initialize XTLDR configuration list */
|
||||||
|
RtlInitializeListHead(BlpConfig);
|
||||||
|
|
||||||
/* Check if debug is enabled */
|
/* Check if debug is enabled */
|
||||||
if(DEBUG)
|
if(DEBUG)
|
||||||
{
|
{
|
||||||
|
/* Attempt to open EFI LoadedImage protocol */
|
||||||
Status = BlOpenXtProtocol((PVOID *)&LoadedImage, &LipGuid);
|
Status = BlOpenXtProtocol((PVOID *)&LoadedImage, &LipGuid);
|
||||||
|
if(Status == STATUS_EFI_SUCCESS)
|
||||||
/* Print useful debug information */
|
{
|
||||||
|
/* Protocol opened successfully, print useful debug information */
|
||||||
BlConsolePrint(L"\n---------- BOOTLOADER DEBUG ----------\n"
|
BlConsolePrint(L"\n---------- BOOTLOADER DEBUG ----------\n"
|
||||||
L"Pointer Size : %d\n"
|
L"Pointer Size : %d\n"
|
||||||
L"Image Base Address: 0x%lx\n"
|
L"Image Base Address: 0x%lx\n"
|
||||||
@ -159,6 +164,7 @@ BlpInitializeEfiBootLoader()
|
|||||||
LoadedImage->ImageBase,
|
LoadedImage->ImageBase,
|
||||||
LoadedImage->ImageSize,
|
LoadedImage->ImageSize,
|
||||||
LoadedImage->Revision);
|
LoadedImage->Revision);
|
||||||
BlSleepExecution(5000);
|
BlSleepExecution(3000);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/* XT Boot Loader configuration list */
|
/* XT Boot Loader configuration list */
|
||||||
PLIST_ENTRY BlpConfig = NULL;
|
PLIST_ENTRY BlpConfig;
|
||||||
|
|
||||||
/* XT Boot Loader loaded configuration */
|
/* XT Boot Loader loaded configuration */
|
||||||
LIST_ENTRY BlpConfigSections;
|
LIST_ENTRY BlpConfigSections;
|
||||||
|
Loading…
Reference in New Issue
Block a user