VirtualBox

Changeset 94451 in vbox


Ignore:
Timestamp:
Apr 4, 2022 9:33:05 AM (3 years ago)
Author:
vboxsync
Message:

VGABIOS: When restoring state, we have to first set the CRTC base and only then access the CRTC registers, duh!

File:
1 edited

Legend:

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

    r94363 r94451  
    23792379        outb(VGAREG_SEQU_DATA, read_byte(ES, BX)); BX++;
    23802380
     2381        // select crtc base address
     2382        v = inb(VGAREG_READ_MISC_OUTPUT) & ~0x01;
     2383        if (crtc_addr == 0x3d4)
     2384            v |= 0x01;
     2385        outb(VGAREG_WRITE_MISC_OUTPUT, v);
     2386
    23812387        // Disable CRTC write protection
    23822388        outw(crtc_addr,0x0011);
     
    23892395            BX++;
    23902396        }
    2391         // select crtc base address
    2392         v = inb(VGAREG_READ_MISC_OUTPUT) & ~0x01;
    2393         if (crtc_addr == 0x3d4)
    2394             v |= 0x01;
    2395         outb(VGAREG_WRITE_MISC_OUTPUT, v);
    2396 
    23972397        // enable write protection if needed
    23982398        outb(crtc_addr, 0x11);
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