From a9c1a6f742886a9d45e5c625cf4f9b1b5c7a8cc4 Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Mon, 3 Jun 2019 14:13:07 -0400 Subject: takes one uart input interrupt, then panics --- memlayout.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'memlayout.h') diff --git a/memlayout.h b/memlayout.h index 9bc9c5d..9782ff1 100644 --- a/memlayout.h +++ b/memlayout.h @@ -13,9 +13,12 @@ // end -- start of kernel page allocation area // PHYSTOP -- end RAM used by the kernel -// registers start here in physical memory. +// qemu puts UART registers here in physical memory. #define UART0 0x10000000L +// qemu puts programmable interrupt controller here. +#define PLIC 0x0c000000L + #define RAMDISK 0x88000000 // the kernel expects there to be RAM -- cgit v1.2.3