Skip to content

Commit

Permalink
xtensa: fix RASID SR initialization
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Max Filippov authored and Chris Zankel committed Dec 19, 2012
1 parent eab5e7a commit ec747b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/xtensa/mm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ec747b2

Please sign in to comment.