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 

what is the differences between user mode and kernel mode?

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



Joined: 09 Nov 2007
Posts: 2

PostPosted: Sun Nov 11, 2007 11:16 pm    Post subject: what is the differences between user mode and kernel mode? Reply with quote

i guess an application can only run in user mode or in kernel mode,witch is desided form the beginning:
PSP_MODULE_INFO("Hello World", 0, 1, 1); //"0" for user mode,while "0x1000" for kernel mode

I knew an application run in kernel mode can do something that can not do in user mode. I think kernel mode is powerful then user mode.

I don't know in what conditions shall I run my application in kernel mode instead of user mode.
Back to top
View user's profile Send private message
hlide



Joined: 10 Sep 2006
Posts: 750

PostPosted: Mon Nov 12, 2007 12:27 am    Post subject: Re: what is the differences between user mode and kernel mod Reply with quote

ytmian wrote:
i guess an application can only run in user mode or in kernel mode,witch is desided form the beginning:
PSP_MODULE_INFO("Hello World", 0, 1, 1); //"0" for user mode,while "0x1000" for kernel mode

I knew an application run in kernel mode can do something that can not do in user mode. I think kernel mode is powerful then user mode.

I don't know in what conditions shall I run my application in kernel mode instead of user mode.


an app should really run in user mode :

- this is the normal mode for an app
- API in user mode is preserved throughout different versions firmwares so games are still able to run on next firmwares
- no strict hardware dependency

the only reason you need to make a kernel app or rather a kernel module is because you need to access some resources (software or hardware) which aren't provided from user API in order to make an extension to a firmware for instance. The trouble is that you may need to update it as long as a new firmware or a new model appears as some incompatibilities can occur.
Back to top
View user's profile Send private message
tacoSunday



Joined: 31 Aug 2007
Posts: 34

PostPosted: Tue Nov 13, 2007 7:17 pm    Post subject: Reply with quote

This is definitely the sort of thing where if you need to ask that question you should be in user mode.
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