mpfs/mpfs_shead.S: Remove MMU mappings and flush TLB upon boot
This fixes warm reset crash when trying to access memory via old stale MMU mappings
This commit is contained in:
parent
d8a61108cf
commit
37bf542c9e
1 changed files with 5 additions and 0 deletions
|
|
@ -84,6 +84,11 @@ __start:
|
|||
la gp, __global_pointer$
|
||||
.option pop
|
||||
|
||||
/* Remove MMU mappings (if any) and flush TLB */
|
||||
|
||||
csrw satp, zero
|
||||
sfence.vma x0, x0
|
||||
|
||||
/* Make sure the writes to CSR stick before continuing */
|
||||
|
||||
fence
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue