VirtualBox

Ignore:
Timestamp:
Mar 31, 2025 11:31:09 AM (2 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168237
Message:

Devices/EFI/FirmwareNew: Merge edk2-stable202502 from the vendor branch and make it build for the important platforms, 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/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableTraditionalMm.c

    r99404 r108794  
    33  Parts of the SMM/MM implementation that are specific to traditional MM
    44
    5 Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved. <BR>
     5Copyright (c) 2011 - 2024, Intel Corporation. All rights reserved. <BR>
    66Copyright (c) 2018, Linaro, Ltd. All rights reserved. <BR>
    77SPDX-License-Identifier: BSD-2-Clause-Patent
     
    1212#include <Library/SmmMemLib.h>
    1313#include "Variable.h"
     14
     15/**
     16  This function checks if the Primary Buffer (CommBuffer) is valid.
     17
     18  @param Buffer The buffer start address to be checked.
     19  @param Length The buffer length to be checked.
     20
     21  @retval TRUE  This buffer is valid.
     22  @retval FALSE This buffer is not valid.
     23**/
     24BOOLEAN
     25VariableSmmIsPrimaryBufferValid (
     26  IN EFI_PHYSICAL_ADDRESS  Buffer,
     27  IN UINT64                Length
     28  )
     29{
     30  return SmmIsBufferOutsideSmmValid (Buffer, Length);
     31}
    1432
    1533/**
     
    2644**/
    2745BOOLEAN
    28 VariableSmmIsBufferOutsideSmmValid (
     46VariableSmmIsNonPrimaryBufferValid (
    2947  IN EFI_PHYSICAL_ADDRESS  Buffer,
    3048  IN UINT64                Length
     
    101119
    102120  @retval TRUE  Either the TCG or TCG2 protocol is installed in the UEFI
    103                 protocol database
     121                protocol database. MOR variable is legitimate.
    104122  @retval FALSE Neither the TCG nor the TCG2 protocol is installed in the UEFI
    105                 protocol database
     123                protocol database. MOR variable is not legitimate.
    106124**/
    107125BOOLEAN
    108 VariableHaveTcgProtocols (
     126VariableIsMorVariableLegitimate (
    109127  VOID
    110128  )
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