| View previous topic :: View next topic |
| Author |
Message |
ytmian
Joined: 09 Nov 2007 Posts: 2
|
Posted: Sun Nov 11, 2007 11:16 pm Post subject: what is the differences between user mode and kernel mode? |
|
|
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 |
|
 |
hlide
Joined: 10 Sep 2006 Posts: 750
|
Posted: Mon Nov 12, 2007 12:27 am Post subject: Re: what is the differences between user mode and kernel mod |
|
|
| 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 |
|
 |
tacoSunday

Joined: 31 Aug 2007 Posts: 34
|
Posted: Tue Nov 13, 2007 7:17 pm Post subject: |
|
|
| This is definitely the sort of thing where if you need to ask that question you should be in user mode. |
|
| Back to top |
|
 |
|