Changeset View
Changeset View
Standalone View
Standalone View
stand/userboot/userboot/main.c
Show First 20 Lines • Show All 200 Lines • ▼ Show 20 Lines | |||||
#if defined(USERBOOT_ZFS_SUPPORT) | #if defined(USERBOOT_ZFS_SUPPORT) | ||||
archsw.arch_zfs_probe = userboot_zfs_probe; | archsw.arch_zfs_probe = userboot_zfs_probe; | ||||
#endif | #endif | ||||
/* | /* | ||||
* Initialise the block cache. Set the upper limit. | * Initialise the block cache. Set the upper limit. | ||||
*/ | */ | ||||
bcache_init(32768, 512); | bcache_init(32768, 512); | ||||
/* | 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)(); | |||||
extract_currdev(); | extract_currdev(); | ||||
/* | /* | ||||
* Checking the interpreter isn't worth the overhead unless we | * Checking the interpreter isn't worth the overhead unless we | ||||
* actually have the swap_interpreter callback, so we actually version | * actually have the swap_interpreter callback, so we actually version | ||||
* check here rather than later on. | * check here rather than later on. | ||||
*/ | */ | ||||
if (version >= USERBOOT_VERSION_5) | if (version >= USERBOOT_VERSION_5) | ||||
▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines |