Simplify allocuvm/deallocuvm to operate in a contiguous memory model. This makes their interface match up better with proc->sz and also simplifies the callers (it even gets the main body of exec on one page).
This commit is contained in:
parent
d49d31381d
commit
79cd8b3eed
4 changed files with 44 additions and 51 deletions
4
defs.h
4
defs.h
|
|
@ -157,8 +157,8 @@ void kvmalloc(void);
|
|||
void vmenable(void);
|
||||
pde_t* setupkvm(void);
|
||||
char* uva2ka(pde_t*, char*);
|
||||
int allocuvm(pde_t*, char*, uint);
|
||||
int deallocuvm(pde_t *pgdir, char *addr, uint sz);
|
||||
int allocuvm(pde_t*, uint, uint);
|
||||
int deallocuvm(pde_t*, uint, uint);
|
||||
void freevm(pde_t*);
|
||||
void inituvm(pde_t*, char*, uint);
|
||||
int loaduvm(pde_t*, char*, struct inode *ip, uint, uint);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue