VirtualBox

Changeset 49331 in vbox for trunk/src/VBox/Devices/PC/BIOS


Ignore:
Timestamp:
Oct 30, 2013 9:57:11 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
90318
Message:

BIOS: Seek before formatting a track.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/BIOS/floppy.c

    r48947 r49331  
    907907        floppy_prepare_controller(drive);
    908908
     909        // send seek command to controller
     910        outb(0x03f5, 0x0f); // 0f: seek
     911        outb(0x03f5, (head << 2) | drive); // HD DR1 DR2
     912        outb(0x03f5, track);
     913
    909914        // send format-track command (6 bytes) to controller
    910915        outb(0x03f5, 0x4d); // 4d: format track
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette