summaryrefslogtreecommitdiff
path: root/kernel/riscv.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/riscv.h')
-rw-r--r--kernel/riscv.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/riscv.h b/kernel/riscv.h
index 63f71b4..0f83db6 100644
--- a/kernel/riscv.h
+++ b/kernel/riscv.h
@@ -257,7 +257,7 @@ r_time()
return x;
}
-// enable interrupts
+// enable device interrupts
static inline void
intr_on()
{
@@ -265,14 +265,14 @@ intr_on()
w_sstatus(r_sstatus() | SSTATUS_SIE);
}
-// disable interrupts
+// disable device interrupts
static inline void
intr_off()
{
w_sstatus(r_sstatus() & ~SSTATUS_SIE);
}
-// are interrupts enabled?
+// are device interrupts enabled?
static inline int
intr_get()
{