summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/include/asm/pgtable.h
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2018-07-11 14:33:41 -0700
committerMax Filippov <jcmvbkbc@gmail.com>2018-07-11 15:59:41 -0700
commit2cc15e802b250a11ece57ea54f82993cf3430867 (patch)
treed67e3892c92e077bebeac05db22765376e8de5c1 /arch/xtensa/include/asm/pgtable.h
parentadbfa4e6f99689511f1079452508d9d22417544c (diff)
downloadtalos-obmc-linux-2cc15e802b250a11ece57ea54f82993cf3430867.tar.gz
talos-obmc-linux-2cc15e802b250a11ece57ea54f82993cf3430867.zip
xtensa: platform-specific handling of coherent memory
Memory layout is not fixed for noMMU xtensa configurations. Platforms that need to use coherent DMA should implement platform_vaddr_* helpers that check address type (cached/uncached) and convert addresses between these types. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/include/asm/pgtable.h')
-rw-r--r--arch/xtensa/include/asm/pgtable.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/pgtable.h b/arch/xtensa/include/asm/pgtable.h
index 38802259978f..29cfe421cf41 100644
--- a/arch/xtensa/include/asm/pgtable.h
+++ b/arch/xtensa/include/asm/pgtable.h
@@ -66,6 +66,7 @@
#define FIRST_USER_ADDRESS 0UL
#define FIRST_USER_PGD_NR (FIRST_USER_ADDRESS >> PGDIR_SHIFT)
+#ifdef CONFIG_MMU
/*
* Virtual memory area. We keep a distance to other memory regions to be
* on the safe side. We also use this area for cache aliasing.
@@ -80,6 +81,13 @@
#define TLBTEMP_SIZE ICACHE_WAY_SIZE
#endif
+#else
+
+#define VMALLOC_START __XTENSA_UL_CONST(0)
+#define VMALLOC_END __XTENSA_UL_CONST(0xffffffff)
+
+#endif
+
/*
* For the Xtensa architecture, the PTE layout is as follows:
*
OpenPOWER on IntegriCloud