summaryrefslogtreecommitdiff
path: root/mmu.h
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2010-08-31 13:58:50 -0400
committerFrans Kaashoek <[email protected]>2010-08-31 13:58:50 -0400
commit9acdfe0d04f3fcf95c6e392e08afb45bdfe16c20 (patch)
tree4c9d10f56fe4f69b97820ef94db93f30acda6e65 /mmu.h
parent791d81cadeb3b30ad6ec67c61086c6747f3d5ca2 (diff)
parent7d7dc9331bf33f77c9c3a71350782dadae8dd371 (diff)
downloadxv6-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mmu.h b/mmu.h
index f4fc732..db40f25 100644
--- a/mmu.h
+++ b/mmu.h
@@ -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