From 48755214c9a02d6249caf3126d3b41d67eda4730 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sun, 30 Aug 2009 23:02:08 -0700 Subject: assorted fixes: * rename c/cp to cpu/proc * rename cpu.context to cpu.scheduler * fix some comments * formatting for printout --- console.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'console.c') diff --git a/console.c b/console.c index 9d2ef60..0613a47 100644 --- a/console.c +++ b/console.c @@ -59,7 +59,7 @@ cprintf(char *fmt, ...) if(locking) acquire(&cons.lock); - argp = (uint*)(void*)&fmt + 1; + argp = (uint*)(void*)(&fmt + 1); state = 0; for(i = 0; (c = fmt[i] & 0xff) != 0; i++){ if(c != '%'){ @@ -106,7 +106,7 @@ panic(char *s) cli(); cons.locking = 0; - cprintf("cpu%d: panic: ", cpu()); + cprintf("cpu%d: panic: ", cpu->id); cprintf(s); cprintf("\n"); getcallerpcs(&s, pcs); @@ -229,7 +229,7 @@ consoleread(struct inode *ip, char *dst, int n) acquire(&input.lock); while(n > 0){ while(input.r == input.w){ - if(cp->killed){ + if(proc->killed){ release(&input.lock); ilock(ip); return -1; -- cgit v1.2.3