VirtualBox

Changeset 77012 in vbox


Ignore:
Timestamp:
Jan 27, 2019 9:49:09 AM (6 years ago)
Author:
vboxsync
Message:

DevATA: Log CHS<->LBA conversions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevATA.cpp

    r77010 r77012  
    15431543            (s->uATARegSelect & 0x0f) * s->PCHSGeometry.cSectors +
    15441544            (s->uATARegSector - 1);
     1545        LogFlowFunc(("CHS %u/%u/%u -> LBA %llu\n", (s->uATARegHCyl << 8) | s->uATARegLCyl, s->uATARegSelect & 0x0f, s->uATARegSector, iLBA));
    15451546    }
    15461547    return iLBA;
     
    15811582        s->uATARegSelect = (s->uATARegSelect & 0xf0) | ((r / s->PCHSGeometry.cSectors) & 0x0f);
    15821583        s->uATARegSector = (r % s->PCHSGeometry.cSectors) + 1;
     1584        LogFlowFunc(("LBA %llu -> CHS %u/%u/%u\n", iLBA, cyl, s->uATARegSelect & 0x0f, s->uATARegSector));
    15831585    }
    15841586}
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