loader: patch cpu vmin for slt

This commit is contained in:
hanabbi committed 2023-09-18 09:13:01 +09:00
1 parent 79b15efccc
commit 24fd868630
1 file changed
+10
@@ -46,6 +46,16 @@ Result CpuVoltRange(u32* ptr) {
R_SKIP();
PATCH_OFFSET(ptr, C.marikoCpuMaxVolt);
// Patch vmin for slt
if (C.marikoCpuUV) {
if (*(ptr-5) == 620) {
PATCH_OFFSET((ptr-5), 600);
}
if (*(ptr-1) == 620) {
PATCH_OFFSET((ptr-1), 600);
}
}
R_SUCCEED();
}
R_THROW(ldr::ResultInvalidCpuMinVolt());