xtensa: fix RASID SR initialization
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 10 Dec 2012 21:26:24 +0000 (01:26 +0400)
committerChris Zankel <chris@zankel.net>
Wed, 19 Dec 2012 05:10:25 +0000 (21:10 -0800)
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>
arch/xtensa/mm/mmu.c

index ca81654f3ec2c34e95f9ec8585c050ad1324f161..0f77f9d3bb8b8d579db17b1a1f4e61f360577b44 100644 (file)
@@ -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