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

xtensa: move init_mmu declaration to mmu_context.h

Secondary CPUs need this declaration to initialize their MMUs.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>

authored by

Max Filippov and committed by
Chris Zankel
c8f3a7dc 59970753

+7 -6
+6
arch/xtensa/include/asm/mmu_context.h
··· 49 49 #define ASID_MASK ((1 << XCHAL_MMU_ASID_BITS) - 1) 50 50 #define ASID_INSERT(x) (0x03020001 | (((x) & ASID_MASK) << 8)) 51 51 52 + #ifdef CONFIG_MMU 53 + void init_mmu(void); 54 + #else 55 + static inline void init_mmu(void) { } 56 + #endif 57 + 52 58 static inline void set_rasid_register (unsigned long val) 53 59 { 54 60 __asm__ __volatile__ (" wsr %0, rasid\n\t"
+1 -6
arch/xtensa/kernel/setup.c
··· 37 37 #endif 38 38 39 39 #include <asm/bootparam.h> 40 + #include <asm/mmu_context.h> 40 41 #include <asm/pgtable.h> 41 42 #include <asm/processor.h> 42 43 #include <asm/timex.h> ··· 85 84 #endif 86 85 87 86 sysmem_info_t __initdata sysmem; 88 - 89 - #ifdef CONFIG_MMU 90 - extern void init_mmu(void); 91 - #else 92 - static inline void init_mmu(void) { } 93 - #endif 94 87 95 88 extern int mem_reserve(unsigned long, unsigned long, int); 96 89 extern void bootmem_init(void);