From 159aa8d3358925703cd3245ba01260509d30773b Mon Sep 17 00:00:00 2001 From: Slice Date: Sat, 24 Feb 2024 13:11:51 +0300 Subject: [PATCH] change wrong statement Signed-off-by: Slice --- rEFIt_UEFI/Platform/Settings.cpp | 1 + rEFIt_UEFI/refit/main.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rEFIt_UEFI/Platform/Settings.cpp b/rEFIt_UEFI/Platform/Settings.cpp index eb9ec9a6d..ffcfb945a 100644 --- a/rEFIt_UEFI/Platform/Settings.cpp +++ b/rEFIt_UEFI/Platform/Settings.cpp @@ -691,6 +691,7 @@ SetDevices (LOADER_ENTRY *Entry) if (gSettings.Graphics.RadeonDeInit) { for (j = 0; j < gConf.GfxPropertiesArrayNonConst.size(); j++) { if (gConf.GfxPropertiesArrayNonConst[j].Handle == PCIdevice.DeviceHandle) { + SetMem((void*)gConf.GfxPropertiesArrayNonConst[j].Mmio, 100, 0); *(UINT32*)(gConf.GfxPropertiesArrayNonConst[j].Mmio + 0x6848) = 0; //EVERGREEN_GRPH_FLIP_CONTROL, 1<<0 SURFACE_UPDATE_H_RETRACE_EN *(UINT32*)(gConf.GfxPropertiesArrayNonConst[j].Mmio + 0x681C) = 0; //EVERGREEN_GRPH_PRIMARY_SURFACE_ADDRESS_HIGH *(UINT32*)(gConf.GfxPropertiesArrayNonConst[j].Mmio + 0x6820) = 0; //EVERGREEN_GRPH_SECONDARY_SURFACE_ADDRESS_HIGH diff --git a/rEFIt_UEFI/refit/main.cpp b/rEFIt_UEFI/refit/main.cpp index b667f9a66..1366cd19f 100644 --- a/rEFIt_UEFI/refit/main.cpp +++ b/rEFIt_UEFI/refit/main.cpp @@ -1446,7 +1446,7 @@ void LOADER_ENTRY::StartLoader() DBG("Error when loading '%ls' : Status %s.\n", OpenRuntimeEfiName.wc_str(), efiStrError(Status)); } }else{ - DBG("No OpenRuntime driver. This is ok, OpenRuntime is not mandatory.\n"); + DBG("No OpenRuntime driver. This is wrong, OpenRuntime is mandatory.\n"); } OcMain(&mOpenCoreStorage, NULL);