From ecbcb2509f4b811bce0a56e07de9737d14815251 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Tue, 24 Nov 2020 15:15:11 -0700 Subject: Add better logging capabilities, including the ability to panic. --- include/kern/init.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include/kern/init.h') diff --git a/include/kern/init.h b/include/kern/init.h index 737b85f..0ebbeac 100644 --- a/include/kern/init.h +++ b/include/kern/init.h @@ -64,4 +64,18 @@ void(*init7_ptr)() = init7fn; \ static void init7fn +typedef enum { + INIT_LEVEL_0, + INIT_LEVEL_1, + INIT_LEVEL_2, + INIT_LEVEL_3, + INIT_LEVEL_4, + INIT_LEVEL_5, + INIT_LEVEL_6, + INIT_LEVEL_7, + INIT_LEVEL_MAIN, +} init_level_t; + +init_level_t get_system_init_level(); + #endif /* INIT_H_ */ -- cgit