From 7e4239489497016f468c5eef2f08528c988bdcfb Mon Sep 17 00:00:00 2001 From: Lightos1 <124387232+Lightos1@users.noreply.github.com> Date: Wed, 8 Apr 2026 22:17:28 +0200 Subject: [PATCH] fix GpuClkOsLimit name --- .../Atmosphere/stratosphere/loader/source/oc/pcv/pcv_common.hpp | 2 +- .../Atmosphere/stratosphere/loader/source/oc/pcv/pcv_mariko.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Atmosphere/stratosphere/loader/source/oc/pcv/pcv_common.hpp b/Source/Atmosphere/stratosphere/loader/source/oc/pcv/pcv_common.hpp index a90e2eb1..2d75687a 100644 --- a/Source/Atmosphere/stratosphere/loader/source/oc/pcv/pcv_common.hpp +++ b/Source/Atmosphere/stratosphere/loader/source/oc/pcv/pcv_common.hpp @@ -119,7 +119,7 @@ namespace ams::ldr::hoc::pcv { static_assert(sizeof(regulator) == 0x120); constexpr u32 CpuClkOSLimit = 1785'000; - constexpr u32 GpuOsLimit = 921'600; + constexpr u32 GpuClkOsLimit = 921'600; constexpr u32 EmcClkOSLimit = 1600'000; #define R_SKIP() R_SUCCEED() diff --git a/Source/Atmosphere/stratosphere/loader/source/oc/pcv/pcv_mariko.cpp b/Source/Atmosphere/stratosphere/loader/source/oc/pcv/pcv_mariko.cpp index 7d60c81f..98b8d4b2 100644 --- a/Source/Atmosphere/stratosphere/loader/source/oc/pcv/pcv_mariko.cpp +++ b/Source/Atmosphere/stratosphere/loader/source/oc/pcv/pcv_mariko.cpp @@ -280,7 +280,7 @@ namespace ams::ldr::hoc::pcv::mariko { /* Verify the limit. */ /* TODO: Make this a little bit cleaner at some point. */ - if (AsmGetImm16(ins1) != (GpuOsLimit & 0xFFFF) || AsmGetImm16(ins2) != (GpuOsLimit >> 16)) { + if (AsmGetImm16(ins1) != (GpuClkOsLimit & 0xFFFF) || AsmGetImm16(ins2) != (GpuClkOsLimit >> 16)) { R_THROW(ldr::ResultInvalidGpuFreqMaxPattern()); }