|
@@ -122,13 +122,6 @@ static inline void mmu_clear_feature(unsigned long feature)
|
|
|
|
|
|
extern unsigned int __start___mmu_ftr_fixup, __stop___mmu_ftr_fixup;
|
|
|
|
|
|
-/* MMU initialization */
|
|
|
-extern void early_init_mmu(void);
|
|
|
-extern void early_init_mmu_secondary(void);
|
|
|
-
|
|
|
-extern void setup_initial_memory_limit(phys_addr_t first_memblock_base,
|
|
|
- phys_addr_t first_memblock_size);
|
|
|
-
|
|
|
#ifdef CONFIG_PPC64
|
|
|
/* This is our real memory area size on ppc64 server, on embedded, we
|
|
|
* make it match the size our of bolted TLB area
|
|
@@ -185,6 +178,13 @@ static inline void assert_pte_locked(struct mm_struct *mm, unsigned long addr)
|
|
|
#include <asm/book3s/64/mmu.h>
|
|
|
#else /* CONFIG_PPC_BOOK3S_64 */
|
|
|
|
|
|
+#ifndef __ASSEMBLY__
|
|
|
+/* MMU initialization */
|
|
|
+extern void early_init_mmu(void);
|
|
|
+extern void early_init_mmu_secondary(void);
|
|
|
+extern void setup_initial_memory_limit(phys_addr_t first_memblock_base,
|
|
|
+ phys_addr_t first_memblock_size);
|
|
|
+#endif /* __ASSEMBLY__ */
|
|
|
#endif
|
|
|
|
|
|
#if defined(CONFIG_PPC_STD_MMU_32)
|