diff options
author | Frans Kaashoek <[email protected]> | 2011-09-01 10:25:20 -0400 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2011-09-01 10:25:20 -0400 |
commit | e25b74ca8069e340c3f2c267d09beed6d9328250 (patch) | |
tree | 81489f3133ad678a0ccd9ff4e0afcffd84cc6173 /mmu.h | |
parent | 15997d58497f4c716c227787acf9591439e5fe9c (diff) | |
download | xv6-labs-e25b74ca8069e340c3f2c267d09beed6d9328250.tar.gz xv6-labs-e25b74ca8069e340c3f2c267d09beed6d9328250.tar.bz2 xv6-labs-e25b74ca8069e340c3f2c267d09beed6d9328250.zip |
Fix layout issues for printed version
Diffstat (limited to 'mmu.h')
-rw-r--r-- | mmu.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -118,13 +118,13 @@ struct segdesc { #define PGADDR(d, t, o) ((uint)((d) << PDXSHIFT | (t) << PTXSHIFT | (o))) // Page directory and page table constants. -#define NPDENTRIES 1024 // page directory entries per page directory -#define NPTENTRIES 1024 // page table entries per page table -#define PGSIZE 4096 // bytes mapped by a page +#define NPDENTRIES 1024 // # directory entries per page directory +#define NPTENTRIES 1024 // # PTEs per page table +#define PGSIZE 4096 // bytes mapped by a page -#define PGSHIFT 12 // log2(PGSIZE) -#define PTXSHIFT 12 // offset of PTX in a linear address -#define PDXSHIFT 22 // offset of PDX in a linear address +#define PGSHIFT 12 // log2(PGSIZE) +#define PTXSHIFT 12 // offset of PTX in a linear address +#define PDXSHIFT 22 // offset of PDX in a linear address #define PGROUNDUP(sz) (((sz)+PGSIZE-1) & ~(PGSIZE-1)) #define PGROUNDDOWN(a) (((a)) & ~(PGSIZE-1)) |