summaryrefslogtreecommitdiff
path: root/stage3
diff options
context:
space:
mode:
Diffstat (limited to 'stage3')
-rw-r--r--stage3/halt.c4
-rw-r--r--stage3/halt.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/stage3/halt.c b/stage3/halt.c
index b53a4f2..1015367 100644
--- a/stage3/halt.c
+++ b/stage3/halt.c
@@ -2,13 +2,13 @@
#include "font.h"
#include "pic.h"
-void freeze()
+[[noreturn]] void freeze()
{
for (;;)
wait_irq();
}
-void panic(str msg)
+[[noreturn]] void panic(str msg)
{
print(msg);
freeze();
diff --git a/stage3/halt.h b/stage3/halt.h
index 6e7ca34..af4c41e 100644
--- a/stage3/halt.h
+++ b/stage3/halt.h
@@ -3,7 +3,7 @@
#include "def.h"
-void freeze();
-void panic(str msg);
+[[noreturn]] void freeze();
+[[noreturn]] void panic(str msg);
#endif