Skip to content

Commit

Permalink
xtensa: nommu: fix USER_RING definition
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Max Filippov committed Nov 2, 2015
1 parent b85d459 commit cfedf08
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/xtensa/include/asm/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

/*
Expand Down

0 comments on commit cfedf08

Please sign in to comment.