aboutsummaryrefslogtreecommitdiffstats
path: root/arch/xtensa
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2012-12-10 16:26:24 -0500
committerChris Zankel <chris@zankel.net>2012-12-19 00:10:25 -0500
commitec747b21c7c709a712e5eee0b4d4326d755d58b5 (patch)
tree9f33109223bc7c04abdc8b2dabd19c259d60147e /arch/xtensa
parenteab5e7a79d1bb3d607dabf022bfad9f46d1e3ac8 (diff)
xtensa: fix RASID SR initialization
set_rasid_register accepts new RASID SR value, but ASID_USER_FIRST is ASID value for the ring 1; RASID value is made by ASID_INSERT macro. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch/xtensa')
-rw-r--r--arch/xtensa/mm/mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/mm/mmu.c b/arch/xtensa/mm/mmu.c
index ca81654f3ec2..0f77f9d3bb8b 100644
--- a/arch/xtensa/mm/mmu.c
+++ b/arch/xtensa/mm/mmu.c
@@ -37,7 +37,7 @@ void __init init_mmu(void)
37 37
38 /* Set rasid register to a known value. */ 38 /* Set rasid register to a known value. */
39 39
40 set_rasid_register(ASID_USER_FIRST); 40 set_rasid_register(ASID_INSERT(ASID_USER_FIRST));
41 41
42 /* Set PTEVADDR special register to the start of the page 42 /* Set PTEVADDR special register to the start of the page
43 * table, which is in kernel mappable space (ie. not 43 * table, which is in kernel mappable space (ie. not