summaryrefslogtreecommitdiff
path: root/memlayout.h
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2019-06-03 14:13:07 -0400
committerRobert Morris <[email protected]>2019-06-03 14:13:07 -0400
commita9c1a6f742886a9d45e5c625cf4f9b1b5c7a8cc4 (patch)
treeff50c8aa95dbdc5f35954e586933ad63676c69c4 /memlayout.h
parent50cbc7510250a64674d619d13f5912edf08b767d (diff)
downloadxv6-labs-a9c1a6f742886a9d45e5c625cf4f9b1b5c7a8cc4.tar.gz
xv6-labs-a9c1a6f742886a9d45e5c625cf4f9b1b5c7a8cc4.tar.bz2
xv6-labs-a9c1a6f742886a9d45e5c625cf4f9b1b5c7a8cc4.zip
takes one uart input interrupt, then panics
Diffstat (limited to 'memlayout.h')
-rw-r--r--memlayout.h5
1 files changed, 4 insertions, 1 deletions
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