Implement BlEfiGetSecureBootStatus() to get SecureBoot status

这个提交包含在:
2022-10-12 15:47:41 +02:00
父节点 da37ceaa0f
当前提交 09e58d0b67
共有 3 个文件被更改,包括 42 次插入0 次删除

查看文件

@@ -308,6 +308,10 @@ BlStartXtLoader(IN EFI_HANDLE ImageHandle,
BlDbgPrint(L"WARNING: Failed to disable watchdog timer\n");
}
/* Check SecureBoot status */
EfiSecureBoot = BlEfiGetSecureBootStatus();
BlDbgPrint(L"SecureBoot status: %S\n", EfiSecureBoot == 0 ? L"DISABLED" : EfiSecureBoot > 0 ? L"ENABLED" : L"SETUP");
/* Register loader protocol */
Status = BlRegisterXtLoaderProtocol();
if(Status != STATUS_EFI_SUCCESS)