aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2015-09-20 07:45:37 -0400
committerMax Filippov <jcmvbkbc@gmail.com>2015-11-02 10:02:58 -0500
commitcfedf08b0c09f325fa24d91e8c9433ec481800cf (patch)
treeb1c5c350907cbc7bd45a6ceb05f52930afb7a730
parentb85d45947951d23cb22d90caecf4c1eb81342c96 (diff)
xtensa: nommu: fix USER_RING definition
There's no kernel/user separation in noMMU and PS.RING may not exist. Even if it exists it should not be used because TLB entries are not set up for user ring on user pages. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
-rw-r--r--arch/xtensa/include/asm/pgtable.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/pgtable.h b/arch/xtensa/include/asm/pgtable.h
index a5e929a10c20..fb02fdc5ecee 100644
--- a/arch/xtensa/include/asm/pgtable.h
+++ b/arch/xtensa/include/asm/pgtable.h
@@ -18,7 +18,11 @@
18 * We only use two ring levels, user and kernel space. 18 * We only use two ring levels, user and kernel space.
19 */ 19 */
20 20
21#ifdef CONFIG_MMU
21#define USER_RING 1 /* user ring level */ 22#define USER_RING 1 /* user ring level */
23#else
24#define USER_RING 0
25#endif
22#define KERNEL_RING 0 /* kernel ring level */ 26#define KERNEL_RING 0 /* kernel ring level */
23 27
24/* 28/*