]>
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 | |
18 | VOID\r | |
19 | InitializeHwErrRecSupport (\r | |
20 | IN UINT16 HwErrRecSupportLevel\r | |
21 | )\r | |
22 | /*++\r | |
23 | \r | |
24 | Routine Description:\r | |
25 | Set the HwErrRecSupport variable contains a binary UINT16 that supplies the\r | |
26 | level of support for Hardware Error Record Persistence that is implemented\r | |
27 | by the platform.\r | |
28 | \r | |
29 | Arguments:\r | |
30 | HwErrRecSupportLevel\r | |
31 | zero value - Indicates that the platform implements no support for\r | |
32 | Hardware Error Record Persistence.\r | |
33 | non-zero value - Indicates that the platform implements Hardware Error\r | |
34 | Record Persistence.\r | |
35 | \r | |
36 | Returns:\r | |
37 | \r | |
38 | --*/\r | |
39 | {\r | |
40 | EFI_STATUS Status;\r | |
41 | \r | |
42 | Status = gRT->SetVariable (\r | |
43 | L"HwErrRecSupport",\r | |
44 | &gEfiGlobalVariableGuid,\r | |
45 | EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS,\r | |
46 | sizeof (UINT16),\r | |
47 | &HwErrRecSupportLevel\r | |
48 | );\r | |
49 | if (EFI_ERROR (Status)) {\r | |
50 | DEBUG ((EFI_D_ERROR, "HwErrRecSupport: Can not set the variable\n"));\r | |
51 | }\r | |
52 | \r | |
53 | }\r |