DEBUG with Capital Letters
This commit is contained in:
@@ -126,72 +126,70 @@ struct cpu_status_t* interrupt_dispatch(struct cpu_status_t* context)
|
||||
switch(context->vector_number)
|
||||
{
|
||||
case 0:
|
||||
DEBUG("Divide Error!");
|
||||
panic(context, "Divide Error");
|
||||
break;
|
||||
case 1:
|
||||
DEBUG("Debug Exception!");
|
||||
panic(context, "Debug Exception");
|
||||
break;
|
||||
case 2:
|
||||
DEBUG("NMI Interrupt!");
|
||||
panic(context, "NMI Interrupt");
|
||||
break;
|
||||
case 3:
|
||||
DEBUG("Breakpoint Interrupt!");
|
||||
panic(context, "Breakpoint Interrupt");
|
||||
break;
|
||||
case 4:
|
||||
DEBUG("Overflow Trap!");
|
||||
panic(context, "Overflow Trap");
|
||||
break;
|
||||
case 5:
|
||||
DEBUG("BOUND Range Exceeded!");
|
||||
panic(context, "BOUND Range Exceeded");
|
||||
break;
|
||||
case 6:
|
||||
DEBUG("Invalid Opcode!");
|
||||
panic(context, "Invalid Opcode!");
|
||||
panic(context, "Invalid Opcode");
|
||||
break;
|
||||
case 7:
|
||||
DEBUG("Device Not Available!");
|
||||
panic(context, "Device Not Available");
|
||||
break;
|
||||
case 8:
|
||||
DEBUG("Double Fault!");
|
||||
panic(context, "Double Fault");
|
||||
break;
|
||||
case 9:
|
||||
DEBUG("Coprocessor Segment Overrun!");
|
||||
panic(context, "Coprocessor Segment Overrun");
|
||||
break;
|
||||
case 10:
|
||||
DEBUG("Invalid TSS!");
|
||||
panic(context, "Invalid TSS");
|
||||
break;
|
||||
case 11:
|
||||
DEBUG("Segment Not Present!");
|
||||
panic(context, "Segment Not Present");
|
||||
break;
|
||||
case 12:
|
||||
DEBUG("Stack-Segment Fault!");
|
||||
panic(context, "Stack-Segment Fault");
|
||||
break;
|
||||
case 13:
|
||||
gp_fault_handler(context);
|
||||
break;
|
||||
case 14:
|
||||
// Better debugging for page faults...
|
||||
page_fault_handler(context);
|
||||
break;
|
||||
case 15:
|
||||
DEBUG("Intel Reserved Interrupt! (Achievement unlocked: How Did We Get Here?)");
|
||||
panic(context, "Intel Reserved Interrupt (Achievement unlocked: How Did We Get Here?)");
|
||||
break;
|
||||
case 16:
|
||||
DEBUG("x87 Floating-Point Error!");
|
||||
panic(context, "x87 Floating-Point Error");
|
||||
break;
|
||||
case 17:
|
||||
DEBUG("Alignment Check Fault!");
|
||||
panic(context, "Alignment Check Fault");
|
||||
break;
|
||||
case 18:
|
||||
DEBUG("Machine Check!");
|
||||
panic(context, "Machine Check");
|
||||
break;
|
||||
case 19:
|
||||
DEBUG("SIMD Floating-Point Exception!");
|
||||
panic(context, "SIMD Floating-Point Exception");
|
||||
break;
|
||||
case 20:
|
||||
DEBUG("Virtualization Exception!");
|
||||
panic(context, "Virtualization Exception");
|
||||
break;
|
||||
case 21:
|
||||
DEBUG("Control Protection Exception!");
|
||||
panic(context, "Control Protection Exception");
|
||||
break;
|
||||
|
||||
case 32: // Timer Interrupt
|
||||
@@ -213,7 +211,7 @@ struct cpu_status_t* interrupt_dispatch(struct cpu_status_t* context)
|
||||
break;
|
||||
|
||||
default:
|
||||
DEBUG("Unexpected interrupt");
|
||||
DEBUG("Unexpected Interrupt");
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user