diff options
Diffstat (limited to 'sys/include/asm.h')
-rw-r--r-- | sys/include/asm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/include/asm.h b/sys/include/asm.h index 0995f88..d345712 100644 --- a/sys/include/asm.h +++ b/sys/include/asm.h @@ -53,4 +53,10 @@ read_tp(void) return x; } +static inline void +csrw_satp(uint64_t x) +{ + asm volatile("csrw satp, %0" : : "r"(x)); +} + #endif /* _ASM_H */ |