public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Fenghua Yu <fenghua.yu@intel.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [RFC patch] use thread.on_ustack to determine if on user stack
Date: Mon, 15 Oct 2007 23:26:52 +0000	[thread overview]
Message-ID: <20071015232652.GA32544@linux-os.sc.intel.com> (raw)
In-Reply-To: <3877989d0709290053s7b4e80b6t9e7127b9ccac522b@mail.gmail.com>

On Mon, Oct 15, 2007 at 12:28:05PM +0800, Luming Yu wrote:
> So my problem is I don't know if it is  true that pUStk =
> thread.on_ustack in fsys mode. And I didn't locate the code that the
> thread.on_ustack is cleared to 0 during fsys mode.
> So please help.

In fsys call, pUStk is never equal to thread.on_ustack. Here is the code in
fsys_bubble_down() in fsys.S.

....
        st1 [r16]=r0                            // M2|3 clear current->thread.on_ustack flag
....
        cmp.ne pKStk,pUStk=r0,r0                // A    set pKStk <- 0, pUStk <- 1
....

The code shows that thread.on_ustack=0 and pUStk=1 during fsys setup phase. The
two should be equal in other cases than fsys. Seems the two similar names cause
confusion.

Thanks.

-Fenghua

  parent reply	other threads:[~2007-10-15 23:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-29  7:53 [RFC patch] use thread.on_ustack to determine if on user stack Luming Yu
2007-10-12 22:15 ` Fenghua Yu
2007-10-15  4:28 ` Luming Yu
2007-10-15 23:26 ` Fenghua Yu [this message]
2007-10-16  1:14 ` Luming Yu

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=20071015232652.GA32544@linux-os.sc.intel.com \
    --to=fenghua.yu@intel.com \
    --cc=linux-ia64@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox