summaryrefslogtreecommitdiffstats
path: root/arch/xtensa
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2012-12-10 22:26:24 +0100
committerChris Zankel <chris@zankel.net>2012-12-19 06:10:25 +0100
commitec747b21c7c709a712e5eee0b4d4326d755d58b5 (patch)
tree9f33109223bc7c04abdc8b2dabd19c259d60147e /arch/xtensa
parentxtensa: initialize CPENABLE SR when core has one (diff)
downloadlinux-ec747b21c7c709a712e5eee0b4d4326d755d58b5.tar.xz
linux-ec747b21c7c709a712e5eee0b4d4326d755d58b5.zip
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)
/* Set rasid register to a known value. */
- set_rasid_register(ASID_USER_FIRST);
+ set_rasid_register(ASID_INSERT(ASID_USER_FIRST));
/* Set PTEVADDR special register to the start of the page
* table, which is in kernel mappable space (ie. not