mbr_asm/exception_handler.c

13 lines
300 B
C

#include "exception.h"
#include "vga.h"
// Need GCC > 6
__attribute__ ((interrupt))
void print_handler(struct interrupt_frame *frame, ulong error_code){
printStringDetails("EXCEPTION", RED, BLACK, 0, 20);
printInt(error_code, RED, BLACK, 11, 20);
(void) frame;
(void) error_code;
}