]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFrameworkModulePkg/Universal/BdsDxe/HwErrRecSupport.c
Move BdsDxe and GenericBdsLib to IntelFrameworkModulePkg, these modules need dependen...
[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 @param HwErrRecSupportLevel
25 zero value: Indicates that the platform implements no support for
26 Hardware Error Record Persistence.
27 non-zero value: Indicates that the platform implements Hardware Error
28 Record Persistence.
29
30 **/
31 VOID
32 InitializeHwErrRecSupport (
33 IN UINT16 HwErrRecSupportLevel
34 )
35 {
36 EFI_STATUS Status;
37
38 Status = gRT->SetVariable (
39 L"HwErrRecSupport",
40 &gEfiGlobalVariableGuid,
41 EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS,
42 sizeof (UINT16),
43 &HwErrRecSupportLevel
44 );
45 if (EFI_ERROR (Status)) {
46 DEBUG ((EFI_D_ERROR, "HwErrRecSupport: Can not set the variable\n"));
47 }
48
49 }