CPHYSADDR in setup.c
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
Hi Thiemo
Quoted 6 lines · Thiemo Seufer
That place in
setup.c_had_virt_to_physbefore. 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
Quoted 10 lines · Franck Bui-Huu
Hi Thiemo
Quoted 4 lines · Thiemo Seufer
That place in
setup.c_had_virt_to_physbefore. 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 insetup.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