/* * Configure all devices found that we know about. * This is done at boot time. */ void cpu_configure(void) { #ifdef ENABLE_INT5_STATCLOCK evcnt_attach_static(&statclock_ev); #endif (void)splhigh(); /* To be really sure.. */ if (config_rootfound("mainbus", NULL) == NULL) panic("no mainbus found"); /* Configuration is finished, turn on interrupts. */ #ifdef ENABLE_INT5_STATCLOCK /* * Enable interrupt sources. * We can't enable CPU INT5 which is used by statclock(9) here * until cpu_initclocks(9) is called because there is no way * to disable it other than setting status register by spl(9). */ _spllower(MIPS_INT_MASK_5); #else /* enable all source forcing SOFT_INTs cleared */ _splnone(); #endif }
/* * Configure all devices found that we know about. * This is done at boot time. */ void cpu_configure() { (void)splhigh(); /* To be really sure.. */ if (config_rootfound("mainbus", "mainbus") == NULL) panic("no mainbus found"); /* Configuration is finished, turn on interrupts. */ _splnone(); /* enable all source forcing SOFT_INTs cleared */ }
void cpu_configure(void) { (void)splhigh(); if (config_rootfound("zbbus", NULL) == NULL) panic("no zbbus found"); _splnone(); }