VirtualBox

Changeset 44018 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Dec 3, 2012 3:21:30 PM (12 years ago)
Author:
vboxsync
Message:

BIOS: Do not set DPT pointer for El Torito emulated harddisk.

File:
1 edited

Legend:

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

    r43724 r44018  
    587587
    588588        switch (cdemu->media) {
    589         case 0x01: SET_BL( 0x02 ); break;
    590         case 0x02: SET_BL( 0x04 ); break;
    591         case 0x03: SET_BL( 0x06 ); break;
    592         }
    593 
    594         DI = (uint16_t)&diskette_param_table;   // @todo: or really DPT2?
    595         ES = 0xF000;                            // @todo: how to make this relocatable?
     589        case 0x01: SET_BL( 0x02 ); break;   /* 1.2 MB  */
     590        case 0x02: SET_BL( 0x04 ); break;   /* 1.44 MB */
     591        case 0x03: SET_BL( 0x05 ); break;   /* 2.88 MB */
     592        }
     593
     594        /* Only set the DPT pointer for emulated floppies. */
     595        if (cdemu->media < 4) {
     596            DI = (uint16_t)&diskette_param_table;   // @todo: should this depend on emulated medium?
     597            ES = 0xF000;                            // @todo: how to make this relocatable?
     598        }
    596599        goto int13_success;
    597600        break;
Note: See TracChangeset for help on using the changeset viewer.

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