[BOOT] Execution contexts and more refactoring

This commit is contained in:
2024-10-05 15:44:25 -04:00
parent 7c3dafc051
commit 24a31cab26
13 changed files with 317 additions and 118 deletions

View File

@@ -37,8 +37,9 @@ Arguments:
Return Value:
EFI_SUCCESS if successful.
EFI_INVALID_PARAMETER if EfiInitCreateInputParameters() fails.
Any status code returned by EfiGetEfiStatusCode(BmMain()).
Any other error code if BmMain() fails.
--*/
@@ -54,7 +55,7 @@ Return Value:
}
//
// Transfer control to the firmware-independent boot manager.
// Transfer control to the firmware-independent boot manager code.
//
return EfiGetEfiStatusCode(BmMain(InputParameters));
}

View File

@@ -60,6 +60,16 @@ Return Value:
//
(VOID)BmOpenDataStore(&DataStoreHandle);
//
// Stop here for now.
// Later this will be used to wait for input.
//
while (TRUE) {
#if defined(__x86_64__) || defined(__i386__)
asm volatile("hlt");
#endif
}
Exit:
BlDestroyLibrary();
return Status;