diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2013-10-17 00:42:21 +0200 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2014-01-14 19:19:56 +0100 |
commit | c8f3a7dc0102fc9f89cc373c6dd7beb49916a695 (patch) | |
tree | 686b9879c602063a10eb9b9b51e1532f40792a32 /arch/xtensa/include/asm | |
parent | xtensa: call check_s32c1i after trap_init (diff) | |
download | linux-c8f3a7dc0102fc9f89cc373c6dd7beb49916a695.tar.xz linux-c8f3a7dc0102fc9f89cc373c6dd7beb49916a695.zip |
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>
Diffstat (limited to 'arch/xtensa/include/asm')
-rw-r--r-- | arch/xtensa/include/asm/mmu_context.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/mmu_context.h b/arch/xtensa/include/asm/mmu_context.h index d43525a286bb..86292c28674f 100644 --- a/arch/xtensa/include/asm/mmu_context.h +++ b/arch/xtensa/include/asm/mmu_context.h @@ -49,6 +49,12 @@ extern unsigned long asid_cache; #define ASID_MASK ((1 << XCHAL_MMU_ASID_BITS) - 1) #define ASID_INSERT(x) (0x03020001 | (((x) & ASID_MASK) << 8)) +#ifdef CONFIG_MMU +void init_mmu(void); +#else +static inline void init_mmu(void) { } +#endif + static inline void set_rasid_register (unsigned long val) { __asm__ __volatile__ (" wsr %0, rasid\n\t" |