On Thu, Mar 15, 2007 at 09:10:05PM +0800, Krishnappa Abhijith-A21204 wrote:
> In order to execute the system call in user space, the process is made
> to execute the system call switch on its kernel stack
> Why this is done... ?
Because all kernel code has to run on a kernel stack.
> Also UML queues a signal ( SIGUSR ) to the process in order to make it
> run on its kernel stack... is this the only reason why UML queue system
> call ?
It appears that you are looking at the tt mode code, which is
obsolete. If you're interested in this for it's own sake, that's
fine, but the skas side of things is much more sane.
If you're referring to system call handling, you are correct. The
signal is solely to get the process on its kernel stack.
skas mode, until somewhat recently, did something similar to get a new
process running on its kernel stack for the first time. Now, it just
constructs the appropriate jmpbuf by hand and longjmps to it when it
needs to run.
Jeff
--
Work email - jdike at linux dot intel dot com
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel