vmm/riscv: execute `sfence` after loading `satp`

This commit is contained in:
xvanc 2023-08-02 16:58:31 -05:00
parent 56cdc669bf
commit d7d4aea753
No known key found for this signature in database
2 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,7 @@ riscv_spinup:
add t0, t0, a3
csrw stvec, t0
csrw satp, a2
sfence.vma
unimp
.align 4
0:

View File

@ -30,6 +30,8 @@ smp_trampoline_start:
csrw stvec, t0
ld t0, smp_tpl_satp(a1)
csrw satp, t0
sfence.vma
unimp
0:
// Relocate the info struct to the higher half.
add a0, t1, a0