Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[MIPS] Move PHY_OFFSET definition in spaces.h

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Franck Bui-Huu and committed by
Ralf Baechle
41b0483e db385015

+9 -9
+7
include/asm-mips/mach-generic/spaces.h
··· 12 12 13 13 #include <linux/const.h> 14 14 15 + /* 16 + * This gives the physical RAM offset. 17 + */ 18 + #ifndef PHYS_OFFSET 19 + #define PHYS_OFFSET _AC(0, UL) 20 + #endif 21 + 15 22 #ifdef CONFIG_32BIT 16 23 17 24 #define CAC_BASE _AC(0x80000000, UL)
+2 -9
include/asm-mips/page.h
··· 34 34 35 35 #ifndef __ASSEMBLY__ 36 36 37 - /* 38 - * This gives the physical RAM offset. 39 - */ 40 - #ifndef PHYS_OFFSET 41 - #define PHYS_OFFSET 0UL 42 - #endif 37 + #include <linux/pfn.h> 38 + #include <linux/io.h> 43 39 44 40 /* 45 41 * It's normally defined only for FLATMEM config but it's ··· 43 47 * So always define it. 44 48 */ 45 49 #define ARCH_PFN_OFFSET PFN_UP(PHYS_OFFSET) 46 - 47 - #include <linux/pfn.h> 48 - #include <asm/io.h> 49 50 50 51 extern void clear_page(void * page); 51 52 extern void copy_page(void * to, void * from);