summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/proc.c b/proc.c
index 9f500f2..ca343cb 100644
--- a/proc.c
+++ b/proc.c
@@ -36,12 +36,8 @@ cpuid() {
struct cpu*
mycpu(void)
{
- if(readeflags()&FL_IF){
- // Would prefer to panic but panic calls mycpu().
- cprintf("mycpu called from %x with interrupts enabled\n",
- __builtin_return_address(0));
- }
-
+ if(readeflags()&FL_IF)
+ panic("mycpu called with interrupts enabled\n");
return &cpus[lapiccpunum()];
}