]>
Commit | Line | Data |
---|---|---|
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 | |
5 | Copyright (c) 2007 - 2008, Intel Corporation. <BR>\r | |
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 | |
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 | |
5c08e117 | 23 | **/\r |
24 | VOID\r | |
25 | InitializeHwErrRecSupport (\r | |
a2b35995 | 26 | VOID\r |
5c08e117 | 27 | )\r |
28 | {\r | |
a2b35995 | 29 | UINT16 HardwareErrorRecordLevel;\r |
30 | \r | |
31 | HardwareErrorRecordLevel = PcdGet16 (PcdHardwareErrorRecordLevel);\r | |
32 | \r | |
33 | if (HardwareErrorRecordLevel != 0) {\r | |
34 | //\r | |
35 | // Set original value again to make sure this value is stored into variable\r | |
36 | // area but not PCD database.\r | |
37 | // if level value equal 0, no need set to 0 to variable area because UEFI specification\r | |
38 | // define same behavior between no value or 0 value for L"HwErrRecSupport"\r | |
39 | //\r | |
40 | PcdSet16 (PcdHardwareErrorRecordLevel, HardwareErrorRecordLevel);\r | |
5c08e117 | 41 | }\r |
5c08e117 | 42 | }\r |