allow sbrk(-x) to de-allocate user memory

This commit is contained in:
Robert Morris 2010-08-10 17:08:41 -04:00
parent c4cc10da7e
commit 83d2db91f7
4 changed files with 89 additions and 4 deletions

1
defs.h
View file

@ -159,6 +159,7 @@ void vminit(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);
void freevm(pde_t*);
void inituvm(pde_t*, char*, char*, uint);
int loaduvm(pde_t*, char*, struct inode *ip, uint, uint);