summaryrefslogtreecommitdiff
path: root/memlayout.h
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2011-08-16 20:23:17 -0400
committerFrans Kaashoek <[email protected]>2011-08-16 20:23:17 -0400
commit5f069dcf2f9d833a6c4f58ed87269d61c6abb687 (patch)
tree4756e313b7681bbbb4a4c2d1879031bee6130681 /memlayout.h
parentc3dcf479663bc1bc9144c39ba2dd7607ea9c1c52 (diff)
downloadxv6-labs-5f069dcf2f9d833a6c4f58ed87269d61c6abb687.tar.gz
xv6-labs-5f069dcf2f9d833a6c4f58ed87269d61c6abb687.tar.bz2
xv6-labs-5f069dcf2f9d833a6c4f58ed87269d61c6abb687.zip
Switch back to #define for PHYSTOP. Using the E820 to retrieve the memory map is too complicated (must be done in 16-bit real-mode, probably enlarged bootblock beyond 512 bytes, and a #define requires less explanation).
Diffstat (limited to 'memlayout.h')
-rw-r--r--memlayout.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/memlayout.h b/memlayout.h
index 79429a9..ad4fda2 100644
--- a/memlayout.h
+++ b/memlayout.h
@@ -1,6 +1,7 @@
// Memory layout
#define EXTMEM 0x100000 // Start of extended memory
+#define PHYSTOP 0xE000000 // Top physical memory (too hard to get from E820)
#define DEVSPACE 0xFE000000 // Other devices are at high addresses
// Key addresses for address space layout (see kmap in vm.c for the layout)