Changeset 83280 in vbox for trunk/src/VBox
- Timestamp:
- Mar 13, 2020 12:19:26 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r83142 r83280 5643 5643 if (RT_SUCCESS(rc)) 5644 5644 { 5645 rc = PGMHandlerPhysicalRegister(PDMDevHlpGetVM(pDevIns), GCPhysAddress, GCPhysAddress + (pThis->vram_size - 1), 5646 pThis->hLfbAccessHandlerType, pDevIns, pDevIns->pDevInsR0RemoveMe, 5647 pDevIns->pDevInsForRC, "VGA LFB"); 5648 AssertLogRelRC(rc); 5649 if (RT_SUCCESS(rc)) 5645 # ifdef VBOX_WITH_VMSVGA 5646 Assert(!pThis->svga.fEnabled || !pThis->svga.fVRAMTracking); 5647 if ( !pThis->svga.fEnabled 5648 || ( pThis->svga.fEnabled 5649 && pThis->svga.fVRAMTracking 5650 ) 5651 ) 5652 # endif 5650 5653 { 5651 pThis->GCPhysVRAM = GCPhysAddress; 5652 pThis->vbe_regs[VBE_DISPI_INDEX_FB_BASE_HI] = GCPhysAddress >> 16; 5654 rc = PGMHandlerPhysicalRegister(PDMDevHlpGetVM(pDevIns), GCPhysAddress, GCPhysAddress + (pThis->vram_size - 1), 5655 pThis->hLfbAccessHandlerType, pDevIns, pDevIns->pDevInsR0RemoveMe, 5656 pDevIns->pDevInsForRC, "VGA LFB"); 5657 AssertLogRelRC(rc); 5653 5658 } 5659 5660 pThis->GCPhysVRAM = GCPhysAddress; 5661 pThis->vbe_regs[VBE_DISPI_INDEX_FB_BASE_HI] = GCPhysAddress >> 16; 5662 5654 5663 rc = VINF_PCI_MAPPING_DONE; /* caller doesn't care about any other status, so no problem overwriting error here */ 5655 5664 }
Note:
See TracChangeset
for help on using the changeset viewer.