1
0
mirror of https://github.com/rcore-os/rCore.git synced 2024-11-22 08:06:17 +04:00

Fixed RISC-V tlb not flushed during context switch

Added a missing SFENCE.VMA
This commit is contained in:
Liu Xiaoyi 2020-06-08 16:39:46 +08:00 committed by GitHub
parent 2a7d48b528
commit b41147f436
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,6 +185,7 @@ impl Context {
Load sp, 0(a1)
Load s11, 1*XLENB(sp)
csrw satp, s11
sfence.vma
Load ra, 0*XLENB(sp)
Load s0, 2*XLENB(sp)
Load s1, 3*XLENB(sp)