Removed 'interrupt' attribute from isr_ap_start()

Added message to division by 0 exception
This commit is contained in:
2021-04-15 04:55:28 -05:00
parent ac0e5261ba
commit 923057ee1c
2 changed files with 4 additions and 3 deletions

View File

@@ -1,9 +1,10 @@
#include "isr.h"
#include "stdio.h"
__attribute__ ((interrupt))
void isr_division_by_zero(void* frame)
{
printf("Exception: Division by zero\n");
}
__attribute__ ((interrupt))
@@ -24,7 +25,7 @@ void isr_double_fault(void* frame, unsigned int error)
asm("hlt");
}
__attribute__ ((interrupt, naked))
__attribute__ ((naked))
void isr_ap_start(void* frame)
{
asm(".code16");