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

5
defs.h
View file

@ -60,9 +60,8 @@ extern uchar ioapicid;
void ioapicinit(void);
// kalloc.c
extern int nfreemem;
char* kalloc(int);
void kfree(char*, int);
char* kalloc(void);
void kfree(char*);
void kinit(char*,uint);
// kbd.c