summaryrefslogtreecommitdiff
path: root/include/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/debug.h')
-rw-r--r--include/debug.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/debug.h b/include/debug.h
index e8ba7e20..f8294777 100644
--- a/include/debug.h
+++ b/include/debug.h
@@ -59,10 +59,11 @@
/* For the moment this Panic function is very basic, Report an error and
* spin. This can be expanded in the future to provide more information.
*/
-static inline void panic(void)
+static inline void __attribute__((noreturn)) panic(void)
{
ERROR("PANIC\n");
- while (1);
+ while (1)
+ ;
}
#endif /* __ASSEMBLY__ */