summaryrefslogtreecommitdiff
path: root/kernel/riscv.h
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2022-08-09 12:14:29 -0400
committerRobert Morris <[email protected]>2022-08-09 12:14:29 -0400
commitcf0c095721b22b8ce011484a2509cd27858cbe77 (patch)
tree10363cb3a1fe3ca06d9ff41a2fe6fbb0a7da8fd6 /kernel/riscv.h
parent9fc9f755e1f9ec56a452b334f6112028e0ec0329 (diff)
downloadxv6-labs-cf0c095721b22b8ce011484a2509cd27858cbe77.tar.gz
xv6-labs-cf0c095721b22b8ce011484a2509cd27858cbe77.tar.bz2
xv6-labs-cf0c095721b22b8ce011484a2509cd27858cbe77.zip
sscratch cleanup
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)
{