mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 17:54:13 +08:00
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>
This commit is contained in:
parent
b85d459479
commit
cfedf08b0c
@ -18,7 +18,11 @@
|
|||||||
* We only use two ring levels, user and kernel space.
|
* We only use two ring levels, user and kernel space.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef CONFIG_MMU
|
||||||
#define USER_RING 1 /* user ring level */
|
#define USER_RING 1 /* user ring level */
|
||||||
|
#else
|
||||||
|
#define USER_RING 0
|
||||||
|
#endif
|
||||||
#define KERNEL_RING 0 /* kernel ring level */
|
#define KERNEL_RING 0 /* kernel ring level */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user