summaryrefslogtreecommitdiff
path: root/kernel/riscv.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/riscv.h')
-rw-r--r--kernel/riscv.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/kernel/riscv.h b/kernel/riscv.h
index 1f8a503..d758845 100644
--- a/kernel/riscv.h
+++ b/kernel/riscv.h
@@ -216,13 +216,6 @@ r_satp()
return x;
}
-// Supervisor Scratch register, for early trap handler in trampoline.S.
-static inline void
-w_sscratch(uint64 x)
-{
- asm volatile("csrw sscratch, %0" : : "r" (x));
-}
-
static inline void
w_mscratch(uint64 x)
{