From 7c00ce8110e045a5d0b7b95194561b71d7c0d2b6 Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Wed, 1 Feb 2017 19:18:47 -0500 Subject: [PATCH] shorten comment --- proc.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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)); }