]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFrameworkModulePkg/Universal/BdsDxe/HwErrRecSupport.c
1. Update Generic BDS part to use dynamic PCD to set console output mode instead...
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / BdsDxe / HwErrRecSupport.c
CommitLineData
5c08e117 1/** @file\r
2 Set the level of support for Hardware Error Record Persistence that is\r
3 implemented by the platform.\r
4\r
5Copyright (c) 2007 - 2008, Intel Corporation. <BR>\r
6All rights reserved. This program and the accompanying materials\r
7are licensed and made available under the terms and conditions of the BSD License\r
8which accompanies this distribution. The full text of the license may be found at\r
9http://opensource.org/licenses/bsd-license.php\r
10\r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16#include "HwErrRecSupport.h"\r
17\r
18/**\r
19 Set the HwErrRecSupport variable contains a binary UINT16 that supplies the\r
20 level of support for Hardware Error Record Persistence that is implemented\r
21 by the platform.\r
22\r
23\r
24 @param HwErrRecSupportLevel\r
25 zero value: Indicates that the platform implements no support for\r
26 Hardware Error Record Persistence.\r
27 non-zero value: Indicates that the platform implements Hardware Error\r
28 Record Persistence.\r
29\r
30**/\r
31VOID\r
32InitializeHwErrRecSupport (\r
33 IN UINT16 HwErrRecSupportLevel\r
34 )\r
35{\r
36 EFI_STATUS Status;\r
37\r
38 Status = gRT->SetVariable (\r
39 L"HwErrRecSupport",\r
40 &gEfiGlobalVariableGuid,\r
41 EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS,\r
42 sizeof (UINT16),\r
43 &HwErrRecSupportLevel\r
44 );\r
45 if (EFI_ERROR (Status)) {\r
46 DEBUG ((EFI_D_ERROR, "HwErrRecSupport: Can not set the variable\n"));\r
47 }\r
48\r
49}\r