提交 db385015 编写于 作者: F Franck Bui-Huu 提交者: Ralf Baechle

[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: NFranck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 c4612c85
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
* This handles the memory map. * This handles the memory map.
*/ */
#ifndef PAGE_OFFSET #ifndef PAGE_OFFSET
#define PAGE_OFFSET CAC_BASE #define PAGE_OFFSET (CAC_BASE + PHYS_OFFSET)
#endif #endif
#endif /* __ASM_MACH_GENERIC_SPACES_H */ #endif /* __ASM_MACH_GENERIC_SPACES_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册