SimpleFbDxe: also flush cache after initial clear

This commit is contained in:
Zhuowei Zhang 2019-02-23 18:17:33 -08:00
parent 98d6c66bbd
commit 021fa1e4d7

View File

@ -172,6 +172,7 @@ DisplayBlt
IN UINTN Delta OPTIONAL
)
{
RETURN_STATUS Status;
EFI_TPL Tpl;
//
@ -296,6 +297,8 @@ SimpleFbDxeInitialize
// zhuowei: clear the screen to black
// UEFI standard requires this, since text is white - see OvmfPkg/QemuVideoDxe/Gop.c
ZeroMem((void*)FrameBufferAddress, FrameBufferSize);
// hack: clear cache
WriteBackInvalidateDataCacheRange((void*)FrameBufferAddress, FrameBufferSize);
// zhuowei: end
/* Register handle */