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 

Prx loading problems!

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



Joined: 15 Jul 2005
Posts: 14

PostPosted: Tue Nov 01, 2005 7:22 pm    Post subject: Prx loading problems! Reply with quote

Hey guys,
after i update my pspsdk + toolchain I'm not able to load prx module. I'm in kernel mode and use this function to load a module :

Code:

int prx;
prx = sceKernelLoadModule("flash0:/kd/sysmem.prx", 0, 0);
sceKernelStartModule(prx, 0, 0, 0, 0);


this had worked till I updated my sdk! Can anyone helpme? Thx
Back to top
View user's profile Send private message
sherpya



Joined: 03 Oct 2005
Posts: 61

PostPosted: Wed Nov 02, 2005 6:12 am    Post subject: Reply with quote

you need to add this in your code
Code:

/**
 * Function that is called from _init in kernelmode before the
 * main thread is started in usermode.
 */
__attribute__ ((constructor)) void loaderInit()
{
    pspKernelSetKernelPC();
    pspSdkInstallNoDeviceCheckPatch();
    pspDebugInstallKprintfHandler(NULL);
}
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