diff options
author | Frans Kaashoek <[email protected]> | 2011-08-16 15:47:22 -0400 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2011-08-16 15:47:22 -0400 |
commit | c3dcf479663bc1bc9144c39ba2dd7607ea9c1c52 (patch) | |
tree | f3c00fcd2a86748a615edb8f01ed56c45dd9f474 /memlayout.h | |
parent | 427958cb71e485cec4e7c68b280b506e555dd8e0 (diff) | |
download | xv6-labs-c3dcf479663bc1bc9144c39ba2dd7607ea9c1c52.tar.gz xv6-labs-c3dcf479663bc1bc9144c39ba2dd7607ea9c1c52.tar.bz2 xv6-labs-c3dcf479663bc1bc9144c39ba2dd7607ea9c1c52.zip |
Clean up memlayout.h
Get rid of last instances of linear address and "la"
Get ready for detecting physical memory dynamically
Diffstat (limited to 'memlayout.h')
-rw-r--r-- | memlayout.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/memlayout.h b/memlayout.h index 1496678..79429a9 100644 --- a/memlayout.h +++ b/memlayout.h @@ -1,17 +1,12 @@ // Memory layout -#define PGSIZE 4096 // bytes mapped by a page -#define PGSHIFT 12 // log2(PGSIZE) - -#define KSTKSIZE (8*PGSIZE) // size of a kernel stack - -#define DEVSPACE 0xFE000000 // other devices are in the top of the phys address space -#define PHYSTOP 0xE000000 // use phys mem up to here as free pool +#define EXTMEM 0x100000 // Start of extended memory +#define DEVSPACE 0xFE000000 // Other devices are at high addresses // Key addresses for address space layout (see kmap in vm.c for the layout) -#define KERNBASE 0xF0000000 // First kernel virtual address +#define KERNBASE 0xF0000000 // First kernel virtual address #define USERTOP (KERNBASE-PGSIZE) // Highest user virtual address -#define KERNLINK 0xF0100000 // Address where kernel is linked +#define KERNLINK (KERNBASE+EXTMEM) // Address where kernel is linked #ifndef __ASSEMBLER__ |