示例#1
0
/* 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);
}
示例#2
0
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);
}
示例#3
0
void
_init(void)
{
  static_construction();
}