projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b85d459
)
xtensa: nommu: fix USER_RING definition
author
Max Filippov
<jcmvbkbc@gmail.com>
Sun, 20 Sep 2015 11:45:37 +0000
(14:45 +0300)
committer
Max Filippov
<jcmvbkbc@gmail.com>
Mon, 2 Nov 2015 15:02:58 +0000
(18:02 +0300)
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>
arch/xtensa/include/asm/pgtable.h
patch
|
blob
|
history
diff --git
a/arch/xtensa/include/asm/pgtable.h
b/arch/xtensa/include/asm/pgtable.h
index
a5e929a
..
fb02fdc
100644
(file)
--- a/
arch/xtensa/include/asm/pgtable.h
+++ b/
arch/xtensa/include/asm/pgtable.h
@@
-18,7
+18,11
@@
* We only use two ring levels, user and kernel space.
*/
+#ifdef CONFIG_MMU
#define USER_RING 1 /* user ring level */
+#else
+#define USER_RING 0
+#endif
#define KERNEL_RING 0 /* kernel ring level */
/*