From 7d7dc9331bf33f77c9c3a71350782dadae8dd371 Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Tue, 31 Aug 2010 12:54:47 -0400 Subject: kalloc/kfree now only a page at a time do not keep sorted contiguous free list --- mmu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mmu.h') 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 -- cgit v1.2.3