All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: SUBRAMANIAN NATESAN <yenyes88@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Scheduling and context switch in Xenomai: - reg
Date: Sat, 03 Mar 2012 18:06:41 +0100	[thread overview]
Message-ID: <4F524FA1.5010908@domain.hid> (raw)
In-Reply-To: <CADAaWNWgKaf9DWXA6YN4iwFa2xXfK2FNkTULGnY4TSKvvW6Whg@domain.hid>

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.


      reply	other threads:[~2012-03-03 17:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-03 13:02 [Xenomai-help] Scheduling and context switch in Xenomai: - reg SUBRAMANIAN NATESAN
2012-03-03 17:06 ` Gilles Chanteperdrix [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F524FA1.5010908@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=xenomai@xenomai.org \
    --cc=yenyes88@domain.hid \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.