From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4F524FA1.5010908@domain.hid> Date: Sat, 03 Mar 2012 18:06:41 +0100 From: Gilles Chanteperdrix MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] Scheduling and context switch in Xenomai: - reg List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: SUBRAMANIAN NATESAN Cc: xenomai@xenomai.org On 03/03/2012 02:02 PM, SUBRAMANIAN NATESAN wrote: > Hi, > > During the context switch in scheduling, could you please let me know, > where the process/thread's information or state is stored and which > function call is responsible for it? Linux uses switch_to, xenomai uses xnarch_switch_to. These are defined differently for each architecture and may be either macros or functions depending on the architecture. The registers are loaded and saved from the task control block. -- Gilles.