fix allocuvm() to handle sbrk() with non-page-granularity argument

(maybe this never worked, but it works now)
This commit is contained in:
Robert Morris 2010-08-05 12:10:54 -04:00
parent b738a4f1a2
commit eb18645f17
5 changed files with 65 additions and 13 deletions

2
defs.h
View file

@ -153,8 +153,6 @@ void uartintr(void);
void uartputc(int);
// vm.c
#define PGROUNDUP(sz) ((sz+PGSIZE-1) & ~(PGSIZE-1))
extern pde_t *kpgdir;
void pminit(void);
void ksegment(void);
void kvmalloc(void);