/* is called by crt0 immediately before calling __main() */ void crt0_construction(void) { static_construction(); __cxa_atexit((void (*)(void*))&static_destruction, 0, &__dso_handle == 0 ? 0 : __dso_handle); }
extern "C" FIASCO_FASTCALL FIASCO_INIT void __main(unsigned checksum_ro) { /* set global to be used in the constructors */ Boot_info::set_checksum_ro(checksum_ro); Boot_info::init(); atexit(&static_destruction); static_construction(); kernel_main(); exit(0); }
void _init(void) { static_construction(); }