Changeset View
Changeset View
Standalone View
Standalone View
sys/boot/userboot/userboot/main.c
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | #endif | ||||
archsw.arch_copyin = userboot_copyin; | archsw.arch_copyin = userboot_copyin; | ||||
archsw.arch_copyout = userboot_copyout; | archsw.arch_copyout = userboot_copyout; | ||||
archsw.arch_readin = userboot_readin; | archsw.arch_readin = userboot_readin; | ||||
#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. | |||||
*/ | |||||
bcache_init(32768, 512); | |||||
/* | |||||
* 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)(); | ||||
extract_currdev(); | extract_currdev(); | ||||
▲ Show 20 Lines • Show All 153 Lines • Show Last 20 Lines |