vmm/riscv: execute `sfence` after loading `satp`
This commit is contained in:
parent
56cdc669bf
commit
d7d4aea753
|
@ -11,6 +11,7 @@ riscv_spinup:
|
|||
add t0, t0, a3
|
||||
csrw stvec, t0
|
||||
csrw satp, a2
|
||||
sfence.vma
|
||||
unimp
|
||||
.align 4
|
||||
0:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue