diff options
author | rsc <rsc> | 2006-07-16 15:41:47 +0000 |
---|---|---|
committer | rsc <rsc> | 2006-07-16 15:41:47 +0000 |
commit | ef2bd07ae4cb2e27d62cfdcb7e71d82948fb80ed (patch) | |
tree | 3c5f126bb04d4c6c26dcb8295959fad224dfbf5d /syscall.c | |
parent | 6b765c480f8c810fc495a32baa696bbeb75adc09 (diff) | |
download | xv6-labs-ef2bd07ae4cb2e27d62cfdcb7e71d82948fb80ed.tar.gz xv6-labs-ef2bd07ae4cb2e27d62cfdcb7e71d82948fb80ed.tar.bz2 xv6-labs-ef2bd07ae4cb2e27d62cfdcb7e71d82948fb80ed.zip |
standardize on not using foo_ prefix in struct foo
Diffstat (limited to 'syscall.c')
-rw-r--r-- | syscall.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -51,7 +51,7 @@ fetcharg(int argno, void *ip) { unsigned esp; - esp = (unsigned) curproc[cpu()]->tf->tf_esp; + esp = (unsigned) curproc[cpu()]->tf->esp; return fetchint(curproc[cpu()], esp + 4 + 4*argno, ip); } @@ -263,7 +263,7 @@ void syscall(void) { struct proc *cp = curproc[cpu()]; - int num = cp->tf->tf_regs.reg_eax; + int num = cp->tf->regs.eax; int ret = -1; //cprintf("%x sys %d\n", cp, num); @@ -301,10 +301,13 @@ syscall(void) case SYS_panic: ret = sys_panic(); break; + case SYS_cons_puts: + ret = sys_cons_puts(); + break; default: cprintf("unknown sys call %d\n", num); // XXX fault break; } - cp->tf->tf_regs.reg_eax = ret; + cp->tf->regs.eax = ret; } |