kalloc/kfree now only a page at a time
do not keep sorted contiguous free list
This commit is contained in:
parent
81b30b14d6
commit
7d7dc9331b
9 changed files with 46 additions and 91 deletions
2
mmu.h
2
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue