summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2020-10-03 10:21:04 -0400
committerFrans Kaashoek <[email protected]>2020-10-03 10:21:04 -0400
commit1c4b582fc74a3b6192f7a1aba1c667b1b5e840bd (patch)
tree320d01bca4eb3b20ce3e67365adb618672dc9a98
parentd9c7b13acce9ac17e550ec02799edf8da059d78a (diff)
downloadxv6-labs-1c4b582fc74a3b6192f7a1aba1c667b1b5e840bd.tar.gz
xv6-labs-1c4b582fc74a3b6192f7a1aba1c667b1b5e840bd.tar.bz2
xv6-labs-1c4b582fc74a3b6192f7a1aba1c667b1b5e840bd.zip
Clarify CLINT and PLIC acronym
-rw-r--r--kernel/memlayout.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/memlayout.h b/kernel/memlayout.h
index b6e595d..776f98c 100644
--- a/kernel/memlayout.h
+++ b/kernel/memlayout.h
@@ -25,12 +25,12 @@
#define VIRTIO0 0x10001000
#define VIRTIO0_IRQ 1
-// local interrupt controller, which contains the timer.
+// core local interruptor (CLINT), which contains the timer.
#define CLINT 0x2000000L
#define CLINT_MTIMECMP(hartid) (CLINT + 0x4000 + 8*(hartid))
#define CLINT_MTIME (CLINT + 0xBFF8) // cycles since boot.
-// qemu puts programmable interrupt controller here.
+// qemu puts platform-level interrupt controller (PLIC) here.
#define PLIC 0x0c000000L
#define PLIC_PRIORITY (PLIC + 0x0)
#define PLIC_PENDING (PLIC + 0x1000)