| View previous topic :: View next topic |
| Author |
Message |
hotter

Joined: 07 Dec 2008 Posts: 53
|
Posted: Sat Feb 21, 2009 10:24 pm Post subject: module self stop unload |
|
|
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 |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Sat Feb 21, 2009 11:16 pm Post subject: |
|
|
| Use 0x1000 in your PSP_MODULE_INFO instead of 0x1006 or 0x1007. |
|
| Back to top |
|
 |
hotter

Joined: 07 Dec 2008 Posts: 53
|
Posted: Sat Feb 21, 2009 11:40 pm Post subject: |
|
|
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 |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Mon Feb 23, 2009 12:37 am Post subject: |
|
|
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 |
|
 |
hotter

Joined: 07 Dec 2008 Posts: 53
|
Posted: Mon Feb 23, 2009 2:58 am Post subject: |
|
|
sceKernelStopUnloadSelfModule() return the same :( _________________ Pragramming with:
Microsoft Visual C 2008 + pspsdk MINPSPW 0.8.10 |
|
| Back to top |
|
 |
|