Simplify inituvm and userinit by assuming initcode fits on a page

This commit is contained in:
Austin Clements 2010-09-02 15:37:05 -04:00
parent b3cfd7fc37
commit f53e6110be
3 changed files with 10 additions and 19 deletions

2
defs.h
View file

@ -160,7 +160,7 @@ char* uva2ka(pde_t*, char*);
int allocuvm(pde_t*, char*, uint);
int deallocuvm(pde_t *pgdir, char *addr, uint sz);
void freevm(pde_t*);
void inituvm(pde_t*, char*, char*, uint);
void inituvm(pde_t*, char*, uint);
int loaduvm(pde_t*, char*, struct inode *ip, uint, uint);
pde_t* copyuvm(pde_t*,uint);
void switchuvm(struct proc*);