VirtualBox

Changeset 85497 in vbox for trunk


Ignore:
Timestamp:
Jul 29, 2020 7:31:35 AM (4 years ago)
Author:
vboxsync
Message:

VGABIOS: If LFB is disabled (BAR is zero), do not report any LFB modes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/BIOS/vbe.c

    r75149 r85497  
    214214    }
    215215
     216    /* The LFB may be disabled. If so, LFB modes must not be reported. */
     217    if (using_lfb) {
     218        uint16_t    lfb_addr_hi;
     219
     220        out_w(VBE_DISPI_IOPORT_INDEX, VBE_DISPI_INDEX_FB_BASE_HI);
     221        lfb_addr_hi = in_w(VBE_DISPI_IOPORT_DATA);
     222        if (!lfb_addr_hi) {
     223#ifdef DEBUG_VGA
     224            printf("LFB disabled, LFB modes unavailable!\n");
     225#endif
     226            return 0;
     227        }
     228    }
     229
    216230    cur_info_ofs = sizeof(VBEHeader);
    217231
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