diff options
author | Robert Morris <[email protected]> | 2019-07-26 12:34:06 -0400 |
---|---|---|
committer | Robert Morris <[email protected]> | 2019-07-26 12:34:06 -0400 |
commit | cc1a303d096e0fbd256c2b602271a9a3cf19e05d (patch) | |
tree | c1c9e656d7dd16df47a31cf41bf421b035bc090d /kernel/syscall.c | |
parent | f0987d82dcb621969199d91ceb11a66adaceeec1 (diff) | |
download | xv6-labs-cc1a303d096e0fbd256c2b602271a9a3cf19e05d.tar.gz xv6-labs-cc1a303d096e0fbd256c2b602271a9a3cf19e05d.tar.bz2 xv6-labs-cc1a303d096e0fbd256c2b602271a9a3cf19e05d.zip |
fetchint isn't used any more
Diffstat (limited to 'kernel/syscall.c')
-rw-r--r-- | kernel/syscall.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/kernel/syscall.c b/kernel/syscall.c index ec04197..117e78e 100644 --- a/kernel/syscall.c +++ b/kernel/syscall.c @@ -7,19 +7,6 @@ #include "syscall.h" #include "defs.h" -// Fetch the int at addr from the current process. -int -fetchint(uint64 addr, int *ip) -{ - struct proc *p = myproc(); - - if(addr >= p->sz || addr+4 > p->sz) - return -1; - if(copyin(p->pagetable, (char *)ip, addr, sizeof(*ip)) != 0) - return -1; - return 0; -} - // Fetch the uint64 at addr from the current process. int fetchaddr(uint64 addr, uint64 *ip) |