summaryrefslogtreecommitdiff
path: root/boards
diff options
context:
space:
mode:
authorNathan Ringo <nathan@remexre.com>2024-09-04 02:19:32 -0500
committerNathan Ringo <nathan@remexre.com>2024-09-04 02:19:32 -0500
commitcbee8b7dde708164081fdb979e2b96740ba516a6 (patch)
treef18bcf8da431d85fb09c4f3884de85a739edc860 /boards
parentc27e5ca6bf2b4040abd628ef59f8a3bc9326749c (diff)
Enables paging.
Diffstat (limited to 'boards')
-rw-r--r--boards/qemu-virt/qemu-virt.s3
1 files changed, 3 insertions, 0 deletions
diff --git a/boards/qemu-virt/qemu-virt.s b/boards/qemu-virt/qemu-virt.s
index bd32676..f0599da 100644
--- a/boards/qemu-virt/qemu-virt.s
+++ b/boards/qemu-virt/qemu-virt.s
@@ -60,6 +60,9 @@ _start:
li t0, -1
csrw pmpaddr0, t0
+ ## Since we adjusted PMP settings, we need to issue an SFENCE.VMA.
+ sfence.vma
+
## Jump to supervisor mode.
mret
.size _start, . - _start