[Top] [All Lists]

Re: CPHYSADDR in setup.c

To: Franck Bui-Huu <>
Subject: Re: CPHYSADDR in setup.c
From: Thiemo Seufer <>
Date: Mon, 10 Jan 2005 15:32:12 +0100
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <>
User-agent: Mutt/1.5.6+20040907i
Franck Bui-Huu wrote:
> Hi Thiemo
> Thiemo Seufer wrote:
> >That place in setup.c _had_ virt_to_phys before. It fails to build
> >for 64bit code in 32bit objects with reasonably modern toolchains
> >(which means all 64bit kernels currently supported in CVS).
> >
> yes, but can't we modify "virt_to_phys" or "__pa" directly instead of
> adding some new uses of CPHYSADDR in setup.c

We shouldn't. virt_to_phys accepts typesafe addresses, while CPHYSADDR
only juggles the bits of an unsigned long around. Degrading virt_to_phys
to the standard of CPHYSADDR isn't an improvement.


<Prev in Thread] Current Thread [Next in Thread>