corrects exit
This commit is contained in:
1 parent
4cfa80d7a6
commit
124783a57c
1 file changed
+2
@@ -124,5 +124,7 @@ void _exit(int exit_code) {
|
|||||||
// Halt
|
// Halt
|
||||||
while (1) {
|
while (1) {
|
||||||
__asm__ volatile ("wfi");
|
__asm__ volatile ("wfi");
|
||||||
|
// Incase periodic interrupts are scheduled (e.g. timer), additionaly jump to self
|
||||||
|
for (;;);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user