[BOOT] Execution contexts and more refactoring
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user