Hi there!
I have another question... This time it's about the CheatDevice. I just wondered how the heck Edison managed to set the cpu clock freq to 333 MHz? Don't you need kernel access for that?
I know how to check what the freq is at, but the command for changing it didn't seem to work.
Here's the command to check the current cpu clock freq:
Code:
int sceGetCpuClockFrequency()
{
register int lret asm("$2");
asm("syscall 0x219F;"
: "=r" (lret)
);
return(lret);
}
And here's the non-working set cpu clock freq:
Code:
int sceSetCpuClockFrequency(int cpu, int ram, int bus)
// cpu = 1 - 333
// ram = 1 - 333
// bus = 1 - 167
{
register int lret asm("$2");
asm("syscall 0x21A7;"
: "=r" (lret)
: "r" (cpu), "r" (ram), "r" bus()
);
}
Btw, I got the correct sycall addresses from here
http://home.zhwin.ch/~oem/syscalls_game_2.00.txt