]> www.infradead.org Git - users/willy/xarray.git/commitdiff
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)
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

index 3b054d2bede01c48ea583eef794a605254899daf..e3e1d9a1ef698a6729bd8c8be7383fc410d0fe99 100644 (file)
@@ -23,6 +23,7 @@
 #ifndef _XTENSA_INITIALIZE_MMU_H
 #define _XTENSA_INITIALIZE_MMU_H
 
+#include <linux/init.h>
 #include <asm/pgtable.h>
 #include <asm/vectors.h>
 
 #endif
 
 #if XCHAL_HAVE_MPU
-       .data
+       __REFCONST
        .align  4
 .Lattribute_table:
        .long 0x000000, 0x1fff00, 0x1ddf00, 0x1eef00