]>
Commit | Line | Data |
---|---|---|
fd6a62f3 | 1 | /** @file\r |
2 | Set the level of support for Hardware Error Record Persistence that is\r | |
3 | implemented by the platform.\r | |
93e3992d | 4 | \r |
fd6a62f3 | 5 | Copyright (c) 2007 - 2008, Intel Corporation. <BR>\r |
93e3992d | 6 | All rights reserved. This program and the accompanying materials\r |
7 | are licensed and made available under the terms and conditions of the BSD License\r | |
8 | which accompanies this distribution. The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | \r | |
fd6a62f3 | 14 | **/\r |
93e3992d | 15 | \r |
16 | #include "HwErrRecSupport.h"\r | |
17 | \r | |
b30312ba | 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 | |
93e3992d | 22 | \r |
93e3992d | 23 | \r |
b30312ba | 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 | |
93e3992d | 29 | \r |
b30312ba | 30 | **/\r |
31 | VOID\r | |
32 | InitializeHwErrRecSupport (\r | |
33 | IN UINT16 HwErrRecSupportLevel\r | |
34 | )\r | |
93e3992d | 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 |