Second Extended Filesystem (ext2) and other improvements (#33)
[lunaix-os.git] / lunaix-os / includes / lunaix / owloysius.h
index 79480660772f63a1c2c36415326b5e82e6f23edd..22311bb053b87424263fb11df42fcd70026b3d2d 100644 (file)
@@ -3,11 +3,27 @@
 
 #include <lunaix/ds/ldga.h>
 
-#define call_on_earlyboot c_earlyboot
-#define call_on_boot c_boot
-#define call_on_postboot c_postboot
+/**
+ * @brief stage where only basic memory management service
+ * is present
+ */
+#define on_earlyboot c_earlyboot
 
-#define lunaix_initfn(func, call_stage)                                     \
+/**
+ * @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)                                     \
     export_ldga_el(lunainit, func, ptr_t, func);                            \
     export_ldga_el_sfx(lunainit, func##_##call_stage, ptr_t, func, call_stage);