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) { if(Exception < 32) {
/* ExceptionStrings is an array of c-strings defined in kernel.h */ /* ExceptionStrings is an array of c-strings defined in kernel.h */
serial_print(ExceptionStrings[Exception]); serialPrint(ExceptionStrings[Exception]);
serial_print(" Exception.\r\n"); serialPrint(" Exception.\r\n");
printf("%s exception!", ExceptionStrings[Exception]); printf("%s exception!", ExceptionStrings[Exception]);
panic(); 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. */ 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) { void ISR_Error_Common(EXCEPTION_FRAME* Frame, size_t Exception) {
if(Exception < 32) { if(Exception < 32) {
serial_print(ExceptionStrings[Exception]); serialPrint(ExceptionStrings[Exception]);
serial_printf(" Exception. Context given: %d\r\n", Frame->ErrorCode); serialPrintf(" Exception. Context given: %d\r\n", Frame->ErrorCode);
printf("%s exception. Context: %x", ExceptionStrings[Exception], Frame->ErrorCode); printf("%s exception. Context: %x", ExceptionStrings[Exception], Frame->ErrorCode);
panic(); panic();
} }