未验证 提交 737dd930 编写于 作者: M Mike Beaton 提交者: GitHub

CrScreenshotDxe: Work around TPL-related ASSERT within firmware compiled to assert (#539)

(such as recently updated DEBUG version of OpenDuet)
上级 ac0110a1
......@@ -166,6 +166,16 @@ TakeScreenshot (
UINTN Index;
UINT8 Temp;
//
// This is required to avoid assert (only noticeable on firmware compiled to
// assert) from gBS->RaiseTPL(TPL_CALLBACK) within the file system accesses
// below. Makes explicit what was happening anyway, which is that we're
// effectively lowering the TPL for a long running task, during a keyboard
// interrupt.
// REF: https://github.com/acidanthera/audk/blob/bcdcc4160d7460c46c08c9395aae81be44ef23a9/FatPkg/EnhancedFatDxe/Misc.c#L399
//
gBS->RestoreTPL (TPL_CALLBACK);
Status = OcFindWritableOcFileSystem (&Fs);
if (EFI_ERROR (Status)) {
DEBUG ((DEBUG_INFO, "OCSCR: Can't find writable FS - %r\n", Status));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册