copyout() copies data to a va in a pagetable, for exec() &c

usertest that passes too many arguments, break exec
This commit is contained in:
Robert Morris 2010-09-27 16:14:33 -04:00
parent a9183883b8
commit 4655d42e3b
6 changed files with 91 additions and 41 deletions

1
defs.h
View file

@ -165,6 +165,7 @@ int loaduvm(pde_t*, char*, struct inode *, uint, uint);
pde_t* copyuvm(pde_t*,uint);
void switchuvm(struct proc*);
void switchkvm();
int copyout(pde_t *pgdir, uint va, void *buf, uint len);
// number of elements in fixed-size array
#define NELEM(x) (sizeof(x)/sizeof((x)[0]))