Skip to content

Commit

Permalink
fix(tbl): write back original vttbr
Browse files Browse the repository at this point in the history
Signed-off-by: Xiongfei Liu <[email protected]>
  • Loading branch information
ubx1szh committed Jul 12, 2024
1 parent 59a293c commit 2e6ceb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arch/armv8/armv8-a/inc/arch/tlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static inline void tlb_vm_inv_all(asid_t vmid)

if (switch_vmid) {
DSB(ish);
sysreg_vttbr_el2_write(((uint64_t)vmid << VTTBR_VMID_OFF) & VTTBR_VMID_MSK);
sysreg_vttbr_el2_write(vttbr);
}
}

Expand Down

0 comments on commit 2e6ceb7

Please sign in to comment.