From: Franck Bui-Huu Date: Mon, 4 Jun 2007 15:46:33 +0000 (+0200) Subject: [MIPS] Make PAGE_OFFSET aware of PHYS_OFFSET X-Git-Tag: v2.6.23-rc1~1153^2~44 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=db38501511a7513ec4f0ae9922d847c135cf3c78;p=linux-2.6-omap-h63xx.git [MIPS] Make PAGE_OFFSET aware of PHYS_OFFSET 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 Signed-off-by: Ralf Baechle --- diff --git a/include/asm-mips/mach-generic/spaces.h b/include/asm-mips/mach-generic/spaces.h index d901e084a47..f0571b65194 100644 --- a/include/asm-mips/mach-generic/spaces.h +++ b/include/asm-mips/mach-generic/spaces.h @@ -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 */