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-04-27 16:20:23 +01:00
2006-10-04 18:06:15 +01:00
2007-04-27 16:20:24 +01:00
2006-10-03 23:01:26 +02:00
2007-02-18 21:31:35 +00:00
2006-11-01 17:46:09 +00:00
2007-04-20 14:58:37 +01:00
2007-04-25 22:23:33 -07:00
2007-03-08 01:10:30 +00:00
2007-05-11 14:28:31 +01:00
2007-07-10 17:32:55 +01:00
2007-05-11 14:28:31 +01:00
2007-05-11 14:28:31 +01:00
2006-07-13 21:26:08 +01:00
2007-02-18 21:31:34 +00:00
2007-05-08 11:15:20 -07:00
2007-02-18 21:31:34 +00:00
2007-05-21 09:18:19 -07:00
2007-05-11 08:29:34 -07:00
2006-06-19 17:39:19 +01:00
2006-04-19 04:14:22 +02:00
2007-05-02 19:02:34 -07:00
2007-03-24 17:01:49 +00:00
2007-02-18 21:31:35 +00:00
2007-02-26 23:06:06 +00:00
2006-06-06 00:15:20 +01:00
2007-06-11 18:20:53 +01:00
2007-03-07 00:07:17 +00:00