VirtualBox

Changeset 82154 in vbox for trunk/src


Ignore:
Timestamp:
Nov 25, 2019 8:32:02 AM (5 years ago)
Author:
vboxsync
Message:

VGABIOS: Flipped inverted BDA bit.

File:
1 edited

Legend:

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

    r82150 r82154  
    173173    bda[BIOSMEM_CHAR_HEIGHT] = 16;
    174174    /* Clear the screen. */
    175     bda[BIOSMEM_VIDEO_CTL]   = 0x68;
     175    bda[BIOSMEM_VIDEO_CTL]   = 0x60;
    176176    /* Set the basic screen we have. */
    177177    bda[BIOSMEM_SWITCHES]    = 0xf9;
     
    520520
    521521  /* Check if VGA is active. If not, just write the input to the CRTC. */
    522   if (read_byte(BIOSMEM_SEG, BIOSMEM_VIDEO_CTL) & 8) {
     522  if (!(read_byte(BIOSMEM_SEG, BIOSMEM_VIDEO_CTL) & 8)) {
    523523    /* Trying to disable the cursor? */
    524524    if ((CH & 0x60) == 0x20) {
     
    852852 write_byte(BIOSMEM_SEG,BIOSMEM_NB_ROWS,theightm1);
    853853 write_word(BIOSMEM_SEG,BIOSMEM_CHAR_HEIGHT,cheight);
    854  write_byte(BIOSMEM_SEG,BIOSMEM_VIDEO_CTL,(0x68|noclearmem));
     854 write_byte(BIOSMEM_SEG,BIOSMEM_VIDEO_CTL,(0x60|noclearmem));
    855855 write_byte(BIOSMEM_SEG,BIOSMEM_SWITCHES,0xF9);
    856856 write_byte(BIOSMEM_SEG,BIOSMEM_MODESET_CTL,read_byte(BIOSMEM_SEG,BIOSMEM_MODESET_CTL)&0x7f);
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