Franck Bui-Huu b1c65b3988 [MIPS] Fix PHYS_OFFSET for 64-bits kernels with 32-bits symbols
The current implementation of __pa() for 64-bits kernels with 32-bits
symbols is broken. In this configuration, we need 2 values for
PAGE_OFFSET, one in XKPHYS and the other in CKSEG0 space.

When the value in CKSEG0 space is used, it doesn't take into account
of PHYS_OFFSET. Even worse we can't redefine this value.

The patch restores CPHYSADDR() but in __pa()'s implementation because
it removes the need of 2 PAGE_OFFSET.

OTOH, CPHYSADDR() is quite bad when dealing with mapped kernels. So
this patch assumes there's no need to deal with such kernel in 64-bits
world.

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2007-07-10 17:32:57 +01:00
..
2007-06-02 01:02:09 -04:00
2007-06-01 08:18:29 -07:00
2007-05-30 13:15:06 +01:00
2007-05-11 08:29:34 -07:00
2007-06-01 08:18:29 -07:00
2007-07-06 10:23:43 -07:00
2007-06-19 13:10:20 +02:00
2007-05-14 09:55:35 +09:00
2007-06-24 08:59:11 -07:00
2007-05-11 08:29:34 -07:00
2007-06-13 20:44:42 +00:00
2007-05-31 11:03:27 +02:00