VirtualBox

Ignore:
Timestamp:
Nov 9, 2021 12:49:35 PM (3 years ago)
Author:
vboxsync
Message:

BIOS: Use get_cmos_word in other places where we read two adjacent cmos values and combine them into a 16-bit word. Saves 128 bytes. bugref:6549

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/BIOS/ahci.c

    r89364 r92290  
    751751                if (idxCmosChsBase && inb_cmos(idxCmosChsBase+7))
    752752                {
    753                     lgeo.cylinders = inb_cmos(idxCmosChsBase + 0) + (inb_cmos(idxCmosChsBase + 1) << 8);
     753                    lgeo.cylinders = get_cmos_word(idxCmosChsBase /*, idxCmosChsBase+1*/);
    754754                    lgeo.heads     = inb_cmos(idxCmosChsBase + 2);
    755755                    lgeo.spt       = inb_cmos(idxCmosChsBase + 7);
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