FreeBSD/sys/boot/i386/zfsboot/zfsboot.c
/*
 * Try to detect a device supported by the legacy int13 BIOS
 */
Try to detect a device supported by the legacy int13 BIOS
Try to detect a device supported by the legacy int13 BIOS
static int
int13probe(int drive)
{
    v86.ctl = V86_FLAGS;
    v86.addr = 0x13;
    v86.eax = 0x800;
    v86.edx = drive;
    v86int();
    if (!V86_CY(v86.efl) &&				
	((v86.edx & 0xff) != (drive & DRV_MASK))) {	
	if ((v86.ecx & 0x3f) == 0) {			
		return(0);				
	}
	return (1);
    }
    return(0);
}
static int int13probe ( int drive ) { v86 . ctl = V86_FLAGS ; v86 . addr = 0x13 ; v86 . eax = 0x800 ; v86 . edx = drive ; v86int ( ) ; if ( ! V86_CY ( v86 . efl ) && ( ( v86 . edx & 0xff ) != ( drive & DRV_MASK ) ) ) { if ( ( v86 . ecx & 0x3f ) == 0 ) { return ( 0 ) ; } return ( 1 ) ; } return ( 0 ) ; }
Try to detect a device supported by the legacy int13 BIOS
Try to detect a device supported by the legacy int13 BIOS
/* carry clear */ /* unit # OK */ /* absurd sector size */ /* skip device */