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
5
defs.h
5
defs.h
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue