|
@@ -138,7 +138,7 @@ ENDPROC(cpu_do_resume)
|
|
|
* - pgd_phys - physical address of new TTB
|
|
* - pgd_phys - physical address of new TTB
|
|
|
*/
|
|
*/
|
|
|
ENTRY(cpu_do_switch_mm)
|
|
ENTRY(cpu_do_switch_mm)
|
|
|
- pre_ttbr0_update_workaround x0, x1, x2
|
|
|
|
|
|
|
+ pre_ttbr0_update_workaround x0, x2, x3
|
|
|
mmid x1, x1 // get mm->context.id
|
|
mmid x1, x1 // get mm->context.id
|
|
|
bfi x0, x1, #48, #16 // set the ASID
|
|
bfi x0, x1, #48, #16 // set the ASID
|
|
|
msr ttbr0_el1, x0 // set TTBR0
|
|
msr ttbr0_el1, x0 // set TTBR0
|