Changeset View
Changeset View
Standalone View
Standalone View
stand/userboot/userboot/main.c
Show First 20 Lines • Show All 268 Lines • ▼ Show 20 Lines | if (userboot_disk_maxunit > 0) { | ||||
dev.dd.d_dev = &userboot_disk; | dev.dd.d_dev = &userboot_disk; | ||||
dev.dd.d_unit = 0; | dev.dd.d_unit = 0; | ||||
dev.d_slice = D_SLICEWILD; | dev.d_slice = D_SLICEWILD; | ||||
dev.d_partition = D_PARTWILD; | dev.d_partition = D_PARTWILD; | ||||
/* | /* | ||||
* If we cannot auto-detect the partition type then | * If we cannot auto-detect the partition type then | ||||
* access the disk as a raw device. | * access the disk as a raw device. | ||||
*/ | */ | ||||
if (dev.dd.d_dev->dv_open(NULL, &dev)) { | if (dev.dd.d_dev->dv_open(NULL, (struct devdesc *)&dev)) { | ||||
dev.d_slice = D_SLICENONE; | dev.d_slice = D_SLICENONE; | ||||
dev.d_partition = D_PARTNONE; | dev.d_partition = D_PARTNONE; | ||||
} | } | ||||
dd = &dev.dd; | dd = &dev.dd; | ||||
} else { | } else { | ||||
dev.dd.d_dev = &host_dev; | dev.dd.d_dev = &host_dev; | ||||
dev.dd.d_unit = 0; | dev.dd.d_unit = 0; | ||||
dd = &dev.dd; | dd = &dev.dd; | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |