Let HCF print on interrupt

This commit is contained in:
Quinten Kock 2020-12-07 21:30:38 +01:00
parent f0c7411c61
commit 0b5c7ebcfb
1 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,9 @@
#include <print/print.h>
void halt_catch_fire() {
asm volatile ("cli");
while(1) asm volatile ("hlt");
while(1) {
asm volatile ("hlt");
puts("INTERRUPTED!");
};
}