diff options
| author | Robert Morris <rtm@csail.mit.edu> | 2019-07-26 10:17:02 -0400 |
|---|---|---|
| committer | Robert Morris <rtm@csail.mit.edu> | 2019-07-26 10:17:02 -0400 |
| commit | c714e3e35c98ed1fb13a8f1b52f6b1a03cfad783 (patch) | |
| tree | 0c780982a4f824c79d8f5511c99e1b096ce47286 /kernel/riscv.h | |
| parent | fa2e2e3c81b2686229acc204ece380953a8031ea (diff) | |
| download | xv6-labs-2022-c714e3e35c98ed1fb13a8f1b52f6b1a03cfad783.tar.xz xv6-labs-2022-c714e3e35c98ed1fb13a8f1b52f6b1a03cfad783.zip | |
machinevec -> timervec
Diffstat (limited to 'kernel/riscv.h')
| -rw-r--r-- | kernel/riscv.h | 6 |
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() { |
