xtensa: move MPU constants from .data to .ref.rodata
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 30 Sep 2019 02:55:09 +0000 (19:55 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 21 Oct 2019 06:48:29 +0000 (23:48 -0700)
commit6af4ab570db3dc71e877271a17e5e2b337e0bdc0
treeafac9687230f361ecfa6d6efc5733aa7f1c9e708
parent6591685d50043f615a1ad7ddd5bb263ef54808fc
xtensa: move MPU constants from .data to .ref.rodata

MPU attribute mapping table is R/O, move it from .data to __REFCONST
(as the rest of the _startup code where initialize_cacheattr is used is
in the __REF section). This allows executing initialize_cacheattr before
the data section of the XIP kernel is relocated to its place.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/include/asm/initialize_mmu.h