diff options
author | Franck Bui-Huu <fbuihuu@gmail.com> | 2007-06-04 11:46:33 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-07-10 12:32:57 -0400 |
commit | db38501511a7513ec4f0ae9922d847c135cf3c78 (patch) | |
tree | 4f951e755c4084c6097ae81dce15a4b6b9c9c947 /include | |
parent | c4612c8596084c898628bd1898da5987ec43ac1d (diff) |
[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 <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-mips/mach-generic/spaces.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-mips/mach-generic/spaces.h b/include/asm-mips/mach-generic/spaces.h index d901e084a479..f0571b651940 100644 --- a/include/asm-mips/mach-generic/spaces.h +++ b/include/asm-mips/mach-generic/spaces.h | |||
@@ -72,7 +72,7 @@ | |||
72 | * This handles the memory map. | 72 | * This handles the memory map. |
73 | */ | 73 | */ |
74 | #ifndef PAGE_OFFSET | 74 | #ifndef PAGE_OFFSET |
75 | #define PAGE_OFFSET CAC_BASE | 75 | #define PAGE_OFFSET (CAC_BASE + PHYS_OFFSET) |
76 | #endif | 76 | #endif |
77 | 77 | ||
78 | #endif /* __ASM_MACH_GENERIC_SPACES_H */ | 78 | #endif /* __ASM_MACH_GENERIC_SPACES_H */ |