diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2017-12-15 20:45:35 -0800 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2017-12-16 22:37:10 -0800 |
commit | c2edb35ae342fedb5a39312c0fa676b74973887a (patch) | |
tree | a5684736d06f5073522c9126cc3f836b7593dad8 /arch/xtensa/include | |
parent | 501c26e82df8d253851b80082778eeb37e4bab5c (diff) | |
download | op-kernel-dev-c2edb35ae342fedb5a39312c0fa676b74973887a.zip op-kernel-dev-c2edb35ae342fedb5a39312c0fa676b74973887a.tar.gz |
xtensa: extract init_kio
KIO region placement may be specified in the device tree, that's why
it's initialized with the rest of MMU after the early_init_devtree. In
order to support KASAN the MMU must be initialized earlier.
Separate KIO initialization from the rest of MMU initialization.
Reinitialize KIO if its location is specified in the device tree.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/include')
-rw-r--r-- | arch/xtensa/include/asm/mmu_context.h | 1 | ||||
-rw-r--r-- | arch/xtensa/include/asm/nommu_context.h | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/mmu_context.h b/arch/xtensa/include/asm/mmu_context.h index f7e186d..de5e6cb 100644 --- a/arch/xtensa/include/asm/mmu_context.h +++ b/arch/xtensa/include/asm/mmu_context.h @@ -52,6 +52,7 @@ DECLARE_PER_CPU(unsigned long, asid_cache); #define ASID_INSERT(x) (0x03020001 | (((x) & ASID_MASK) << 8)) void init_mmu(void); +void init_kio(void); static inline void set_rasid_register (unsigned long val) { diff --git a/arch/xtensa/include/asm/nommu_context.h b/arch/xtensa/include/asm/nommu_context.h index 2cebdbb..37251b2 100644 --- a/arch/xtensa/include/asm/nommu_context.h +++ b/arch/xtensa/include/asm/nommu_context.h @@ -3,6 +3,10 @@ static inline void init_mmu(void) { } +static inline void init_kio(void) +{ +} + static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) { } |