Finished Aurix Protocol, AxBoot logs to file now
This commit is contained in:
parent
b1d59e02eb
commit
d1a5d7d43d
37 changed files with 744 additions and 221 deletions
|
@ -35,11 +35,11 @@ bool platform_is_reboot_to_fw_possible()
|
|||
Status = gSystemTable->RuntimeServices->GetVariable(L"OsIndicationsSupported", &GlobalVarGuid, NULL, &OsIndicationsSize, &OsIndications);
|
||||
if (!EFI_ERROR(Status)) {
|
||||
if (OsIndications & EFI_OS_INDICATIONS_BOOT_TO_FW_UI) {
|
||||
debug("platform_is_reboot_to_fw_possible(): Boot to firmware UI is possible!\n");
|
||||
log("platform_is_reboot_to_fw_possible(): Boot to firmware UI is possible!\n");
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
debug("platform_is_reboot_to_fw_possible(): Failed to get OsIndications variable: 0x%llx (%s) \n", Status, efi_status_to_str(Status));
|
||||
log("platform_is_reboot_to_fw_possible(): Failed to get OsIndications variable: 0x%llx (%s) \n", Status, efi_status_to_str(Status));
|
||||
}
|
||||
|
||||
return false;
|
||||
|
@ -58,7 +58,7 @@ void platform_reboot_to_fw()
|
|||
|
||||
Status = gSystemTable->RuntimeServices->SetVariable(L"OsIndications", &GlobalVarGuid, EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS, OsIndicationsSize, &OsIndications);
|
||||
if (EFI_ERROR(Status)) {
|
||||
debug("platform_reboot_to_fw(): Failed to set OsIndications variable: 0x%llx (%s) \n", Status, efi_status_to_str(Status));
|
||||
log("platform_reboot_to_fw(): Failed to set OsIndications variable: 0x%llx (%s) \n", Status, efi_status_to_str(Status));
|
||||
}
|
||||
|
||||
gSystemTable->RuntimeServices->ResetSystem(EfiResetCold, EFI_SUCCESS, 0, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue