xtensa: extract init_kio
authorMax Filippov <jcmvbkbc@gmail.com>
Sat, 16 Dec 2017 04:45:35 +0000 (20:45 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Sun, 17 Dec 2017 06:37:10 +0000 (22:37 -0800)
commitc2edb35ae342fedb5a39312c0fa676b74973887a
treea5684736d06f5073522c9126cc3f836b7593dad8
parent501c26e82df8d253851b80082778eeb37e4bab5c
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>
arch/xtensa/include/asm/mmu_context.h
arch/xtensa/include/asm/nommu_context.h
arch/xtensa/kernel/setup.c
arch/xtensa/mm/mmu.c