change wrong statement

Signed-off-by: Slice <sergey.slice@gmail.com>
This commit is contained in:
Slice 2024-02-24 13:11:51 +03:00
parent 841ff01f27
commit 159aa8d335
2 changed files with 2 additions and 1 deletions

View File

@ -691,6 +691,7 @@ SetDevices (LOADER_ENTRY *Entry)
if (gSettings.Graphics.RadeonDeInit) { if (gSettings.Graphics.RadeonDeInit) {
for (j = 0; j < gConf.GfxPropertiesArrayNonConst.size(); j++) { for (j = 0; j < gConf.GfxPropertiesArrayNonConst.size(); j++) {
if (gConf.GfxPropertiesArrayNonConst[j].Handle == PCIdevice.DeviceHandle) { 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 + 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 + 0x681C) = 0; //EVERGREEN_GRPH_PRIMARY_SURFACE_ADDRESS_HIGH
*(UINT32*)(gConf.GfxPropertiesArrayNonConst[j].Mmio + 0x6820) = 0; //EVERGREEN_GRPH_SECONDARY_SURFACE_ADDRESS_HIGH *(UINT32*)(gConf.GfxPropertiesArrayNonConst[j].Mmio + 0x6820) = 0; //EVERGREEN_GRPH_SECONDARY_SURFACE_ADDRESS_HIGH

View File

@ -1446,7 +1446,7 @@ void LOADER_ENTRY::StartLoader()
DBG("Error when loading '%ls' : Status %s.\n", OpenRuntimeEfiName.wc_str(), efiStrError(Status)); DBG("Error when loading '%ls' : Status %s.\n", OpenRuntimeEfiName.wc_str(), efiStrError(Status));
} }
}else{ }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); OcMain(&mOpenCoreStorage, NULL);