VirtualBox

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


Ignore:
Timestamp:
Mar 21, 2018 11:49:59 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
121394
Message:

BIOS: Added disabled code which can place the FDPT outside of conventional memory.

Location:
trunk/src/VBox/Devices/PC/BIOS
Files:
3 edited

Legend:

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

    r71424 r71426  
    552552                    fdpt = ebda_seg :> &EbdaData->fdpt1;
    553553
     554#if 0
     555                /* Place the FDPT outside of conventional memory. Needed for
     556                 * 286 XENIX 2.1.3/2.2.1 because it completely wipes out
     557                 * the EBDA and low memory. Hack!
     558                 */
     559                fdpt = MK_FP(0xE200, 0xf00);
     560                fdpt += device;
     561#endif
     562
    554563                /* Set the INT 41h or 46h pointer. */
    555564                int_vec  = MK_FP(0, (0x41 + device * 5) * sizeof(void __far *));
     
    560569                 * isn't worth the effort of converting from AMI to Award CMOS
    561570                 * format. Just do it here. */
     571                fdpt->resvd1 = fdpt->resvd2 = 0;
     572
    562573                fdpt->lcyl  = lgeo.cylinders;
    563574                fdpt->lhead = lgeo.heads;
  • trunk/src/VBox/Devices/PC/BIOS/ebda.h

    r70333 r71426  
    148148    uint8_t     sig;
    149149    uint8_t     spt;
    150     uint8_t     resvd1[4];
     150    uint32_t    resvd1;
    151151    uint16_t    cyl;
    152152    uint8_t     head;
    153     uint8_t     resvd2[2];
     153    uint16_t    resvd2;
    154154    uint8_t     lspt;
    155155    uint8_t     csum;
  • trunk/src/VBox/Devices/PC/BIOS/makefile

    r71424 r71426  
    1919CFLAGS   = -q -0 -wx -zu -s -oas -d1+ -ms
    2020CFLAGS32 = -q -wx -zu -s -oas -d1+ -ms -nt=BIOS32 -nd=BIOS32
     21# -oat seems to prevent ENTER/LEAVE generation
     22#CFLAGS32 = -q -wx -zu -s -oat -d1+ -ms -nt=BIOS32 -nd=BIOS32
    2123
    2224DEFS = -DVBOX -DVBOX_LANBOOT_SEG=0xE200 -DVBOX_VERSION_STRING=$(Q)0.9$(Q) &
     
    5355         clname DATA segaddr=0xF000 segment _DATA &
    5456         clname CODE &
    55          segment _TEXT segaddr=0xF000 offset=0x1600 &
     57         segment _TEXT segaddr=0xF000 offset=0x1C00 &
    5658         segment BIOS32 segaddr=0xF000 offset=0xDB00 &
    5759         segment BIOSSEG segaddr=0xF000 offset=0xE000 &
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