Disfunctional SDK function in the newer toolchains?probably.

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
KickinAezz
Posts: 328
Joined: Sun Jun 03, 2007 10:05 pm

Disfunctional SDK function in the newer toolchains?probably.

Post by KickinAezz »

Image

Update 2:
Image

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?
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

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.
KickinAezz
Posts: 328
Joined: Sun Jun 03, 2007 10:05 pm

Post by KickinAezz »

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?
TyRaNiD
Posts: 907
Joined: Sun Jan 18, 2004 12:23 am

Post by TyRaNiD »

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: Select all

PSP_MAIN_THREAD_ATTR(0);

after the PSP_MODULE_INFO and it will probably start working.
KickinAezz
Posts: 328
Joined: Sun Jun 03, 2007 10:05 pm

Post by KickinAezz »

Thanks for the great info!
KickinAezz
Posts: 328
Joined: Sun Jun 03, 2007 10:05 pm

Post by KickinAezz »

One question:

Is it true that only functions that contain "Kernel" in their function names run only in kernel mode?
jsharrad
Posts: 100
Joined: Thu Oct 20, 2005 3:06 am

Post by jsharrad »

No, surely you've used sceKernelDelayThread() before?
KickinAezz
Posts: 328
Joined: Sun Jun 03, 2007 10:05 pm

Post by KickinAezz »

jsharrad wrote:No, surely you've used sceKernelDelayThread() before?
Yeeauhpp.
Post Reply