Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+4
+4
arch/xtensa/include/asm/pgtable.h
··· 18 18 * We only use two ring levels, user and kernel space. 19 19 */ 20 20 21 + #ifdef CONFIG_MMU 21 22 #define USER_RING 1 /* user ring level */ 23 + #else 24 + #define USER_RING 0 25 + #endif 22 26 #define KERNEL_RING 0 /* kernel ring level */ 23 27 24 28 /*