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 

module self stop unload

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



Joined: 07 Dec 2008
Posts: 53

PostPosted: Sat Feb 21, 2009 10:24 pm    Post subject: module self stop unload Reply with quote

I am trying to stop kernel module it self and unload itself by using sceKernelSelfStopUnloadModule but i get error 0x80020136. I found that it means "SCE_KERNEL_ERROR_CAN_NOT_STOP". How to solve this error?
_________________
Pragramming with:
Microsoft Visual C 2008 + pspsdk MINPSPW 0.8.10
Back to top
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Sat Feb 21, 2009 11:16 pm    Post subject: Reply with quote

Use 0x1000 in your PSP_MODULE_INFO instead of 0x1006 or 0x1007.
Back to top
View user's profile Send private message
hotter



Joined: 07 Dec 2008
Posts: 53

PostPosted: Sat Feb 21, 2009 11:40 pm    Post subject: Reply with quote

Yes, I am using 0x1000 in my PSP_MODULE_INFO.
I have noticed that if I use
USE_KERNEL_LIBC=1
USE_KERNEL_LIBS=1
in my makefile, module stops and unloads, but I dont want to use these, because I need lots of functions from math.h and to convert float to string function for this module :( Is there any other way?
_________________
Pragramming with:
Microsoft Visual C 2008 + pspsdk MINPSPW 0.8.10
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Mon Feb 23, 2009 12:37 am    Post subject: Reply with quote

Kernel modules should have those two lines to be efficient and work properly.

There are two SelfStopUnload functions. Use the other one (the words in the name are differently ordered). I remember that one of them didn't work for me.
Back to top
View user's profile Send private message
hotter



Joined: 07 Dec 2008
Posts: 53

PostPosted: Mon Feb 23, 2009 2:58 am    Post subject: Reply with quote

sceKernelStopUnloadSelfModule() return the same :(
_________________
Pragramming with:
Microsoft Visual C 2008 + pspsdk MINPSPW 0.8.10
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