summaryrefslogtreecommitdiff
path: root/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'syscall.c')
-rw-r--r--syscall.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/syscall.c b/syscall.c
index 58045d4..3f5e2ba 100644
--- a/syscall.c
+++ b/syscall.c
@@ -13,8 +13,7 @@
* System call number in %eax.
* Arguments on the stack, from the user call to the C
* library system call function. The saved user %esp points
- * to a saved frame pointer, a program counter, and then
- * the first argument.
+ * to a saved program counter, and then the first argument.
*
* Return value? Error indication? Errno?
*/
@@ -56,11 +55,11 @@ fetcharg(int argno, void *ip)
}
int
-putint(struct proc *p, uint addr, int ip)
+putint(struct proc *p, uint addr, int x)
{
if(addr > p->sz - 4)
return -1;
- memmove(p->mem + addr, &ip, 4);
+ memmove(p->mem + addr, &x, 4);
return 0;
}
@@ -269,7 +268,6 @@ syscall(void)
int num = cp->tf->eax;
int ret = -1;
- //cprintf("%x sys %d\n", cp, num);
switch(num){
case SYS_fork:
ret = sys_fork();