all: fix errors

This commit is contained in:
souldbminersmwc
2026-05-30 17:40:59 -04:00
parent 5540a96af1
commit 8504bd786e
5 changed files with 52 additions and 51 deletions

View File

@@ -175,14 +175,14 @@ namespace ams::ldr::hoc::pcv {
PATCH_OFFSET(&(entry->cvb_pll_param.c0), (C.marikoGpuVoltArray[i] * 1000)); PATCH_OFFSET(&(entry->cvb_pll_param.c0), (C.marikoGpuVoltArray[i] * 1000));
ClearCvbPllEntry(entry); ClearCvbPllEntry(entry);
} else { } else {
PATCH_OFFSET(&(entry->cvb_pll_param.c0), (entry->cvb_pll_param.c0 - C.commonGpuVoltOffset * 1000)); PATCH_OFFSET(&(entry->cvb_pll_param.c0), (u32)((s32)entry->cvb_pll_param.c0 + C.commonGpuVoltOffset * 1000));
} }
} else { } else {
if (C.eristaGpuVoltArray[i] != 0) { if (C.eristaGpuVoltArray[i] != 0) {
PATCH_OFFSET(&(entry->cvb_pll_param.c0), (C.eristaGpuVoltArray[i] * 1000)); PATCH_OFFSET(&(entry->cvb_pll_param.c0), (C.eristaGpuVoltArray[i] * 1000));
ClearCvbPllEntry(entry); ClearCvbPllEntry(entry);
} else { } else {
PATCH_OFFSET(&(entry->cvb_pll_param.c0), (entry->cvb_pll_param.c0 - C.commonGpuVoltOffset * 1000)); PATCH_OFFSET(&(entry->cvb_pll_param.c0), (u32)((s32)entry->cvb_pll_param.c0 + C.commonGpuVoltOffset * 1000));
} }
} }
++entry; ++entry;
@@ -190,7 +190,7 @@ namespace ams::ldr::hoc::pcv {
if (C.commonGpuVoltOffset && !(isMariko ? C.marikoGpuUV : C.eristaGpuUV)) { if (C.commonGpuVoltOffset && !(isMariko ? C.marikoGpuUV : C.eristaGpuUV)) {
cvb_entry_t *entry = static_cast<cvb_entry_t *>(gpu_cvb_table_head); cvb_entry_t *entry = static_cast<cvb_entry_t *>(gpu_cvb_table_head);
for (size_t i = 0; i < customize_entry_count; ++i) { for (size_t i = 0; i < customize_entry_count; ++i) {
PATCH_OFFSET(&(entry->cvb_pll_param.c0), (entry->cvb_pll_param.c0 - C.commonGpuVoltOffset * 1000)); PATCH_OFFSET(&(entry->cvb_pll_param.c0), (u32)((s32)entry->cvb_pll_param.c0 + C.commonGpuVoltOffset * 1000));
++entry; ++entry;
} }
} }

View File

@@ -109,6 +109,7 @@ namespace clockManager {
} }
default: default:
return 460800000; return 460800000;
}
} else if (profile <= HocClkProfile_HandheldChargingUSB) { } else if (profile <= HocClkProfile_HandheldChargingUSB) {
switch (board::GetSocType()) { switch (board::GetSocType()) {
case HocClkSocType_Erista: case HocClkSocType_Erista:

Binary file not shown.

Binary file not shown.