VirtualBox

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


Ignore:
Timestamp:
Nov 2, 2018 6:21:27 PM (6 years ago)
Author:
vboxsync
Message:

BIOS: Never report more than 15M extended memory on 286s.

File:
1 edited

Legend:

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

    r75229 r75232  
    465465        AX = (inb_cmos(0x31) << 8) | inb_cmos(0x30);
    466466
     467#if VBOX_BIOS_CPU >= 80386
    467468        // According to Ralf Brown's interrupt the limit should be 15M,
    468469        // but real machines mostly return max. 63M.
    469470        if(AX > 0xffc0)
    470471            AX = 0xffc0;
     472#else
     473        // An AT compatible cannot have more than 15M extended memory.
     474        // If more is reported, some software (e.g. Windows 3.1) gets
     475        // quite upset.
     476        if(AX > 0x3c00)
     477            AX = 0x3c00;
     478#endif
    471479
    472480        CLEAR_CF();
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