module self stop unload

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

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
hotter
Posts: 53
Joined: Sun Dec 07, 2008 8:49 pm

module self stop unload

Post by hotter »

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
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

Use 0x1000 in your PSP_MODULE_INFO instead of 0x1006 or 0x1007.
User avatar
hotter
Posts: 53
Joined: Sun Dec 07, 2008 8:49 pm

Post by hotter »

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
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

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.
User avatar
hotter
Posts: 53
Joined: Sun Dec 07, 2008 8:49 pm

Post by hotter »

sceKernelStopUnloadSelfModule() return the same :(
Pragramming with:
Microsoft Visual C 2008 + pspsdk MINPSPW 0.8.10
Post Reply