VirtualBox

Changeset 104175 in vbox for trunk/src


Ignore:
Timestamp:
Apr 5, 2024 12:19:22 PM (10 months ago)
Author:
vboxsync
Message:

Dev/VGA: Spec considers vbe_start_addr as DWORD offset. bugref:10636

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r104130 r104175  
    389389DECLINLINE(void) vgaR3ResetDirty(PVGASTATE pThis, RTGCPHYS offVRAMStart, RTGCPHYS offVRAMEnd)
    390390{
    391     Assert(offVRAMStart < pThis->vram_size);
    392     Assert(offVRAMEnd <= pThis->vram_size);
    393     Assert(offVRAMStart < offVRAMEnd);
     391    AssertReturnVoid(offVRAMStart < pThis->vram_size);
     392    AssertReturnVoid(offVRAMEnd <= pThis->vram_size);
     393    AssertReturnVoid(offVRAMStart < offVRAMEnd);
    394394    ASMBitClearRange(&pThis->bmDirtyBitmap[0], offVRAMStart >> GUEST_PAGE_SHIFT, offVRAMEnd >> GUEST_PAGE_SHIFT);
    395395}
     
    960960    else
    961961        offStart += offX * ((cBPP + 7) >> 3);
    962     offStart >>= 2;
     962
    963963    pThis->vbe_line_offset = RT_MIN(cbLinePitch, pThis->vram_size);
    964     pThis->vbe_start_addr  = RT_MIN(offStart, pThis->vram_size);
     964    pThis->vbe_start_addr  = RT_MIN(offStart, pThis->vram_size) >> 2;
    965965
    966966    /* The VBE_DISPI_INDEX_VIRT_HEIGHT is used to prevent setting resolution bigger than
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