Skip to content

Commit

Permalink
[MIPS] Make PAGE_OFFSET aware of PHYS_OFFSET
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Franck Bui-Huu authored and Ralf Baechle committed Jul 10, 2007
1 parent c4612c8 commit db38501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-mips/mach-generic/spaces.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit db38501

Please sign in to comment.