/* #if 0 */ int arch_auto_init() { dbgio_init(); /* Init debug IO and print a banner */ fs_ps2load_init_console(); dbglog(DBG_INFO, "\n--\n"); dbglog(DBG_INFO, banner); timer_init(); /* Timers */ irq_init(); /* IRQs */ syscall_init(); /* System call interface */ #if 0 hardware_init(); /* DC Hardware init */ #endif /* Threads */ #if 0 if (__kos_init_flags & INIT_THD_PREEMPT) thd_init(THD_MODE_PREEMPT); else #endif thd_init(THD_MODE_COOP); fs_init(); /* VFS */ fs_ramdisk_init(); /* Ramdisk */ fs_romdisk_init(); /* Romdisk */ if (__kos_romdisk != NULL) { fs_romdisk_mount("/rd", __kos_romdisk, 0); } if (fs_ps2load_init() >= 0) { dbglog(DBG_INFO, "ps2-load console support enabled\n"); } #if 0 fs_iso9660_init(); fs_vmu_init(); /* Now comes the optional stuff */ if (__kos_init_flags & INIT_IRQ) { irq_enable(); /* Turn on IRQs */ maple_wait_scan(); /* Wait for the maple scan to complete */ } if (__kos_init_flags & INIT_NET) { net_init(); /* Enable networking (and drivers) */ } /* And one more mandatory thing */ timer_ms_enable(); #endif return 0; }
void kern_main(void) { cap_init(); ltbl_init(); comp_init(); thd_init(); inv_init(); kern_boot_comp(); }