Changeset View
Changeset View
Standalone View
Standalone View
stand/userboot/userboot/main.c
Show First 20 Lines • Show All 153 Lines • ▼ Show 20 Lines | loader_main(struct loader_callbacks *cb, void *arg, int version, int ndisks) | ||||
*/ | */ | ||||
setheap((void *)mallocbuf, (void *)(mallocbuf + sizeof(mallocbuf))); | setheap((void *)mallocbuf, (void *)(mallocbuf + sizeof(mallocbuf))); | ||||
/* | /* | ||||
* Hook up the console | * Hook up the console | ||||
*/ | */ | ||||
cons_probe(); | cons_probe(); | ||||
/* Set up currdev variable to have hooks in place. */ | |||||
env_setenv("currdev", EV_VOLATILE, "", | |||||
userboot_setcurrdev, env_nounset); | |||||
printf("\n%s", bootprog_info); | printf("\n%s", bootprog_info); | ||||
#if 0 | #if 0 | ||||
printf("Memory: %ld k\n", memsize() / 1024); | printf("Memory: %ld k\n", memsize() / 1024); | ||||
#endif | #endif | ||||
setenv("LINES", "24", 1); /* optional */ | setenv("LINES", "24", 1); /* optional */ | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 162 Lines • Show Last 20 Lines |