- [Sys-clk-OC]: Avoid conflicts with ptm module setting boost clocks
- [Sys-clk-OC]: Reduce sensitivity of Auto CPU Boost (≥95%) - [test_patch]: Throw error if no patching entries were found.
This commit is contained in:
@@ -909,7 +909,17 @@ namespace ams::ldr::oc {
|
||||
cnt[MEM_PLL_CLK],
|
||||
cnt[GPU_MAX_CLOCK]);
|
||||
|
||||
if (cnt[CPU_CLOCK_VDD] > 1 ||
|
||||
if (
|
||||
#ifndef ATMOSPHERE_IS_STRATOSPHERE
|
||||
!cnt[CPU_CLOCK_VDD] ||
|
||||
!cnt[CPU_TABLE] ||
|
||||
!cnt[GPU_TABLE] ||
|
||||
!cnt[CPU_MAX_VOLT] ||
|
||||
!cnt[GPU_PLL_CLK] ||
|
||||
!cnt[MEM_PLL_CLK] ||
|
||||
!cnt[GPU_MAX_CLOCK] ||
|
||||
#endif
|
||||
cnt[CPU_CLOCK_VDD] > 1 ||
|
||||
cnt[CPU_TABLE] > 1 ||
|
||||
cnt[GPU_TABLE] > 1 ||
|
||||
cnt[CPU_MAX_VOLT] > 13 ||
|
||||
@@ -1082,7 +1092,15 @@ namespace ams::ldr::oc {
|
||||
cnt[MEM_VOLT],
|
||||
cnt[MEM_PLL_CLK]);
|
||||
|
||||
if (cnt[CPU_CLOCK] > 1 ||
|
||||
if (
|
||||
#ifndef ATMOSPHERE_IS_STRATOSPHERE
|
||||
!cnt[CPU_CLOCK] ||
|
||||
!cnt[CPU_MAX_VOLT] ||
|
||||
!cnt[MEM_CLOCK] ||
|
||||
!cnt[MEM_VOLT] ||
|
||||
!cnt[MEM_PLL_CLK] ||
|
||||
#endif
|
||||
cnt[CPU_CLOCK] > 1 ||
|
||||
cnt[MEM_VOLT] > 2 ||
|
||||
cnt[MEM_PLL_CLK] > 2)
|
||||
{
|
||||
|
||||
@@ -45,8 +45,16 @@ void* loadExec(const char* file_loc, size_t* out_size) {
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
fseek(fp, 0, SEEK_END);
|
||||
size_t size = ftell(fp);
|
||||
if (fseek(fp, 0, SEEK_END) < 0) {
|
||||
fprintf(stderr, "fseek error\n");
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
long size = ftell(fp);
|
||||
if (size == -1L) {
|
||||
fprintf(stderr, "\"%s\" is a directory", file_loc);
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
fseek(fp, 0, SEEK_SET);
|
||||
void* buf = malloc(size);
|
||||
@@ -55,7 +63,7 @@ void* loadExec(const char* file_loc, size_t* out_size) {
|
||||
fclose(fp);
|
||||
|
||||
if (size < 8192) {
|
||||
fprintf(stderr, "File is too small to process: \"%s\" (%lu B)\n", file_loc, size);
|
||||
fprintf(stderr, "File is too small to process: \"%s\" (%ld B)\n", file_loc, size);
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user