/** @file\r
Support routines for memory profile for PiSmmCore.\r
\r
- Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
- This program and the accompanying materials \r
- are licensed and made available under the terms and conditions of the BSD License \r
- which accompanies this distribution. The full text of the license may be found at \r
- http://opensource.org/licenses/bsd-license.php. \r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+ Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>\r
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
\r
#include "PiSmmCoreMemoryProfileServices.h"\r
\r
-EDKII_MEMORY_PROFILE_PROTOCOL *mLibProfileProtocol;\r
+EDKII_MEMORY_PROFILE_PROTOCOL *mLibProfileProtocol;\r
\r
/**\r
Check whether the start address of buffer is within any of the SMRAM ranges.\r
\r
@param[in] Buffer The pointer to the buffer to be checked.\r
\r
- @retval TURE The buffer is in SMRAM ranges.\r
+ @retval TRUE The buffer is in SMRAM ranges.\r
@retval FALSE The buffer is out of SMRAM ranges.\r
**/\r
BOOLEAN\r
EFIAPI\r
BufferInSmram (\r
- IN VOID *Buffer\r
+ IN VOID *Buffer\r
);\r
\r
/**\r
IN EFI_SYSTEM_TABLE *SystemTable\r
)\r
{\r
- EFI_STATUS Status;\r
+ EFI_STATUS Status;\r
\r
//\r
// Locate Profile Protocol\r
EFI_STATUS\r
EFIAPI\r
MemoryProfileLibRecord (\r
- IN PHYSICAL_ADDRESS CallerAddress,\r
- IN MEMORY_PROFILE_ACTION Action,\r
- IN EFI_MEMORY_TYPE MemoryType,\r
- IN VOID *Buffer,\r
- IN UINTN Size,\r
- IN CHAR8 *ActionString OPTIONAL\r
+ IN PHYSICAL_ADDRESS CallerAddress,\r
+ IN MEMORY_PROFILE_ACTION Action,\r
+ IN EFI_MEMORY_TYPE MemoryType,\r
+ IN VOID *Buffer,\r
+ IN UINTN Size,\r
+ IN CHAR8 *ActionString OPTIONAL\r
)\r
{\r
if (BufferInSmram (Buffer)) {\r
if (mLibProfileProtocol == NULL) {\r
return EFI_UNSUPPORTED;\r
}\r
+\r
return mLibProfileProtocol->Record (\r
mLibProfileProtocol,\r
CallerAddress,\r
);\r
}\r
}\r
-\r