Lines Matching full:drive
54 * The area at offset 0x1b2 contains a magic string ('Drive '), also
59 * (called 'packet') or CHS mode, whether to force a drive number,
84 * %dl drive number (0x80, 0x81, ... )
94 * to store the original drive number (%dl) passed to us, and to construct a
145 .set _NXTDRV, B0_OFF+6 # Next drive
147 .set _SETDRV, B0_OFF+8 # Drive to force
167 * is used by boot0cfg, together with the 'Drive ' string and
211 * If the 'setdrv' flag is set in the boot sector, use the drive
215 * or a ZIP/flash drive in floppy emulation).
218 testb $SETDRV,_FLAGS(%bp) # Set drive number?
219 #ifndef CHECK_DRIVE /* disable drive checks */
223 testb %dl,%dl # Drive number valid?
227 * Disable updates if the drive number is forced.
230 movb _SETDRV(%bp),%dl # Use stored drive number
233 * Whatever drive we decided to use, store it at (%bp). The byte
238 save_curdrive: movb %dl, (%bp) # Save drive number
240 #ifdef TEST /* test code, print internal bios drive */
242 movw $drive, %si
291 * Add one to the drive number and check it is valid.
293 * get an entry for the next drive, which is the first Hard Disk.
295 popw %ax # Drive number
297 cmpb NHRDRV,%al # drive exist? (from BIOS?)
300 * If this is the only drive, don't display it as an option.
302 decw %ax # Already drive 0?
305 * If it was illegal or we cycled through them, go back to drive 0.
307 xorb %al,%al # Drive 0
309 * Whatever drive we selected, make it an ascii digit and save it
311 * This digit is also part of the printed drive string, so add 0x80
315 movb %al,_NXTDRV(%bp) # drive number
316 movw $drive,%di # Display
433 * Set %dl with the drive number saved in byte 0.
438 movb (%si),%dl # Drive number, saved above
446 * selected partition, and leave the drive number unchanged.
466 * If going to next drive, replace drive with selected one.
471 movb _NXTDRV(%bp),%dl # Next drive
493 * also record the drive as valid.
500 * Display the option and record the drive as valid in the options.
547 * %dl: drive, %si partition entry, %es:%bx transfer buffer.
650 * Do not move it nor change the "Drive " string, boot0cfg
652 * The other fields are sometimes changed before writing back to the drive
653 * Be especially careful that nxtdrv: must come after drive:, as it
656 drive: .ascii "Drive " label
657 nxtdrv: .byte 0x0 # Next drive number
659 setdrv_num: .byte 0x80 # Drive to force