Changeset View
Changeset View
Standalone View
Standalone View
stand/powerpc/ofw/main.c
Show First 20 Lines • Show All 176 Lines • ▼ Show 20 Lines | #ifdef CAS | ||||
archsw.arch_autoload = ppc64_autoload; | archsw.arch_autoload = ppc64_autoload; | ||||
#else | #else | ||||
archsw.arch_autoload = ofw_autoload; | archsw.arch_autoload = ofw_autoload; | ||||
#endif | #endif | ||||
/* Set up currdev variable to have hooks in place. */ | /* Set up currdev variable to have hooks in place. */ | ||||
env_setenv("currdev", EV_VOLATILE, "", ofw_setcurrdev, env_nounset); | env_setenv("currdev", EV_VOLATILE, "", ofw_setcurrdev, env_nounset); | ||||
/* | devinit(); | ||||
* March through the device switch probing for things. | |||||
*/ | |||||
for (i = 0; devsw[i] != NULL; i++) | |||||
if (devsw[i]->dv_init != NULL) | |||||
(devsw[i]->dv_init)(); | |||||
printf("\n%s", bootprog_info); | printf("\n%s", bootprog_info); | ||||
printf("Memory: %lldKB\n", memsize() / 1024); | printf("Memory: %lldKB\n", memsize() / 1024); | ||||
OF_getprop(chosen, "bootpath", bootpath, 64); | OF_getprop(chosen, "bootpath", bootpath, 64); | ||||
ch = strchr(bootpath, ':'); | ch = strchr(bootpath, ':'); | ||||
*ch = '\0'; | *ch = '\0'; | ||||
printf("Booted from: %s\n", bootpath); | printf("Booted from: %s\n", bootpath); | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |