From: Helge Deller <deller@gmx.de>
To: Matthew Wilcox <matthew@wil.cx>, Ryan Bradetich <rbradetich@uswest.net>
Cc: parisc-linux@thepuffingroup.com
Subject: Re: [parisc-linux] System bus walk patch
Date: Fri, 2 Feb 2001 23:22:16 +0100 [thread overview]
Message-ID: <01020223221603.05589@P100.helgenet.de> (raw)
In-Reply-To: <20010202202918.A26452@parcelfarce.linux.theplanet.co.uk>
> > +#ifdef __LP64__
> > +#define FPA 0xFFFFFFFFFFF80000 /* Fixed Physical Address - Location of
> > the Central Bus */ +#else /* !__LP64__ */
> > +#define FPA 0xFFF80000 /* Fixed Physical Address - Location of
> > the Central Bus */ +#endif /* __LP64__ */
>
> I'm sure there's a way to do this without #ifdef's... something like
>
> #define FPA (unsigned long)-80000
>
> but perhaps that feels obfuscated -- after all we're after an address here.
>
> #define FPA ((unsigned long)(signed int)0xfff80000)
or just as I did it in led.c
#define KITTYHAWK_LCD_CMD (0xfffffffff0190000UL) /* 64bit-ready */
which is automatically casted by the compiler ?
Helge
next prev parent reply other threads:[~2001-02-02 22:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-02 20:05 [parisc-linux] System bus walk patch Ryan Bradetich
2001-02-02 20:29 ` Matthew Wilcox
2001-02-02 22:22 ` Helge Deller [this message]
2001-02-03 19:50 ` 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=01020223221603.05589@P100.helgenet.de \
--to=deller@gmx.de \
--cc=matthew@wil.cx \
--cc=parisc-linux@thepuffingroup.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