| View previous topic :: View next topic |
| Author |
Message |
KickinAezz
Joined: 03 Jun 2007 Posts: 328
|
Posted: Thu Jun 21, 2007 6:00 am Post subject: 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? |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Thu Jun 21, 2007 6:28 am Post subject: |
|
|
Did this work on an earlier toolchain?
If so, drop by the #pspdev irc channel on irc.freenode.net and ask there. It is certainly possible there's a bug of some sort. |
|
| Back to top |
|
 |
KickinAezz
Joined: 03 Jun 2007 Posts: 328
|
Posted: Thu Jun 21, 2007 6:28 am Post subject: |
|
|
Update:
I will the same thing by using UID instead of name and post the results of what happens then.
------
Reply to oopo:
I haven't tried this before... but now. Hence I can' ttell.
---------
Request:
Please, Would anyone volunteer to try this on thier psp? |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Thu Jun 21, 2007 7:07 am Post subject: |
|
|
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 | Code: | | PSP_MAIN_THREAD_ATTR(0); |
after the PSP_MODULE_INFO and it will probably start working. |
|
| Back to top |
|
 |
KickinAezz
Joined: 03 Jun 2007 Posts: 328
|
Posted: Thu Jun 21, 2007 9:55 am Post subject: |
|
|
| Thanks for the great info! |
|
| Back to top |
|
 |
KickinAezz
Joined: 03 Jun 2007 Posts: 328
|
Posted: Thu Jun 21, 2007 10:38 am Post subject: |
|
|
One question:
Is it true that only functions that contain "Kernel" in their function names run only in kernel mode? |
|
| Back to top |
|
 |
jsharrad
Joined: 20 Oct 2005 Posts: 102
|
Posted: Thu Jun 21, 2007 10:54 am Post subject: |
|
|
| No, surely you've used sceKernelDelayThread() before? |
|
| Back to top |
|
 |
KickinAezz
Joined: 03 Jun 2007 Posts: 328
|
Posted: Thu Jun 21, 2007 11:11 am Post subject: |
|
|
| jsharrad wrote: | | No, surely you've used sceKernelDelayThread() before? |
Yeeauhpp. |
|
| Back to top |
|
 |
|