Linux PARISC architecture development
 help / color / mirror / Atom feed
From: Grant Grundler <grundler@puffin.external.hp.com>
To: Bjorn Helgaas <bjorn_helgaas@hp.com>
Cc: parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] [PATCH] PDC cleanup and encapsulation
Date: Mon, 09 Apr 2001 15:47:20 -0600	[thread overview]
Message-ID: <200104092147.PAA29161@puffin.external.hp.com> (raw)
In-Reply-To: Your message of "Wed, 04 Apr 2001 16:04:22 PDT." <0104041450480D.19560@eeyore.fc.hp.com>

Bjorn Helgaas wrote:
> CONFIG_PARISC64 =>
> 	Only possible when CONFIG_PA20 selected
> 	Build 64-bit kernel by using $(CROSS_COMPILE) = hppa64-linux.

rhirst and I don't modify linux/Makefile for CROSS_COMPILE.
Now automagically based on the .config options selected.

> 	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.

CONFIG_PARISC64 wasn't available when I wrote my code.
Most of my code uses __LP64__ though I think including linux./config.h
is better since when it changes, the .o's get rebuilt.

> 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

I didn't think so. A narrow kernel won't have PDC PAT *calls*
 (eg do_inventory) in it.

>  (although I suppose we would have to do some work to call it in wide mode).

We considered doing this but decided it wasn't worth the effort.
Others are welcome to make this work if they have time to though...

grant

Grant Grundler
parisc-linux {PCI|IOMMU|SMP} hacker
+1.408.447.7253

  parent reply	other threads:[~2001-04-09 21:53 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
2001-04-05  0:01       ` Matthew Wilcox
2001-04-09 21:47       ` Grant Grundler [this message]
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=200104092147.PAA29161@puffin.external.hp.com \
    --to=grundler@puffin.external.hp.com \
    --cc=bjorn_helgaas@hp.com \
    --cc=parisc-linux@lists.parisc-linux.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