/** @file\r
- GUID used for MemoryOverwriteRequestControl UEFI variable defined in \r
+ GUID used for MemoryOverwriteRequestControl UEFI variable defined in\r
TCG Platform Reset Attack Mitigation Specification 1.00.\r
See http://trustedcomputinggroup.org for the latest specification\r
\r
- The purpose of the MemoryOverwriteRequestControl UEFI variable is to give users (e.g., OS, loader) the ability to \r
- indicate to the platform that secrets are present in memory and that the platform firmware must clear memory upon \r
- a restart. The OS loader should not create the variable. Rather, the firmware is required to create it. \r
+ The purpose of the MemoryOverwriteRequestControl UEFI variable is to give users (e.g., OS, loader) the ability to\r
+ indicate to the platform that secrets are present in memory and that the platform firmware must clear memory upon\r
+ a restart. The OS loader should not create the variable. Rather, the firmware is required to create it.\r
\r
- Copyright (c) 2009, 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) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
}\r
\r
///\r
-/// Variable name is "MemoryOverwriteRequestControl" and it is a 1 byte unsigned value. \r
-/// The attributes should be: \r
-/// EFI_VARIABLE_NON_VOLATILE | \r
-/// EFI_VARIABLE_BOOTSERVICE_ACCESS | \r
-/// EFI_VARIABLE_RUNTIME_ACCESS \r
+/// Variable name is "MemoryOverwriteRequestControl" and it is a 1 byte unsigned value.\r
+/// The attributes should be:\r
+/// EFI_VARIABLE_NON_VOLATILE |\r
+/// EFI_VARIABLE_BOOTSERVICE_ACCESS |\r
+/// EFI_VARIABLE_RUNTIME_ACCESS\r
///\r
-#define MEMORY_OVERWRITE_REQUEST_VARIABLE_NAME L"MemoryOverwriteRequestControl"\r
+#define MEMORY_OVERWRITE_REQUEST_VARIABLE_NAME L"MemoryOverwriteRequestControl"\r
\r
///\r
-/// 0 = Firmware MUST clear the MOR bi\r
-/// 1 = Firmware MUST set the MOR bit \r
+/// 0 = Firmware MUST clear the MOR bit\r
+/// 1 = Firmware MUST set the MOR bit\r
///\r
-#define MOR_CLEAR_MEMORY_BIT_MASK 0x01\r
+#define MOR_CLEAR_MEMORY_BIT_MASK 0x01\r
\r
///\r
/// 0 = Firmware MAY autodetect a clean shutdown of the Static RTM OS.\r
/// 1 = Firmware MUST NOT autodetect a clean shutdown of the Static RTM OS.\r
///\r
-#define MOR_DISABLEAUTODETECT_BIT_MASK 0x10\r
+#define MOR_DISABLEAUTODETECT_BIT_MASK 0x10\r
\r
///\r
/// MOR field bit offset\r
///\r
-#define MOR_CLEAR_MEMORY_BIT_OFFSET 0\r
-#define MOR_DISABLEAUTODETECT_BIT_OFFSET 4\r
+#define MOR_CLEAR_MEMORY_BIT_OFFSET 0\r
+#define MOR_DISABLEAUTODETECT_BIT_OFFSET 4\r
\r
/**\r
Return the ClearMemory bit value 0 or 1.\r
\r
@return ClearMemory bit value\r
**/\r
-#define MOR_CLEAR_MEMORY_VALUE(mor) (((UINT8)(mor) & MOR_CLEAR_MEMORY_BIT_MASK) >> MOR_CLEAR_MEMORY_BIT_OFFSET)\r
+#define MOR_CLEAR_MEMORY_VALUE(mor) (((UINT8)(mor) & MOR_CLEAR_MEMORY_BIT_MASK) >> MOR_CLEAR_MEMORY_BIT_OFFSET)\r
\r
/**\r
Return the DisableAutoDetect bit value 0 or 1.\r
\r
@return DisableAutoDetect bit value\r
**/\r
-#define MOR_DISABLE_AUTO_DETECT_VALUE(mor) (((UINT8)(mor) & MOR_DISABLEAUTODETECT_BIT_MASK) >> MOR_DISABLEAUTODETECT_BIT_OFFSET)\r
+#define MOR_DISABLE_AUTO_DETECT_VALUE(mor) (((UINT8)(mor) & MOR_DISABLEAUTODETECT_BIT_MASK) >> MOR_DISABLEAUTODETECT_BIT_OFFSET)\r
\r
-extern EFI_GUID gEfiMemoryOverwriteControlDataGuid;\r
+extern EFI_GUID gEfiMemoryOverwriteControlDataGuid;\r
\r
#endif\r