mmu/riscv64: implement global page mapping support
ASID allocation is not supported yet, so always use ASID 0 for user pages for now. Change-Id: I021e77dae692c22984bc625dd0588362bece45b7 Reviewed-on: https://review.haiku-os.org/c/haiku/+/6698 Tested-by: Commit checker robot <[email protected]> Reviewed-by: Adrien Destugues <[email protected]> Reviewed-by: Alex von Gluck IV <[email protected]>
This commit is contained in:
@@ -256,7 +256,7 @@ static B_ALWAYS_INLINE void FlushTlbPage(uint64 x) {
|
||||
static B_ALWAYS_INLINE void FlushTlbAllAsid(uint64 asid) {
|
||||
asm volatile("sfence.vma x0, %0" : : "r" (asid) : "memory");}
|
||||
static B_ALWAYS_INLINE void FlushTlbPageAsid(uint64 page, uint64 asid) {
|
||||
asm volatile("sfence.vma %0, %0" : : "r" (page), "r" (asid) : "memory");}
|
||||
asm volatile("sfence.vma %0, %1" : : "r" (page), "r" (asid) : "memory");}
|
||||
|
||||
// flush instruction cache
|
||||
static B_ALWAYS_INLINE void FenceI() {
|
||||
|
||||
Reference in New Issue
Block a user