3 Copyright (c) 2007, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 Set the level of support for Hardware Error Record Persistence that is
19 implemented by the platform.
25 #include "HwErrRecSupport.h"
28 InitializeHwErrRecSupport (
29 IN UINT16 HwErrRecSupportLevel
34 Set the HwErrRecSupport variable contains a binary UINT16 that supplies the
35 level of support for Hardware Error Record Persistence that is implemented
40 zero value - Indicates that the platform implements no support for
41 Hardware Error Record Persistence.
42 non-zero value - Indicates that the platform implements Hardware Error
51 Status
= gRT
->SetVariable (
53 &gEfiGlobalVariableGuid
,
54 EFI_VARIABLE_NON_VOLATILE
| EFI_VARIABLE_BOOTSERVICE_ACCESS
| EFI_VARIABLE_RUNTIME_ACCESS
,
58 if (EFI_ERROR (Status
)) {
59 DEBUG ((EFI_D_ERROR
, "HwErrRecSupport: Can not set the variable\n"));