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 

Kernel & User mode PRXes

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



Joined: 17 Jun 2005
Posts: 30

PostPosted: Thu Mar 09, 2006 1:58 pm    Post subject: Kernel & User mode PRXes Reply with quote

I'm trying get the networking working within a PRX module. First, I've implemented it as a kernel mode PRX. Then, I discovered the networking libraries doesn't work properly within a kernel PRX. Afterwards, I change my PRX into a User mode PRX, but this time I discovered many of the normal functions doesn't work, like fdprintf , etc. The strange thing think is my PRX will crash the system even if the fdprintf is linked and not called. But the same fdprintf works fine under kernel mode PRX. Is this normal?
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Fri Mar 10, 2006 3:45 am    Post subject: Reply with quote

Yes because fdprintf is a kernel only function, when you are in user space you really should just use the normal libc, i.e. fprintf. Ensure you remove any USE_KERNEL_LIBC=1 lines in your makefile.
Back to top
View user's profile Send private message
Phantom8



Joined: 17 Jun 2005
Posts: 30

PostPosted: Fri Mar 10, 2006 3:03 pm    Post subject: Reply with quote

TyRaNiD wrote:
Yes because fdprintf is a kernel only function, when you are in user space you really should just use the normal libc, i.e. fprintf. Ensure you remove any USE_KERNEL_LIBC=1 lines in your makefile.


TyRaNiD, thanks a lot for the suggestion. I finally get the user mode PRX with networking function working.
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