VirtualBox

Changeset 23186 in vbox


Ignore:
Timestamp:
Sep 21, 2009 12:45:22 PM (15 years ago)
Author:
vboxsync
Message:

DevPCI: Workaround needed for EFI is the right thing to do, enabled always and added explanatory comment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevPCI.cpp

    r22793 r23186  
    933933                /* VGA: map frame buffer to default Bochs VBE address */
    934934                pci_set_io_region_addr(pGlobals, uBus, uDevFn, 0, 0xE0000000);
    935 #ifdef VBOX_WITH_EFI
    936                 /* The following is necessary for the VGA check in
    937                    PciVgaMiniPortDriverBindingSupported to succeed. */
    938                 /** @todo Seems we're missing some I/O registers or something on the VGA device... Compare real/virt hw with lspci. */
    939                 pci_config_writew(pGlobals, uBus, uDevFn, PCI_COMMAND,
    940                                   pci_config_readw(pGlobals, uBus, uDevFn, PCI_COMMAND)
     935                /*
     936                 * Legacy VGA I/O ports are implicitly decoded by a VGA class device. But
     937                 * only the framebuffer (i.e., a memory region) is explicitly registered via
     938                 * pci_set_io_region_addr, so I/O decoding must be enabled manually.
     939                 */
     940                pci_config_writeb(pGlobals, uBus, uDevFn, PCI_COMMAND,
     941                                  pci_config_readb(pGlobals, uBus, uDevFn, PCI_COMMAND)
    941942                                  | 1 /* Enable I/O space access. */);
    942 #endif
    943943                break;
    944944            case 0x0800:
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