From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bay0-omc1-s6.bay0.hotmail.com (bay0-omc1-s6.bay0.hotmail.com [65.54.246.78]) by ozlabs.org (Postfix) with ESMTP id A5743DE040 for ; Wed, 25 Jun 2008 07:13:02 +1000 (EST) Message-ID: From: "Mitesh" To: Subject: Exit points for returning from kernel mode to user mode Date: Tue, 24 Jun 2008 15:22:01 -0600 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0144_01C8D60E.0CDD8730" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. ------=_NextPart_000_0144_01C8D60E.0CDD8730 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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.=20 Is there a single function which is called in the ppc kernel when the = mode is switched back to user mode ?=20 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.=20 What code files should I be looking at, is there one place this can be = done? Any tips are appreciated. ------=_NextPart_000_0144_01C8D60E.0CDD8730 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 I am trying to understand exit = points from=20 kernel mode to user mode. I believe this happens when the scheduler is = invoked,=20 there are interrupts, exceptions, or the kernel is executing system call = in=20 process context.=20
 
Is there a single function which is = called in the=20 ppc kernel when the mode is switched back to user mode ?
 
I have linux 2.6.16.21 kernel running = on a=20 4-way p550 IBM pSeries with POWER5 processors. Everytime before a = process begins=20 executing in user mode I want to execute a special SMT thread = priority=20 assembler instruction.
 
What code files should I be looking at, = is there=20 one place this can be done? Any tips are=20 appreciated.
------=_NextPart_000_0144_01C8D60E.0CDD8730--