From 4518138bf90a2846484c8fe71ab1d7ce2773179d Mon Sep 17 00:00:00 2001 From: hanabbi Date: Thu, 6 Jul 2023 06:12:23 +0900 Subject: [PATCH] loader: fix cvb patch for erista --- Source/Atmosphere/stratosphere/loader/source/oc/pcv/pcv.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/Atmosphere/stratosphere/loader/source/oc/pcv/pcv.hpp b/Source/Atmosphere/stratosphere/loader/source/oc/pcv/pcv.hpp index eccc00e2..574fbacc 100644 --- a/Source/Atmosphere/stratosphere/loader/source/oc/pcv/pcv.hpp +++ b/Source/Atmosphere/stratosphere/loader/source/oc/pcv/pcv.hpp @@ -203,7 +203,11 @@ Result CpuFreqCvbTable(u32* ptr) { cvb_entry_t* entry = static_cast(cpu_cvb_table_head); for (size_t i = 0; i < customize_entry_count; i++) { if (entry->freq >= cpu_freq_threshold) { - PATCH_OFFSET(&(entry->cvb_pll_param.c0), cpu_max_volt * 1000); + if (isMariko) { + PATCH_OFFSET(&(entry->cvb_pll_param.c0), cpu_max_volt * 1000); + } else { + PATCH_OFFSET(&(entry->cvb_dfll_param.c0), cpu_max_volt * 1000); + } } entry++; }