View Single Post
  #1 (permalink)  
Old 01-22-2006, 11:37 AM
Homer's Avatar
Homer Homer is offline
Moderator...
 
Join Date: Dec 2005
Location: Sweden
Age: 19
Posts: 553
Points: 1.38
Donate
Send a message via MSN to Homer
How did Edison manage to set the cpu clock to 333 MHz?

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
__________________
Reply With Quote