VirtualBox

Changeset 35068 in vbox for trunk/src/VBox/Devices/PC


Ignore:
Timestamp:
Dec 14, 2010 12:03:20 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
68899
Message:

BIOS: Removed redundant checks (sector count already has to be less than 256).

File:
1 edited

Legend:

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

    r35063 r35068  
    28842884  if (sector == 0) {
    28852885#ifdef VBOX
    2886     if (count >= 256 || lba + count >= 268435456)
     2886    if (lba + count >= 268435456)
    28872887    {
    28882888      sector = (lba & 0xff000000L) >> 24;
     
    30833083  if (sector == 0) {
    30843084#ifdef VBOX
    3085     if (count >= 256 || lba + count >= 268435456)
     3085    if (lba + count >= 268435456)
    30863086    {
    30873087      sector = (lba & 0xff000000L) >> 24;
     
    57655765#endif
    57665766        {
    5767           if (count >= 256 || lba + count >= 268435456)
     5767          if (lba + count >= 268435456)
    57685768            status=ata_cmd_data_in(device, ATA_CMD_READ_SECTORS_EXT, count, 0, 0, 0, lba, segment, offset);
    57695769          else {
     
    57865786#endif
    57875787        {
    5788           if (count >= 256 || lba + count >= 268435456)
     5788          if (lba + count >= 268435456)
    57895789            status=ata_cmd_data_out(device, ATA_CMD_WRITE_SECTORS_EXT, count, 0, 0, 0, lba, segment, offset);
    57905790          else
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