Let HCF print on interrupt
This commit is contained in:
parent
f0c7411c61
commit
0b5c7ebcfb
|
|
@ -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!");
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue