VirtualBox

Ignore:
Timestamp:
Nov 22, 2019 10:38:23 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
134921
Message:

VGABIOS: State save area size is returned in 64-byte blocks, not bytes.

File:
1 edited

Legend:

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

    r75149 r82111  
    17921792        size += 3 + 256 * 3 + 1;
    17931793
    1794     /// @todo Is this supposed to be in 1-byte or 64-byte units?
    17951794    return size;
    17961795}
     
    17981797static void vga_get_video_state_size(uint16_t state, uint16_t STACK_BASED *size)
    17991798{
    1800     *size = biosfn_read_video_state_size2(state);
     1799    /* The size is the number of 64-byte blocks required to save the state. */
     1800    *size = (biosfn_read_video_state_size2(state) + 63) / 64;
    18011801}
    18021802
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette