From f1a727b971a59bab6025b4c4111342c27356ca40 Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Wed, 5 Jun 2019 11:42:03 -0400 Subject: start at support for multiple CPUs --- memlayout.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'memlayout.h') 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. -- cgit v1.2.3