fix boot crash

This commit is contained in:
souldbminersmwc
2026-07-28 14:53:32 -04:00
parent af8912321c
commit da7f922782
2 changed files with 8 additions and 5 deletions

View File

@@ -552,11 +552,11 @@ namespace ams::ldr::hoc::pcv::mariko {
{ "MEM Vddq", &EmcVddqVolt, 2, nullptr, EmcVddqDefault },
{ "MEM Vdd2", &MemVoltHandler, 2, nullptr, MemVdd2Default },
{ "MEM Table Asm", &MemMtcTableAsm, 1, &MemMtcGetGetTablePatternFn },
// { "EMC DVFS Count", &EmcDvfsCountLimit, 1, &EmcDvfsCountPatternFn },
//{ "EMC SoC LUT", &EmcSocLutReloc, 1, &EmcSocLutPatternFn },
// { "EMC Rate List", &EmcRateListLimit, 0, &EmcRateListPatternFn },
// { "EMC Rate Sess", &EmcRateSessLimit, 1, &EmcRateSessPatternFn },
// { "Bus Freq Reloc", &BusFreqReloc, 1, &BusFreqRelocPatternFn },
{ "EMC DVFS Count", &EmcDvfsCountLimit, 1, &EmcDvfsCountPatternFn },
{ "EMC SoC LUT", &EmcSocLutReloc, 1, &EmcSocLutPatternFn },
{ "EMC Rate List", &EmcRateListLimit, 0, &EmcRateListPatternFn },
{ "EMC Rate Sess", &EmcRateSessLimit, 1, &EmcRateSessPatternFn },
{ "Bus Freq Reloc", &BusFreqReloc, 1, &BusFreqRelocPatternFn },
{ "SOC Volt Asm", &SocVoltAsm, 1, &SocVoltPatternFn },
{ "SOC Volt Limit", &SocVoltLimit, 1, nullptr, SocVoltLimitOfficial },
/* Debugging patches */

View File

@@ -182,6 +182,9 @@ namespace ams::ldr::hoc::pcv {
Hooks().Initialize(mapped_nso, nso_address, cave, cave_size, data_arena);
g_pcv_cave = cave;
g_pcv_cave_size = cave_size;
bool isMariko = (spl::GetSocType() == spl::SocType_Mariko);
if (isMariko) {
mariko::Patch(mapped_nso, nso_size);