Changeset View
Changeset View
Standalone View
Standalone View
head/stand/i386/libi386/bootinfo32.c
Show First 20 Lines • Show All 170 Lines • ▼ Show 20 Lines | return(EINVAL); | ||||
/* Do legacy rootdev guessing */ | /* Do legacy rootdev guessing */ | ||||
/* XXX - use a default bootdev of 0. Is this ok??? */ | /* XXX - use a default bootdev of 0. Is this ok??? */ | ||||
bootdevnr = 0; | bootdevnr = 0; | ||||
switch(rootdev->dd.d_dev->dv_type) { | switch(rootdev->dd.d_dev->dv_type) { | ||||
case DEVT_CD: | case DEVT_CD: | ||||
/* Pass in BIOS device number. */ | |||||
bi.bi_bios_dev = bc_unit2bios(rootdev->dd.d_unit); | |||||
bootdevnr = bc_getdev(rootdev); | |||||
break; | |||||
case DEVT_DISK: | case DEVT_DISK: | ||||
/* pass in the BIOS device number of the current disk */ | /* pass in the BIOS device number of the current disk */ | ||||
bi.bi_bios_dev = bd_unit2bios(rootdev->dd.d_unit); | bi.bi_bios_dev = bd_unit2bios(rootdev); | ||||
bootdevnr = bd_getdev(rootdev); | bootdevnr = bd_getdev(rootdev); | ||||
break; | break; | ||||
case DEVT_NET: | case DEVT_NET: | ||||
case DEVT_ZFS: | case DEVT_ZFS: | ||||
break; | break; | ||||
default: | default: | ||||
▲ Show 20 Lines • Show All 89 Lines • Show Last 20 Lines |