VirtualBox

Ignore:
Timestamp:
Sep 11, 2019 8:46:37 AM (5 years ago)
Author:
vboxsync
Message:

Devices/EFI/FirmwareNew: Start upgrade process to edk2-stable201908 (compiles on Windows and works to some extent), bugref:4643

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

Legend:

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

  • trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Mtftp6Dxe/Mtftp6Support.c

    r77662 r80721  
    22  Mtftp6 support functions implementation.
    33
    4   Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
    5 
    6   This program and the accompanying materials
    7   are licensed and made available under the terms and conditions of the BSD License
    8   which accompanies this distribution.  The full text of the license may be found at
    9   http://opensource.org/licenses/bsd-license.php.
    10 
    11   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
    12   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     4  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
     5
     6  SPDX-License-Identifier: BSD-2-Clause-Patent
    137
    148**/
     
    159153  @param[in]  Head                   The block range list to remove from.
    160154  @param[in]  Num                    The block number to remove.
    161   @param[in]  Completed              Whether Num is the last block number
    162   @param[out] TotalBlock             The continuous block number in all
     155  @param[in]  Completed              Whether Num is the last block number.
     156  @param[out] BlockCounter           The continuous block counter instead of the value after roll-over.
    163157
    164158  @retval EFI_NOT_FOUND          The block number isn't in the block range list.
     
    172166  IN UINT16                 Num,
    173167  IN BOOLEAN                Completed,
    174   OUT UINT64                *TotalBlock
     168  OUT UINT64                *BlockCounter
    175169  )
    176170{
     
    221215      // this solution.
    222216      //
    223       *TotalBlock  = Num;
     217      *BlockCounter  = Num;
    224218
    225219      if (Range->Round > 0) {
    226         *TotalBlock += Range->Bound +  MultU64x32 (Range->Round - 1, (UINT32)(Range->Bound + 1)) + 1;
     220        *BlockCounter += Range->Bound +  MultU64x32 (Range->Round - 1, (UINT32)(Range->Bound + 1)) + 1;
    227221      }
    228222
     
    980974  Instance->McastPort      = 0;
    981975  Instance->BlkSize        = 0;
     976  Instance->Operation      = 0;
     977  Instance->WindowSize     = 1;
     978  Instance->TotalBlock     = 0;
     979  Instance->AckedBlock     = 0;
    982980  Instance->LastBlk        = 0;
    983981  Instance->PacketToLive   = 0;
     
    10521050  Instance->OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
    10531051
     1052  Instance->Operation = OpCode;
     1053
    10541054  //
    10551055  // Parse the extension options in the request packet.
     
    10611061               Token->OptionCount,
    10621062               TRUE,
     1063               Instance->Operation,
    10631064               &Instance->ExtInfo
    10641065               );
     
    11051106  if (Instance->BlkSize == 0) {
    11061107    Instance->BlkSize = MTFTP6_DEFAULT_BLK_SIZE;
     1108  }
     1109  if (Instance->WindowSize == 0) {
     1110    Instance->WindowSize = MTFTP6_DEFAULT_WINDOWSIZE;
    11071111  }
    11081112  if (Instance->MaxRetry == 0) {
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