* CPHYSADDR in setup.c
@ 2005-01-10 11:09 Franck Bui-Huu
[not found] ` <20050110135828.GB15344@rembrandt.csv.ica.uni-stuttgart.de>
0 siblings, 1 reply; 3+ messages in thread
From: Franck Bui-Huu @ 2005-01-10 11:09 UTC (permalink / raw)
To: linux-mips
Hi
I have noticed that someone has comitted some changes because
of 64 bits proc and specially added CPHYSADDR macro in
resource_init function. Is it really needed to add specific code
in setup.c ? Couldn't we modify "virt_to_phys" or "__pa"
instead of ?
I think we should get ride of this CPHYSADDR macro if
it's possible.
Thanks for your answers.
Franck
^ permalink raw reply [flat|nested] 3+ messages in thread[parent not found: <20050110135828.GB15344@rembrandt.csv.ica.uni-stuttgart.de>]
* Re: CPHYSADDR in setup.c [not found] ` <20050110135828.GB15344@rembrandt.csv.ica.uni-stuttgart.de> @ 2005-01-10 14:24 ` Franck Bui-Huu 2005-01-10 14:32 ` Thiemo Seufer 0 siblings, 1 reply; 3+ messages in thread From: Franck Bui-Huu @ 2005-01-10 14:24 UTC (permalink / raw) To: Thiemo Seufer, linux-mips 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 thanks, Franck ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: CPHYSADDR in setup.c 2005-01-10 14:24 ` Franck Bui-Huu @ 2005-01-10 14:32 ` Thiemo Seufer 0 siblings, 0 replies; 3+ messages in thread From: Thiemo Seufer @ 2005-01-10 14:32 UTC (permalink / raw) To: Franck Bui-Huu; +Cc: linux-mips 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. Thiemo ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-01-10 14:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-10 11:09 CPHYSADDR in setup.c Franck Bui-Huu
[not found] ` <20050110135828.GB15344@rembrandt.csv.ica.uni-stuttgart.de>
2005-01-10 14:24 ` Franck Bui-Huu
2005-01-10 14:32 ` Thiemo Seufer
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox