hos-sys: remove global target (doesnt compile)
mb
This commit is contained in:
@@ -281,15 +281,13 @@ void ClockManager::Tick()
|
|||||||
for (unsigned int module = 0; module < SysClkModule_EnumMax; module++)
|
for (unsigned int module = 0; module < SysClkModule_EnumMax; module++)
|
||||||
{
|
{
|
||||||
targetHz = this->context->overrideFreqs[module];
|
targetHz = this->context->overrideFreqs[module];
|
||||||
globalTargetHz = this->context->overrideFreqs[module];
|
|
||||||
|
|
||||||
if (!targetHz)
|
if (!targetHz)
|
||||||
{
|
{
|
||||||
targetHz = this->config->GetAutoClockHz(this->context->applicationId, (SysClkModule)module, this->context->profile);
|
targetHz = this->config->GetAutoClockHz(this->context->applicationId, (SysClkModule)module, this->context->profile);
|
||||||
globalTargetHz = this->config->GetAutoClockHz(SYSCLK_GLOBAL_PROFILE_TID, (SysClkModule)module, this->context->profile);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (targetHz || globalTargetHz)
|
if (targetHz)
|
||||||
{
|
{
|
||||||
maxHz = this->GetMaxAllowedHz((SysClkModule)module, this->context->profile);
|
maxHz = this->GetMaxAllowedHz((SysClkModule)module, this->context->profile);
|
||||||
nearestHz = this->GetNearestHz((SysClkModule)module, targetHz, maxHz);
|
nearestHz = this->GetNearestHz((SysClkModule)module, targetHz, maxHz);
|
||||||
|
|||||||
@@ -66,26 +66,26 @@ void EMCpatcher::Run()
|
|||||||
|
|
||||||
void EMCpatcher::ApplyEMCPatch()
|
void EMCpatcher::ApplyEMCPatch()
|
||||||
{
|
{
|
||||||
if(HOSSVC_HAS_MM) { // only for 10.0.0+, older versions need rewrites
|
// if(HOSSVC_HAS_MM) { // only for 10.0.0+, older versions need rewrites
|
||||||
u64 mc_virt_addr = 0;
|
// u64 mc_virt_addr = 0;
|
||||||
u64 mc_out_size = 0;
|
// u64 mc_out_size = 0;
|
||||||
u64 emc_virt_addr = 0;
|
// u64 emc_virt_addr = 0;
|
||||||
u64 emc_out_size = 0;
|
// u64 emc_out_size = 0;
|
||||||
Result rc;
|
// Result rc;
|
||||||
|
|
||||||
// rc = svcQueryMemoryMapping(&mc_virt_addr, &mc_out_size, MC_BASE, MC_EMC_BASE_SIZE); // map mc
|
// // rc = svcQueryMemoryMapping(&mc_virt_addr, &mc_out_size, MC_BASE, MC_EMC_BASE_SIZE); // map mc
|
||||||
// ASSERT_RESULT_OK(rc, "svcQueryMemoryMapping");
|
// // ASSERT_RESULT_OK(rc, "svcQueryMemoryMapping");
|
||||||
|
|
||||||
// rc = svcQueryMemoryMapping(&emc_virt_addr, &emc_out_size, EMC_BASE, MC_EMC_BASE_SIZE); // map emc
|
// // rc = svcQueryMemoryMapping(&emc_virt_addr, &emc_out_size, EMC_BASE, MC_EMC_BASE_SIZE); // map emc
|
||||||
// ASSERT_RESULT_OK(rc, "svcQueryMemoryMapping");
|
// // ASSERT_RESULT_OK(rc, "svcQueryMemoryMapping");
|
||||||
|
|
||||||
write_reg64(EMC_BASE, EMC_RAS_0, 1);
|
// write_reg64(EMC_BASE, EMC_RAS_0, 1);
|
||||||
|
|
||||||
write_reg64(EMC_BASE, EMC_TIMING_CONTROL_0, 0x1); // apply shadow regs
|
// write_reg64(EMC_BASE, EMC_TIMING_CONTROL_0, 0x1); // apply shadow regs
|
||||||
|
|
||||||
|
|
||||||
// svcUnmapMemory((void *)mc_virt_addr, (void *)MC_BASE, MC_EMC_BASE_SIZE); // clean up
|
// // svcUnmapMemory((void *)mc_virt_addr, (void *)MC_BASE, MC_EMC_BASE_SIZE); // clean up
|
||||||
// svcUnmapMemory((void *)emc_virt_addr, (void *)EMC_BASE, MC_EMC_BASE_SIZE);
|
// // svcUnmapMemory((void *)emc_virt_addr, (void *)EMC_BASE, MC_EMC_BASE_SIZE);
|
||||||
|
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user