summaryrefslogtreecommitdiff
path: root/sys/include/sbi.h
diff options
context:
space:
mode:
authorstefan <stefan@s00.xyz>2023-04-29 17:37:05 -0400
committerstefan <stefan@s00.xyz>2023-04-29 17:37:05 -0400
commit2a20e3596a446df55cfe4b34b45b4cd8eae594db (patch)
treed64632a8d804a9af9b1cbda49bb9f8d763d93719 /sys/include/sbi.h
parenta3c174ee4c08d1d5e7a89ce187f52e3c0807a7eb (diff)
downloadsv-2a20e3596a446df55cfe4b34b45b4cd8eae594db.tar.gz
some work on paging
Diffstat (limited to 'sys/include/sbi.h')
-rw-r--r--sys/include/sbi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/include/sbi.h b/sys/include/sbi.h
index 86ca295..7430bc6 100644
--- a/sys/include/sbi.h
+++ b/sys/include/sbi.h
@@ -67,6 +67,12 @@ sbi_debug_console_write_byte(uint8_t byte)
}
static inline void
+sbi_remote_sfence_vma(unsigned long hart_mask, unsigned long hart_mask_base, unsigned long start_addr, unsigned long size)
+{
+ sbi_ecall(0x52464E43, 1, hart_mask, hart_mask_base, start_addr, size, 0, 0);
+}
+
+static inline void
sbi_shutdown(void)
{
sbi_ecall(8, 0, 0, 0, 0, 0, 0, 0);