From: Bjorn Helgaas <bjorn_helgaas@hp.com>
To: Matthew Wilcox <matthew@wil.cx>
Cc: rbradetich@uswest.net, Ryan Bradetich <rbrad@beavis.ybsoft.com>,
parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] [PATCH] PDC cleanup and encapsulation
Date: Wed, 4 Apr 2001 16:04:22 -0700 [thread overview]
Message-ID: <0104041450480D.19560@eeyore.fc.hp.com> (raw)
In-Reply-To: <20010404182016.D11435@parcelfarce.linux.theplanet.co.uk>
On Wednesday 04 April 2001 11:20, Matthew Wilcox wrote:
> On Wed, Apr 04, 2001 at 09:57:25AM -0700, Bjorn Helgaas wrote:
> > - What are the guidelines for #ifdef __LP64__ vs CONFIG_PA20? You
> > replaced __LP64__ with CONFIG_PA20 in some places but not others and
> > I'm not clear on the difference.
>
> Not all PA-2.0 processors are run in 64-bit mode. For example, a C3000
> can be run in either 32 or 64 bit mode. At compile-time you can choose
> to optimise for a particular processor (and risk it not working on
> other machines).
Ok, so let me see if I have this right:
CONFIG_PA20 =>
PA2.0 architecture, in either narrow or wide mode.
Defined iff CONFIG_PA8X00 selected, not directly user-configurable.
CONFIG_PARISC64 =>
Only possible when CONFIG_PA20 selected
Build 64-bit kernel by using $(CROSS_COMPILE) = hppa64-linux.
cpp predefines __LP64__.
So is there a reason for testing __LP64__ rather than CONFIG_PARISC64 in
the code? There are a zillion tests for the former and none for the
latter, even though the latter seems more direct and obvious.
It seems to me that __LP64__ is overloaded for several things.
Fundamentally, it is a property of the kernel, i.e., it is compiled to run
in wide mode. But we also use it to decide whether to use PDC PAT, which
seems like a slightly different question. If you run a narrow kernel on a
C3000, the firmware still supports PDC PAT (although I suppose we would
have to do some work to call it in wide mode).
next prev parent reply other threads:[~2001-04-04 23:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-04 0:03 [parisc-linux] [PATCH] PDC cleanup and encapsulation Ryan Bradetich
2001-04-04 16:57 ` Bjorn Helgaas
2001-04-04 17:20 ` Matthew Wilcox
2001-04-04 23:04 ` Bjorn Helgaas [this message]
2001-04-05 0:01 ` Matthew Wilcox
2001-04-09 21:47 ` Grant Grundler
2001-04-05 2:14 ` Ryan Bradetich
-- strict thread matches above, loose matches on Subject: below --
2001-03-29 8:18 Ryan Bradetich
2001-03-29 17:48 ` Paul Bame
2001-03-29 22:05 ` Ryan Bradetich
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=0104041450480D.19560@eeyore.fc.hp.com \
--to=bjorn_helgaas@hp.com \
--cc=matthew@wil.cx \
--cc=parisc-linux@lists.parisc-linux.org \
--cc=rbrad@beavis.ybsoft.com \
--cc=rbradetich@uswest.net \
/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