loader: patch cpu vmin for slt

This commit is contained in:
hanabbi
2023-09-18 06:35:09 +09:00
parent 79b15efccc
commit 24fd868630

View File

@@ -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());