feature: start to implements isrs
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
void halt(void)
|
||||
{
|
||||
asm volatile("hlt");
|
||||
__asm__ volatile("hlt");
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user