]> err.no Git - linux-2.6/commitdiff
[MIPS] Make PAGE_OFFSET aware of PHYS_OFFSET
authorFranck Bui-Huu <fbuihuu@gmail.com>
Mon, 4 Jun 2007 15:46:33 +0000 (17:46 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 10 Jul 2007 16:32:57 +0000 (17:32 +0100)
For platforms that use PHYS_OFFSET and do not use a mapped kernel,
this patch automatically adds PHYS_OFFSET into PAGE_OFFSET.
Therefore there are no more needs for them to redefine PAGE_OFFSET.

For mapped kernel, they need to redefine PAGE_OFFSET anyways.

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/mach-generic/spaces.h

index d901e084a47936caf610c50d54a9225c9ffa8157..f0571b65194055a8c7774b46f35d2c9ab6e9fd63 100644 (file)
@@ -72,7 +72,7 @@
  * This handles the memory map.
  */
 #ifndef PAGE_OFFSET
-#define PAGE_OFFSET            CAC_BASE
+#define PAGE_OFFSET            (CAC_BASE + PHYS_OFFSET)
 #endif
 
 #endif /* __ASM_MACH_GENERIC_SPACES_H */