Changeset View
Changeset View
Standalone View
Standalone View
head/sys/boot/sparc64/loader/main.c
Show First 20 Lines • Show All 853 Lines • ▼ Show 20 Lines | #endif | ||||
/* | /* | ||||
* Set up the current device. | * Set up the current device. | ||||
*/ | */ | ||||
OF_getprop(chosen, "bootpath", bootpath, sizeof(bootpath)); | OF_getprop(chosen, "bootpath", bootpath, sizeof(bootpath)); | ||||
/* | /* | ||||
* Initialize devices. | * Initialize devices. | ||||
*/ | */ | ||||
for (dp = devsw; *dp != 0; dp++) | for (dp = devsw; *dp != NULL; dp++) | ||||
if ((*dp)->dv_init != 0) | if ((*dp)->dv_init != 0) | ||||
(*dp)->dv_init(); | (*dp)->dv_init(); | ||||
#ifdef LOADER_ZFS_SUPPORT | #ifdef LOADER_ZFS_SUPPORT | ||||
if (zfs_currdev.pool_guid != 0) { | if (zfs_currdev.pool_guid != 0) { | ||||
(void)strncpy(bootpath, zfs_fmtdev(&zfs_currdev), | (void)strncpy(bootpath, zfs_fmtdev(&zfs_currdev), | ||||
sizeof(bootpath) - 1); | sizeof(bootpath) - 1); | ||||
bootpath[sizeof(bootpath) - 1] = '\0'; | bootpath[sizeof(bootpath) - 1] = '\0'; | ||||
▲ Show 20 Lines • Show All 122 Lines • Show Last 20 Lines |