From: Frans Kaashoek Date: Thu, 2 Feb 2017 00:18:47 +0000 (-0500) Subject: shorten comment X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=7c00ce8110e045a5d0b7b95194561b71d7c0d2b6;p=cs3210-lab0.git shorten comment --- diff --git a/proc.c b/proc.c index 6445725..9f500f2 100644 --- a/proc.c +++ b/proc.c @@ -36,13 +36,9 @@ cpuid() { struct cpu* mycpu(void) { - // Would prefer to panic but even printing is chancy here: almost everything, - // including cprintf and panic, calls mycpu(), often indirectly through - // acquire and release. if(readeflags()&FL_IF){ - static int n; - if(n++ == 0) - cprintf("mycpu called from %x with interrupts enabled\n", + // Would prefer to panic but panic calls mycpu(). + cprintf("mycpu called from %x with interrupts enabled\n", __builtin_return_address(0)); }