X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/64e5fa9a495e388c922157b9a616204c299f5e05..7b8a1bcad75628f9add4590db2bb9b8e418ee8eb:/lunaix-os/includes/lunaix/owloysius.h diff --git a/lunaix-os/includes/lunaix/owloysius.h b/lunaix-os/includes/lunaix/owloysius.h new file mode 100644 index 0000000..7948066 --- /dev/null +++ b/lunaix-os/includes/lunaix/owloysius.h @@ -0,0 +1,16 @@ +#ifndef __LUNAIX_OWLOYSIUS_H +#define __LUNAIX_OWLOYSIUS_H + +#include + +#define call_on_earlyboot c_earlyboot +#define call_on_boot c_boot +#define call_on_postboot c_postboot + +#define lunaix_initfn(func, call_stage) \ + export_ldga_el(lunainit, func, ptr_t, func); \ + export_ldga_el_sfx(lunainit, func##_##call_stage, ptr_t, func, call_stage); + +#define invoke_init_function(stage) ldga_invoke_fn0(lunainit##_##stage) + +#endif /* __LUNAIX_OWLOYSIUS_H */