Disfunctional SDK function in the newer toolchains?probably.
-
- Posts: 328
- Joined: Sun Jun 03, 2007 10:05 pm
Disfunctional SDK function in the newer toolchains?probably.
Update 2:
Why is it happening...
Modlist shows "PSPLINK" as an existant module. [i've also tried various others but still I get the same problem]
Can atleast a 1 person out of 9113 Members from Ps2dev answer this. Please.
Info, if helps: a NON-modchipped psp running 3.40 OE-A in 1.5Kernel.
Can anyone please look into it?
What am I doing wrong here?
-
- Posts: 328
- Joined: Sun Jun 03, 2007 10:05 pm
Sigh...
There is nothing wrong with the function, it works just fine. The problem is you don't fully understand how kernel/user separation works. Basically you are building a static kernel elf file, _but_ you are then not telling the system to create your main thread as a kernel thread so it runs in user mode. You are then trying to call kernel only function which causes the crash (in fact it is slightly more complicated than that but I don't feel like explaining).
Add the line
after the PSP_MODULE_INFO and it will probably start working.
There is nothing wrong with the function, it works just fine. The problem is you don't fully understand how kernel/user separation works. Basically you are building a static kernel elf file, _but_ you are then not telling the system to create your main thread as a kernel thread so it runs in user mode. You are then trying to call kernel only function which causes the crash (in fact it is slightly more complicated than that but I don't feel like explaining).
Add the line
Code: Select all
PSP_MAIN_THREAD_ATTR(0);
after the PSP_MODULE_INFO and it will probably start working.
-
- Posts: 328
- Joined: Sun Jun 03, 2007 10:05 pm
-
- Posts: 328
- Joined: Sun Jun 03, 2007 10:05 pm