[Cbe-oss-dev] Exit points for returning from kernel mode to user mode

Mitesh R. Meswani mmeswani at miners.utep.edu
Wed Jun 25 07:17:31 EST 2008


I am trying to understand exit points from kernel mode to user mode. I believe this happens when the scheduler is invoked, there are interrupts, exceptions, or the kernel is executing system call in process context. 

Is there a single function which is called in the ppc kernel when the mode is switched back to user mode ? 

I have linux 2.6.16.21 kernel running on a 4-way p550 IBM pSeries with POWER5 processors. Everytime before a process begins executing in user mode I want to execute a special SMT thread priority assembler instruction. 

What code files should I be looking at, is there one place this can be done? Any tips are appreciated.



Thanks, 
Mitesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/cbe-oss-dev/attachments/20080624/b17c96fd/attachment.htm>


More information about the cbe-oss-dev mailing list