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/UefiPxeBcDxe/PxeBcDriver.c

    r77662 r80721  
    33
    44  (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>
    5   Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
    6 
    7   This program and the accompanying materials
    8   are licensed and made available under the terms and conditions of the BSD License
    9   which accompanies this distribution.  The full text of the license may be found at
    10   http://opensource.org/licenses/bsd-license.php.
    11 
    12   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
    13   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     5  Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.<BR>
     6
     7  SPDX-License-Identifier: BSD-2-Clause-Patent
    148
    159**/
     
    815809
    816810    //
    817     // Open SNP on the child handle BY_DRIVER. It will prevent any additionally
     811    // Open SNP on the child handle BY_DRIVER|EXCLUSIVE. It will prevent any additionally
    818812    // layering to perform the experiment.
    819813    //
     
    824818                    This->DriverBindingHandle,
    825819                    Private->Ip4Nic->Controller,
    826                     EFI_OPEN_PROTOCOL_BY_DRIVER
     820                    EFI_OPEN_PROTOCOL_BY_DRIVER|EFI_OPEN_PROTOCOL_EXCLUSIVE
    827821                    );
    828822    if (EFI_ERROR (Status)) {
     
    11581152
    11591153    //
    1160     // Open SNP on the child handle BY_DRIVER. It will prevent any additionally
     1154    // Open SNP on the child handle BY_DRIVER|EXCLUSIVE. It will prevent any additionally
    11611155    // layering to perform the experiment.
    11621156    //
     
    11671161                    This->DriverBindingHandle,
    11681162                    Private->Ip6Nic->Controller,
    1169                     EFI_OPEN_PROTOCOL_BY_DRIVER
     1163                    EFI_OPEN_PROTOCOL_BY_DRIVER|EFI_OPEN_PROTOCOL_EXCLUSIVE
    11701164                    );
    11711165    if (EFI_ERROR (Status)) {
     
    12491243  EFI_STATUS  Status;
    12501244
     1245  if ((PcdGet8(PcdIPv4PXESupport) == PXE_DISABLED) && (PcdGet8(PcdIPv6PXESupport) == PXE_DISABLED)) {
     1246    return EFI_UNSUPPORTED;
     1247  }
     1248
    12511249  Status = EfiLibInstallDriverBindingComponentName2 (
    12521250             ImageHandle,
     
    12701268             );
    12711269  if (EFI_ERROR (Status)) {
    1272     gBS->UninstallMultipleProtocolInterfaces (
    1273            ImageHandle,
    1274            &gEfiDriverBindingProtocolGuid,
    1275            &gPxeBcIp4DriverBinding,
    1276            &gEfiComponentName2ProtocolGuid,
    1277            &gPxeBcComponentName2,
    1278            &gEfiComponentNameProtocolGuid,
    1279            &gPxeBcComponentName,
    1280            NULL
    1281            );
     1270    EfiLibUninstallDriverBindingComponentName2 (
     1271      &gPxeBcIp4DriverBinding,
     1272      &gPxeBcComponentName,
     1273      &gPxeBcComponentName2
     1274      );
    12821275  }
    12831276
     
    13131306
    13141307  if (IpVersion == IP_VERSION_4) {
     1308    if (PcdGet8(PcdIPv4PXESupport) == PXE_DISABLED) {
     1309      return EFI_UNSUPPORTED;
     1310    }
    13151311    DhcpServiceBindingGuid  = &gEfiDhcp4ServiceBindingProtocolGuid;
    13161312    MtftpServiceBindingGuid = &gEfiMtftp4ServiceBindingProtocolGuid;
    13171313  } else {
     1314    if (PcdGet8(PcdIPv6PXESupport) == PXE_DISABLED) {
     1315      return EFI_UNSUPPORTED;
     1316    }
    13181317    DhcpServiceBindingGuid  = &gEfiDhcp6ServiceBindingProtocolGuid;
    13191318    MtftpServiceBindingGuid = &gEfiMtftp6ServiceBindingProtocolGuid;
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