kalloc/kfree now only a page at a time

do not keep sorted contiguous free list
This commit is contained in:
Robert Morris 2010-08-31 12:54:47 -04:00
parent 81b30b14d6
commit 7d7dc9331b
9 changed files with 46 additions and 91 deletions

2
mmu.h
View file

@ -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