diff options
author | Frans Kaashoek <[email protected]> | 2010-08-31 13:58:50 -0400 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2010-08-31 13:58:50 -0400 |
commit | 9acdfe0d04f3fcf95c6e392e08afb45bdfe16c20 (patch) | |
tree | 4c9d10f56fe4f69b97820ef94db93f30acda6e65 /mmu.h | |
parent | 791d81cadeb3b30ad6ec67c61086c6747f3d5ca2 (diff) | |
parent | 7d7dc9331bf33f77c9c3a71350782dadae8dd371 (diff) | |
download | xv6-labs-9acdfe0d04f3fcf95c6e392e08afb45bdfe16c20.tar.gz xv6-labs-9acdfe0d04f3fcf95c6e392e08afb45bdfe16c20.tar.bz2 xv6-labs-9acdfe0d04f3fcf95c6e392e08afb45bdfe16c20.zip |
Merge branch 'page' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6 into page
Diffstat (limited to 'mmu.h')
-rw-r--r-- | mmu.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -112,7 +112,7 @@ struct segdesc { #define PDXSHIFT 22 // offset of PDX in a linear address #define PGROUNDUP(sz) (((sz)+PGSIZE-1) & ~(PGSIZE-1)) -#define PGROUNDDOWN(a) ((char*)((((unsigned int)a) & ~(PGSIZE-1)))) +#define PGROUNDDOWN(a) ((char*)((((unsigned int)(a)) & ~(PGSIZE-1)))) // Page table/directory entry flags. #define PTE_P 0x001 // Present |