summaryrefslogtreecommitdiff
path: root/defs.h
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2010-08-10 17:08:41 -0400
committerRobert Morris <[email protected]>2010-08-10 17:08:41 -0400
commit83d2db91f75460e1275d67847adec0fca5a9800b (patch)
treecc8df8349ca1981e85d8e343dbf365b59f5eabd7 /defs.h
parentc4cc10da7ef6d65f0f654445e0af35b8309f16c2 (diff)
downloadxv6-labs-83d2db91f75460e1275d67847adec0fca5a9800b.tar.gz
xv6-labs-83d2db91f75460e1275d67847adec0fca5a9800b.tar.bz2
xv6-labs-83d2db91f75460e1275d67847adec0fca5a9800b.zip
allow sbrk(-x) to de-allocate user memory
Diffstat (limited to 'defs.h')
-rw-r--r--defs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/defs.h b/defs.h
index b691099..a051522 100644
--- a/defs.h
+++ b/defs.h
@@ -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);