]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFrameworkModulePkg/Universal/BdsDxe/HwErrRecSupport.c
5c333697b3f7e380f0b9565e296fa1268db820d1
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / BdsDxe / HwErrRecSupport.c
1 /** @file
2 Set the level of support for Hardware Error Record Persistence that is
3 implemented by the platform.
4
5 Copyright (c) 2007 - 2008, Intel Corporation. <BR>
6 All rights reserved. This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14 **/
15
16 #include "HwErrRecSupport.h"
17
18 /**
19 Set the HwErrRecSupport variable contains a binary UINT16 that supplies the
20 level of support for Hardware Error Record Persistence that is implemented
21 by the platform.
22
23 **/
24 VOID
25 InitializeHwErrRecSupport (
26 VOID
27 )
28 {
29 UINT16 HardwareErrorRecordLevel;
30
31 HardwareErrorRecordLevel = PcdGet16 (PcdHardwareErrorRecordLevel);
32
33 if (HardwareErrorRecordLevel != 0) {
34 //
35 // Set original value again to make sure this value is stored into variable
36 // area but not PCD database.
37 // if level value equal 0, no need set to 0 to variable area because UEFI specification
38 // define same behavior between no value or 0 value for L"HwErrRecSupport"
39 //
40 PcdSet16 (PcdHardwareErrorRecordLevel, HardwareErrorRecordLevel);
41 }
42 }