fix boot crash
This commit is contained in:
@@ -552,11 +552,11 @@ namespace ams::ldr::hoc::pcv::mariko {
|
|||||||
{ "MEM Vddq", &EmcVddqVolt, 2, nullptr, EmcVddqDefault },
|
{ "MEM Vddq", &EmcVddqVolt, 2, nullptr, EmcVddqDefault },
|
||||||
{ "MEM Vdd2", &MemVoltHandler, 2, nullptr, MemVdd2Default },
|
{ "MEM Vdd2", &MemVoltHandler, 2, nullptr, MemVdd2Default },
|
||||||
{ "MEM Table Asm", &MemMtcTableAsm, 1, &MemMtcGetGetTablePatternFn },
|
{ "MEM Table Asm", &MemMtcTableAsm, 1, &MemMtcGetGetTablePatternFn },
|
||||||
// { "EMC DVFS Count", &EmcDvfsCountLimit, 1, &EmcDvfsCountPatternFn },
|
{ "EMC DVFS Count", &EmcDvfsCountLimit, 1, &EmcDvfsCountPatternFn },
|
||||||
//{ "EMC SoC LUT", &EmcSocLutReloc, 1, &EmcSocLutPatternFn },
|
{ "EMC SoC LUT", &EmcSocLutReloc, 1, &EmcSocLutPatternFn },
|
||||||
// { "EMC Rate List", &EmcRateListLimit, 0, &EmcRateListPatternFn },
|
{ "EMC Rate List", &EmcRateListLimit, 0, &EmcRateListPatternFn },
|
||||||
// { "EMC Rate Sess", &EmcRateSessLimit, 1, &EmcRateSessPatternFn },
|
{ "EMC Rate Sess", &EmcRateSessLimit, 1, &EmcRateSessPatternFn },
|
||||||
// { "Bus Freq Reloc", &BusFreqReloc, 1, &BusFreqRelocPatternFn },
|
{ "Bus Freq Reloc", &BusFreqReloc, 1, &BusFreqRelocPatternFn },
|
||||||
{ "SOC Volt Asm", &SocVoltAsm, 1, &SocVoltPatternFn },
|
{ "SOC Volt Asm", &SocVoltAsm, 1, &SocVoltPatternFn },
|
||||||
{ "SOC Volt Limit", &SocVoltLimit, 1, nullptr, SocVoltLimitOfficial },
|
{ "SOC Volt Limit", &SocVoltLimit, 1, nullptr, SocVoltLimitOfficial },
|
||||||
/* Debugging patches */
|
/* Debugging patches */
|
||||||
|
|||||||
@@ -182,6 +182,9 @@ namespace ams::ldr::hoc::pcv {
|
|||||||
|
|
||||||
Hooks().Initialize(mapped_nso, nso_address, cave, cave_size, data_arena);
|
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);
|
bool isMariko = (spl::GetSocType() == spl::SocType_Mariko);
|
||||||
if (isMariko) {
|
if (isMariko) {
|
||||||
mariko::Patch(mapped_nso, nso_size);
|
mariko::Patch(mapped_nso, nso_size);
|
||||||
|
|||||||
Reference in New Issue
Block a user