diff options
| author | Robert Morris | 2010-08-31 12:54:47 -0400 |
|---|---|---|
| committer | Robert Morris | 2010-08-31 12:54:47 -0400 |
| commit | 7d7dc9331bf33f77c9c3a71350782dadae8dd371 (patch) | |
| tree | 4c9d10f56fe4f69b97820ef94db93f30acda6e65 /mmu.h | |
| parent | 81b30b14d6925a0f5c9eb114724457d90869949c (diff) | |
kalloc/kfree now only a page at a time
do not keep sorted contiguous free list
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 |
