summaryrefslogtreecommitdiff
path: root/kernel/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/syscall.c')
-rw-r--r--kernel/syscall.c13
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)