VirtualBox

Ignore:
Timestamp:
Oct 28, 2015 8:17:18 PM (9 years ago)
Author:
vboxsync
Message:

EFI/Firmware: 'svn merge /vendor/edk2/UDK2010.SR1 /vendor/edk2/current .', reverting and removing files+dirs listed in ReadMe.vbox, resolving conflicts with help from ../UDK2014.SP1/. This is a raw untested merge.

Location:
trunk/src/VBox/Devices/EFI/Firmware
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware

  • trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Bus/Pci/EhciPei/EhciSched.c

    r48674 r58459  
    33which is used to enable recovery function from USB Drivers.
    44
    5 Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
     5Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>
    66 
    77This program and the accompanying materials
     
    426426  UINTN                   Loop;
    427427  BOOLEAN                 Finished;
     428  BOOLEAN                 InfiniteLoop;
    428429
    429430  Status    = EFI_SUCCESS;
    430   Loop      = (TimeOut * EHC_1_MILLISECOND / EHC_SYNC_POLL_INTERVAL) + 1;
    431   Finished  = FALSE;
    432 
    433   for (Index = 0; Index < Loop; Index++) {
     431  Loop      = TimeOut * EHC_1_MILLISECOND;
     432  Finished     = FALSE;
     433  InfiniteLoop = FALSE;
     434
     435  //
     436  // If Timeout is 0, then the caller must wait for the function to be completed
     437  // until EFI_SUCCESS or EFI_DEVICE_ERROR is returned.
     438  //
     439  if (TimeOut == 0) {
     440    InfiniteLoop = TRUE;
     441  }
     442
     443  for (Index = 0; InfiniteLoop || (Index < Loop); Index++) {
    434444    Finished = EhcCheckUrbResult (Ehc, Urb);
    435445
     
    438448    }
    439449
    440     MicroSecondDelay (EHC_SYNC_POLL_INTERVAL);
     450    MicroSecondDelay (EHC_1_MICROSECOND);
    441451  }
    442452
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