diff --git a/Pixel3XL/SimpleFbDxe/SimpleFbDxe.c b/Pixel3XL/SimpleFbDxe/SimpleFbDxe.c index ed331b6..95ae25d 100644 --- a/Pixel3XL/SimpleFbDxe/SimpleFbDxe.c +++ b/Pixel3XL/SimpleFbDxe/SimpleFbDxe.c @@ -11,6 +11,7 @@ #include #include #include +#include /// Defines /* @@ -189,6 +190,11 @@ DisplayBlt ); gBS->RestoreTPL (Tpl); + // zhuowei: hack: flush the cache manually since my memory maps are still broken + WriteBackInvalidateDataCacheRange((void*)mDisplay.Mode->FrameBufferBase, + mDisplay.Mode->FrameBufferSize); + // zhuowei: end hack + return RETURN_ERROR (Status) ? EFI_INVALID_PARAMETER : EFI_SUCCESS; } diff --git a/Pixel3XL/SimpleFbDxe/SimpleFbDxe.inf b/Pixel3XL/SimpleFbDxe/SimpleFbDxe.inf index 36c64f1..339b837 100644 --- a/Pixel3XL/SimpleFbDxe/SimpleFbDxe.inf +++ b/Pixel3XL/SimpleFbDxe/SimpleFbDxe.inf @@ -28,6 +28,7 @@ DebugLib PcdLib FrameBufferBltLib + CacheMaintenanceLib [Protocols] gEfiGraphicsOutputProtocolGuid ## PRODUCES