This commit is contained in:
Curle 2019-09-11 03:59:11 +01:00
parent 2536c58607
commit ae6d4ecabd

View File

@ -52,8 +52,8 @@ void ISR_Common(INTERRUPT_FRAME* Frame, size_t Exception) {
if(Exception < 32) {
/* ExceptionStrings is an array of c-strings defined in kernel.h */
serial_print(ExceptionStrings[Exception]);
serial_print(" Exception.\r\n");
serialPrint(ExceptionStrings[Exception]);
serialPrint(" Exception.\r\n");
printf("%s exception!", ExceptionStrings[Exception]);
panic();
}
@ -63,8 +63,8 @@ void ISR_Common(INTERRUPT_FRAME* Frame, size_t Exception) {
into what went wrong. In pure Curle style, though, we just ignore the error code. */
void ISR_Error_Common(EXCEPTION_FRAME* Frame, size_t Exception) {
if(Exception < 32) {
serial_print(ExceptionStrings[Exception]);
serial_printf(" Exception. Context given: %d\r\n", Frame->ErrorCode);
serialPrint(ExceptionStrings[Exception]);
serialPrintf(" Exception. Context given: %d\r\n", Frame->ErrorCode);
printf("%s exception. Context: %x", ExceptionStrings[Exception], Frame->ErrorCode);
panic();
}