X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/1eeed1150149b63d6e49e033697454bc12b533b9..6942ebae59c3904674dce6b67cd07c43a3bbe00d:/lunaix-os/includes/lunaix/owloysius.h diff --git a/lunaix-os/includes/lunaix/owloysius.h b/lunaix-os/includes/lunaix/owloysius.h index c1f8584..99cffa2 100644 --- a/lunaix-os/includes/lunaix/owloysius.h +++ b/lunaix-os/includes/lunaix/owloysius.h @@ -3,8 +3,30 @@ #include +/** + * @brief stage where only basic memory management service + * is present + */ +#define on_sysconf c_sysconf + +/** + * @brief stage where basic memory management service + * interrupt management and timer/clock service avaliable + */ #define on_earlyboot c_earlyboot + +/** + * @brief stage where most kernel service is ready, non-preempt + * kernel. + * + * boot-stage initialization is about to conclude. + */ #define on_boot c_boot + +/** + * @brief stage where all services started, kernel is in preempt + * state + */ #define on_postboot c_postboot #define owloysius_fetch_init(func, call_stage) \ @@ -13,4 +35,28 @@ #define invoke_init_function(stage) ldga_invoke_fn0(lunainit##_##stage) +static inline void +initfn_invoke_sysconf() +{ + invoke_init_function(on_sysconf); +} + +static inline void +initfn_invoke_earlyboot() +{ + invoke_init_function(on_earlyboot); +} + +static inline void +initfn_invoke_boot() +{ + invoke_init_function(on_boot); +} + +static inline void +initfn_invoke_postboot() +{ + invoke_init_function(on_postboot); +} + #endif /* __LUNAIX_OWLOYSIUS_H */