diff options
Diffstat (limited to 'kern/panic.h')
-rw-r--r-- | kern/panic.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/kern/panic.h b/kern/panic.h index 9d1d31e0..e6cbe8ba 100644 --- a/kern/panic.h +++ b/kern/panic.h @@ -18,11 +18,20 @@ #ifndef _KERN_PANIC_H #define _KERN_PANIC_H -#include <kern/macros.h> +#include <stdnoreturn.h> + +#include <kern/init.h> /* * Print the given message and halt the system immediately. */ -void __noreturn panic(const char *format, ...) __format_printf(1, 2); +noreturn void panic(const char *format, ...) + __attribute__((format(printf, 1, 2))); + +/* + * This init operation provides : + * - module fully initialized + */ +INIT_OP_DECLARE(panic_setup); #endif /* _KERN_PANIC_H */ |