2 Set the level of support for Hardware Error Record Persistence that is
3 implemented by the platform.
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
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.
16 #include "HwErrRecSupport.h"
19 InitializeHwErrRecSupport (
20 IN UINT16 HwErrRecSupportLevel
25 Set the HwErrRecSupport variable contains a binary UINT16 that supplies the
26 level of support for Hardware Error Record Persistence that is implemented
31 zero value - Indicates that the platform implements no support for
32 Hardware Error Record Persistence.
33 non-zero value - Indicates that the platform implements Hardware Error
42 Status
= gRT
->SetVariable (
44 &gEfiGlobalVariableGuid
,
45 EFI_VARIABLE_NON_VOLATILE
| EFI_VARIABLE_BOOTSERVICE_ACCESS
| EFI_VARIABLE_RUNTIME_ACCESS
,
49 if (EFI_ERROR (Status
)) {
50 DEBUG ((EFI_D_ERROR
, "HwErrRecSupport: Can not set the variable\n"));