public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@SteelEye.com>
To: Andrew Morton <akpm@osdl.org>
Cc: Matthew Wilcox <willy@debian.org>,
	ak@suse.de, linux-arch@vger.kernel.org,
	Carlos O'Donell <carlos@baldric.uwo.ca>
Subject: Re: compat-signal-noarch-2004-01-29.patch again
Date: 20 Mar 2004 15:31:13 -0500	[thread overview]
Message-ID: <1079814674.1778.148.camel@mulgrave> (raw)
In-Reply-To: <20040320122048.70db9888.akpm@osdl.org>

On Sat, 2004-03-20 at 15:20, Andrew Morton wrote:
> I can sort-of-see Andi's worry.
> 
> The issue appears to be that at some time in the future he will have 64-bit
> applications using the 32-bit API without PER_LINUX32 set.  So the proposed
> is_compat_task() is meaningless in this context - hence Andi doesn't want
> is_compat_task() propagated around the place.
> 
> This begs the question of how his kernel correctly handle these
> pseudo-32-bit tasks.

Actually, I'd take the opposite view:  is_compat_task() abstracts out
the job of discovering whether the task is using the 32 bit API on 64
bits.

However it's done on every arch that supports it, there must be always
an unequivocal answer to "is this task running 32 bits?" which this
macro supplies.  I agree it's not always going to be dependent on
PER_LINUX32 being set, but providing arch's with a way to override it
answers that point, I think.

It's in generic code because there's a standard way of identifying these
compat tasks (PER_LINUX32) and it's overrideable for arch's that want to
do it in a non-standard way.

James

      parent reply	other threads:[~2004-03-20 20:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-20  5:49 compat-signal-noarch-2004-01-29.patch again Andrew Morton
2004-03-20  4:15 ` Andi Kleen
2004-03-20  6:37   ` Andrew Morton
2004-03-20  4:57     ` Andi Kleen
2004-03-20  7:42       ` Andrew Morton
2004-03-20 13:36       ` Matthew Wilcox
2004-03-20 20:20         ` Andrew Morton
2004-03-20 20:29           ` Matthew Wilcox
2004-03-20 20:31           ` James Bottomley [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=1079814674.1778.148.camel@mulgrave \
    --to=james.bottomley@steeleye.com \
    --cc=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=carlos@baldric.uwo.ca \
    --cc=linux-arch@vger.kernel.org \
    --cc=willy@debian.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