diff options
author | Frans Kaashoek <[email protected]> | 2011-08-16 20:23:17 -0400 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2011-08-16 20:23:17 -0400 |
commit | 5f069dcf2f9d833a6c4f58ed87269d61c6abb687 (patch) | |
tree | 4756e313b7681bbbb4a4c2d1879031bee6130681 /memlayout.h | |
parent | c3dcf479663bc1bc9144c39ba2dd7607ea9c1c52 (diff) | |
download | xv6-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.h | 1 |
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) |