feature: start to implements isrs

This commit is contained in:
2024-10-01 20:24:33 +02:00
parent 5fe4d12c12
commit 64a3f6ee0d
6 changed files with 167 additions and 5 deletions

View File

@ -1,4 +1,4 @@
void halt(void)
{
asm volatile("hlt");
__asm__ volatile("hlt");
}

View File

@ -19,7 +19,7 @@ void reboot(void)
{
uint8_t tmp;
asm volatile("cli"); /* disable all interrupts */
__asm__ volatile("cli"); /* disable all interrupts */
do {
tmp = inb(KBD_INTERFACE); /* empty user data */
if (check_flag(tmp, KBD_BIT_KDATA))
@ -27,6 +27,6 @@ void reboot(void)
} while (check_flag(tmp, KBD_BIT_UDATA));
outb(KBD_INTERFACE, KBD_RESET); /* pulse CPU reset line */
loop:
asm volatile("hlt");
__asm__ volatile("hlt");
goto loop;
}
}