Search found 6 matches

by Need2P
Sun Mar 22, 2009 2:00 pm
Forum: PSP Development
Topic: fputs with VLF library
Replies: 4
Views: 2027

Did you include the VLF Library somewhere?
like: #include "thelibrary.extension"
or: #include <thelibrary.extension>
by Need2P
Sun Mar 22, 2009 1:55 pm
Forum: PSP Development
Topic: PRX doesn't have Kernel Priviliges
Replies: 13
Views: 3666

Your PRX is ALWAYS in kernel mode. Thats what 0x1000 means. The exports is the only way to call the prx, and the way it's defined assures that you'll only get syscalls into kernel mode when calling the prx. Ohhhhhhh, I get it 0.0 Thanks! it must have been a mental short cut of mine =D Sorry, I'm ki...
by Need2P
Sat Mar 21, 2009 11:18 pm
Forum: PSP Development
Topic: PRX doesn't have Kernel Priviliges
Replies: 13
Views: 3666

Thanks =D Ok I changed it to: PSP_HEAP_SIZE_KB( 64); PSP_MAIN_THREAD_STACK_SIZE_KB( 64); as that's the default. What functions would I then use to detect whether I'm in kernel mode? I want to detect whether I'm in kernel mode or not because If I code some complicated function and it returns an error...
by Need2P
Sat Mar 21, 2009 11:08 pm
Forum: PSP Development
Topic: PRX doesn't have Kernel Priviliges
Replies: 13
Views: 3666

I altered my code to: int ret = sceNetInetInit(); As it would only return 0 if it would have executed correctly which means it must be in kernel mode. Why would you even need to test in the first place??? If the module exporting the function is 0x1000 then the function will be kernel mode, even if ...
by Need2P
Sat Mar 21, 2009 10:46 pm
Forum: PSP Development
Topic: PRX doesn't have Kernel Priviliges
Replies: 13
Views: 3666

Good idea, maybe sceKernelIsUserModeThread doesn't return weather the PRX is in user mode. I altered my code to: int ret = sceNetInetInit(); As it would only return 0 if it would have executed correctly which means it must be in kernel mode. Now testing my PRX, editing when done. The problem could a...
by Need2P
Sat Mar 21, 2009 5:50 pm
Forum: PSP Development
Topic: PRX doesn't have Kernel Priviliges
Replies: 13
Views: 3666

PRX doesn't have Kernel Priviliges

Here is the PRX: #include <pspkernel.h> #include <pspmodulemgr_kernel.h> #include <psppower.h> #include <pspgu.h> #include <pspwlan.h> #include <pspnet.h> #include <pspnet_inet.h> #include <pspnet_apctl.h> #include <arpa/inet.h> #include <pspthreadman_kernel.h> #include <pspsdk.h> #include <string.h...