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:
3 edited

Legend:

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

  • trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Library/ResetUtilityLib/ResetUtility.c

    r77662 r80721  
    22  This contains the business logic for the module-specific Reset Helper functions.
    33
    4   Copyright (c) 2017 - 2018 Intel Corporation. All rights reserved.<BR>
     4  Copyright (c) 2017 - 2019 Intel Corporation. All rights reserved.<BR>
    55  Copyright (c) 2016 Microsoft Corporation. All rights reserved.<BR>
    66
    7   This program and the accompanying materials are licensed and made available under
    8   the terms and conditions of the BSD License that accompanies this distribution.
    9   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.
     7  SPDX-License-Identifier: BSD-2-Clause-Patent
    148
    159**/
     
    3024
    3125/**
    32   This is a shorthand helper function to reset with a subtype so that
    33   the caller doesn't have to bother with a function that has half a dozen
    34   parameters.
     26  This is a shorthand helper function to reset with reset type and a subtype
     27  so that the caller doesn't have to bother with a function that has half
     28  a dozen parameters.
    3529
    3630  This will generate a reset with status EFI_SUCCESS, a NULL string, and
     
    4236        to your DEPEX.
    4337
     38  @param[in]  ResetType     The default EFI_RESET_TYPE of the reset.
    4439  @param[in]  ResetSubtype  GUID pointer for the reset subtype to be used.
    4540
     
    4742VOID
    4843EFIAPI
    49 ResetPlatformSpecificGuid (
     44ResetSystemWithSubtype (
     45  IN EFI_RESET_TYPE     ResetType,
    5046  IN CONST  GUID        *ResetSubtype
    5147  )
     
    5854    ResetSubtype
    5955    );
    60   ResetPlatformSpecific (sizeof (ResetData), &ResetData);
     56
     57  ResetSystem (ResetType, EFI_SUCCESS, sizeof (ResetData), &ResetData);
     58}
     59
     60/**
     61  This is a shorthand helper function to reset with the reset type
     62  'EfiResetPlatformSpecific' and a subtype so that the caller doesn't
     63  have to bother with a function that has half a dozen parameters.
     64
     65  This will generate a reset with status EFI_SUCCESS, a NULL string, and
     66  no custom data. The subtype will be formatted in such a way that it can be
     67  picked up by notification registrations and custom handlers.
     68
     69  NOTE: This call will fail if the architectural ResetSystem underpinnings
     70        are not initialized. For DXE, you can add gEfiResetArchProtocolGuid
     71        to your DEPEX.
     72
     73  @param[in]  ResetSubtype  GUID pointer for the reset subtype to be used.
     74
     75**/
     76VOID
     77EFIAPI
     78ResetPlatformSpecificGuid (
     79  IN CONST  GUID        *ResetSubtype
     80  )
     81{
     82  ResetSystemWithSubtype (EfiResetPlatformSpecific, ResetSubtype);
    6183}
    6284
  • trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Library/ResetUtilityLib/ResetUtilityLib.inf

    r77662 r80721  
    44#  Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.<BR>
    55#  Copyright (c) 2016, Microsoft Corporation. All rights reserved.<BR>
    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.
     6#  SPDX-License-Identifier: BSD-2-Clause-Patent
    137#
    148##
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