Help the PSP 3D community grow! Vote for us below:


| | Homebrew/Hacking - Discuss the latest available homebrew applications and games. |
Welcome to PSP3D.com - Sony PlayStation Portable News, Homebrew, Hacks, Reviews, Videos, Mods, Forums!
You are currently viewing our website as a guest, which gives you limited access to reply and interact to discussions and other members. By joining our free community, you will be able to post topics in the forums, communicate privately with other members, vote in polls, and access many other special features.
Registration is fast, simple, and absolutely free so join our community today!
|  | | 
01-22-2006, 11:37 AM
| | Moderator... | | Join Date: Dec 2005 Location: Sweden Age: 18
Posts: 553
Points: 1.25 Donate | | | 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 | 
01-22-2006, 11:43 AM
| | Senior Member | | Join Date: Nov 2005 Location: United Kingdom Age: 17
Posts: 1,165
Points: 0.70 Donate | | Quote: |
Originally Posted by Matte Don't you need kernel access for that? | No you dont need KERNAL mode for that as the GTA HACK is USermode only and doesnt have access to KERNAL | 
01-22-2006, 11:49 AM
| | Moderator... | | Join Date: Dec 2005 Location: Sweden Age: 18
Posts: 553
Points: 1.25 Donate | | | Okay.. That's what I thought.
But does anyone (fanjita) know the command he used? | 
01-23-2006, 03:14 PM
| | Moderator... | | Join Date: Dec 2005 Location: Sweden Age: 18
Posts: 553
Points: 1.25 Donate | | | I'm still wondering this... (also known as bump) | 
01-23-2006, 03:29 PM
| | Moderator
My Mood: | | Join Date: Dec 2005 Location: Earth Age: 26
Posts: 336
Points: 40.42 Donate | | You're missing something.
Try: Code: int sceSetCpuClockFrequency(int cpu, int ram, int bus)
// cpu = 1 - 333
// ram = 1 - 333
// bus = 1 - 167
{
register int lret asm("$2");
register int lcpu asm("$4") = cpu;
register int lram asm("$5") = ram;
register int lbus asm("$6") = bus;
asm("syscall 0x21A7"
: "=r" (lret)
: "r" (lcpu), "r" (lram), "r" (lbus)
);
return(lret);
} Of course, no guarantee that this works.
::Edit:: syscall wasn't right.. changed to 0x21A7
__________________ Look below for my signature.
Look above for my signature.
Last edited by Percival : 01-23-2006 at 03:33 PM.
| 
01-23-2006, 03:46 PM
| | Moderator... | | Join Date: Dec 2005 Location: Sweden Age: 18
Posts: 553
Points: 1.25 Donate | | Actually, I believe that sysall could've been right. I found out that there was one so that you could change the cpu's, ram's and bus' speed while the other was only for the cpu.
Thank you anyways, I'll test it right away
Ohh.. I see, you wrote the wrong syscall? Anyway, what I said still is true.
Last edited by Homer : 01-23-2006 at 03:48 PM.
| 
01-23-2006, 03:52 PM
| | Moderator
My Mood: | | Join Date: Dec 2005 Location: Earth Age: 26
Posts: 336
Points: 40.42 Donate | | Yeah that is what I meant, I copied the wrong syscall.
But did it work? I'm also interested in this 
__________________ Look below for my signature.
Look above for my signature. | 
01-23-2006, 04:09 PM
| | Moderator... | | Join Date: Dec 2005 Location: Sweden Age: 18
Posts: 553
Points: 1.25 Donate | | Sorry, no... It didn't work. Hmm... I'll mess some with it, I'll be sure to let you know if I end up with something good  | 
01-23-2006, 04:55 PM
| | Senior Member | | Join Date: Dec 2005 Location: Amsterdam
Posts: 173
Points: 1.53 Donate | | KyleNic
I love your double posters .Gif img    | 
01-23-2006, 05:00 PM
| | Moderator... | | Join Date: Dec 2005 Location: Sweden Age: 18
Posts: 553
Points: 1.25 Donate | | | Wtf??
Couldn't you just have sent him a PM saying that instead of spamming the forums? | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off Points Per Thread View: 0.00 Points Per Thread: 1.00 Points Per Reply: 0.10 | | | | |