forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Disfunctional SDK function in the newer toolchains?probably.

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Thu Jun 21, 2007 6:00 am    Post subject: Disfunctional SDK function in the newer toolchains?probably. Reply with quote



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
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Thu Jun 21, 2007 6:28 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Thu Jun 21, 2007 6:28 am    Post subject: Reply with quote

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
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Thu Jun 21, 2007 7:07 am    Post subject: Reply with quote

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
View user's profile Send private message
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Thu Jun 21, 2007 9:55 am    Post subject: Reply with quote

Thanks for the great info!
Back to top
View user's profile Send private message
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Thu Jun 21, 2007 10:38 am    Post subject: Reply with quote

One question:

Is it true that only functions that contain "Kernel" in their function names run only in kernel mode?
Back to top
View user's profile Send private message
jsharrad



Joined: 20 Oct 2005
Posts: 102

PostPosted: Thu Jun 21, 2007 10:54 am    Post subject: Reply with quote

No, surely you've used sceKernelDelayThread() before?
Back to top
View user's profile Send private message
KickinAezz



Joined: 03 Jun 2007
Posts: 328

PostPosted: Thu Jun 21, 2007 11:11 am    Post subject: Reply with quote

jsharrad wrote:
No, surely you've used sceKernelDelayThread() before?


Yeeauhpp.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group