summaryrefslogtreecommitdiff
path: root/memlayout.h
diff options
context:
space:
mode:
start at support for multiple CPUs
Diffstat (limited to 'memlayout.h')
-rw-r--r--memlayout.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/memlayout.h b/memlayout.h
index db7c076..9c9cfdb 100644
--- a/memlayout.h
+++ b/memlayout.h
@@ -23,8 +23,7 @@
// local interrupt controller, which contains the timer.
#define CLINT 0x2000000L
-#define CLINT_MSIP0 (CLINT + 0x0)
-#define CLINT_MTIMECMP0 (CLINT + 0x4000)
+#define CLINT_MTIMECMP(hartid) (CLINT + 0x4000 + 8*(hartid))
#define CLINT_MTIME (CLINT + 0xBFF8)
// qemu puts programmable interrupt controller here.