diff options
author | Robert Morris <[email protected]> | 2010-09-27 16:14:33 -0400 |
---|---|---|
committer | Robert Morris <[email protected]> | 2010-09-27 16:14:33 -0400 |
commit | 4655d42e3b65f906eae8c815fb78331790f6e423 (patch) | |
tree | de5b3e4e74c992fd3cd8fef0a2d37cb805c659ac /defs.h | |
parent | a9183883b88bfccd1c6a62e27621b2c892d50b67 (diff) | |
download | xv6-labs-4655d42e3b65f906eae8c815fb78331790f6e423.tar.gz xv6-labs-4655d42e3b65f906eae8c815fb78331790f6e423.tar.bz2 xv6-labs-4655d42e3b65f906eae8c815fb78331790f6e423.zip |
copyout() copies data to a va in a pagetable, for exec() &c
usertest that passes too many arguments, break exec
Diffstat (limited to 'defs.h')
-rw-r--r-- | defs.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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])) |