Changeset View
Changeset View
Standalone View
Standalone View
stand/powerpc/ofw/main.c
Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Lines | main(int (*openfirm)(void *)) | ||||
*/ | */ | ||||
init_heap(); | init_heap(); | ||||
/* | /* | ||||
* Set up console. | * Set up console. | ||||
*/ | */ | ||||
cons_probe(); | cons_probe(); | ||||
/* Set up currdev variable to have hooks in place. */ | |||||
env_setenv("currdev", EV_VOLATILE, "", ofw_setcurrdev, env_nounset); | |||||
/* | /* | ||||
* March through the device switch probing for things. | * March through the device switch probing for things. | ||||
*/ | */ | ||||
for (i = 0; devsw[i] != NULL; i++) | for (i = 0; devsw[i] != NULL; i++) | ||||
if (devsw[i]->dv_init != NULL) | if (devsw[i]->dv_init != NULL) | ||||
(devsw[i]->dv_init)(); | (devsw[i]->dv_init)(); | ||||
printf("\n%s", bootprog_info); | printf("\n%s", bootprog_info); | ||||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |