TianoCore EDK2 master
Loading...
Searching...
No Matches
MachineCheck.c File Reference

Go to the source code of this file.

Functions

BOOLEAN EFIAPI MceSupport (IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
 
RETURN_STATUS EFIAPI MceInitialize (IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL, IN BOOLEAN State)
 
BOOLEAN EFIAPI McaSupport (IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
 
RETURN_STATUS EFIAPI McaInitialize (IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL, IN BOOLEAN State)
 
BOOLEAN EFIAPI McgCtlSupport (IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
 
RETURN_STATUS EFIAPI McgCtlInitialize (IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL, IN BOOLEAN State)
 
BOOLEAN EFIAPI LmceSupport (IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL)
 
RETURN_STATUS EFIAPI LmceInitialize (IN UINTN ProcessorNumber, IN REGISTER_CPU_FEATURE_INFORMATION *CpuInfo, IN VOID *ConfigData OPTIONAL, IN BOOLEAN State)
 

Detailed Description

Machine Check features.

Copyright (c) 2017 - 2024, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file MachineCheck.c.

Function Documentation

◆ LmceInitialize()

RETURN_STATUS EFIAPI LmceInitialize ( IN UINTN  ProcessorNumber,
IN REGISTER_CPU_FEATURE_INFORMATION CpuInfo,
IN VOID *ConfigData  OPTIONAL,
IN BOOLEAN  State 
)

Initializes Local machine check exception feature to specific state.

Parameters
[in]ProcessorNumberThe index of the CPU executing this function.
[in]CpuInfoA pointer to the REGISTER_CPU_FEATURE_INFORMATION structure for the CPU executing this function.
[in]ConfigDataA pointer to the configuration buffer returned by CPU_FEATURE_GET_CONFIG_DATA. NULL if CPU_FEATURE_GET_CONFIG_DATA was not provided in RegisterCpuFeature().
[in]StateIf TRUE, then the Local machine check exception feature must be enabled. If FALSE, then the Local machine check exception feature must be disabled.
Return values
RETURN_SUCCESSLocal machine check exception feature is initialized.

Definition at line 316 of file MachineCheck.c.

◆ LmceSupport()

BOOLEAN EFIAPI LmceSupport ( IN UINTN  ProcessorNumber,
IN REGISTER_CPU_FEATURE_INFORMATION CpuInfo,
IN VOID *ConfigData  OPTIONAL 
)

Detects if Local machine check exception feature supported on current processor.

Parameters
[in]ProcessorNumberThe index of the CPU executing this function.
[in]CpuInfoA pointer to the REGISTER_CPU_FEATURE_INFORMATION structure for the CPU executing this function.
[in]ConfigDataA pointer to the configuration buffer returned by CPU_FEATURE_GET_CONFIG_DATA. NULL if CPU_FEATURE_GET_CONFIG_DATA was not provided in RegisterCpuFeature().
Return values
TRUELocal machine check exception feature is supported.
FALSELocal machine check exception feature is not supported.
Note
This service could be called by BSP/APs.

Definition at line 279 of file MachineCheck.c.

◆ McaInitialize()

RETURN_STATUS EFIAPI McaInitialize ( IN UINTN  ProcessorNumber,
IN REGISTER_CPU_FEATURE_INFORMATION CpuInfo,
IN VOID *ConfigData  OPTIONAL,
IN BOOLEAN  State 
)

Initializes Machine Check Architecture feature to specific state.

Parameters
[in]ProcessorNumberThe index of the CPU executing this function.
[in]CpuInfoA pointer to the REGISTER_CPU_FEATURE_INFORMATION structure for the CPU executing this function.
[in]ConfigDataA pointer to the configuration buffer returned by CPU_FEATURE_GET_CONFIG_DATA. NULL if CPU_FEATURE_GET_CONFIG_DATA was not provided in RegisterCpuFeature().
[in]StateIf TRUE, then the Machine Check Architecture feature must be enabled. If FALSE, then the Machine Check Architecture feature must be disabled.
Return values
RETURN_SUCCESSMachine Check Architecture feature is initialized.
Note
This service could be called by BSP only.

Definition at line 128 of file MachineCheck.c.

◆ McaSupport()

BOOLEAN EFIAPI McaSupport ( IN UINTN  ProcessorNumber,
IN REGISTER_CPU_FEATURE_INFORMATION CpuInfo,
IN VOID *ConfigData  OPTIONAL 
)

Detects if Machine Check Architecture feature supported on current processor.

Parameters
[in]ProcessorNumberThe index of the CPU executing this function.
[in]CpuInfoA pointer to the REGISTER_CPU_FEATURE_INFORMATION structure for the CPU executing this function.
[in]ConfigDataA pointer to the configuration buffer returned by CPU_FEATURE_GET_CONFIG_DATA. NULL if CPU_FEATURE_GET_CONFIG_DATA was not provided in RegisterCpuFeature().
Return values
TRUEMachine Check Architecture feature is supported.
FALSEMachine Check Architecture feature is not supported.
Note
This service could be called by BSP/APs.

Definition at line 96 of file MachineCheck.c.

◆ MceInitialize()

RETURN_STATUS EFIAPI MceInitialize ( IN UINTN  ProcessorNumber,
IN REGISTER_CPU_FEATURE_INFORMATION CpuInfo,
IN VOID *ConfigData  OPTIONAL,
IN BOOLEAN  State 
)

Initializes Machine Check Exception feature to specific state.

Parameters
[in]ProcessorNumberThe index of the CPU executing this function.
[in]CpuInfoA pointer to the REGISTER_CPU_FEATURE_INFORMATION structure for the CPU executing this function.
[in]ConfigDataA pointer to the configuration buffer returned by CPU_FEATURE_GET_CONFIG_DATA. NULL if CPU_FEATURE_GET_CONFIG_DATA was not provided in RegisterCpuFeature().
[in]StateIf TRUE, then the Machine Check Exception feature must be enabled. If FALSE, then the Machine Check Exception feature must be disabled.
Return values
RETURN_SUCCESSMachine Check Exception feature is initialized.
Note
This service could be called by BSP only.

Definition at line 57 of file MachineCheck.c.

◆ MceSupport()

BOOLEAN EFIAPI MceSupport ( IN UINTN  ProcessorNumber,
IN REGISTER_CPU_FEATURE_INFORMATION CpuInfo,
IN VOID *ConfigData  OPTIONAL 
)

Detects if Machine Check Exception feature supported on current processor.

Parameters
[in]ProcessorNumberThe index of the CPU executing this function.
[in]CpuInfoA pointer to the REGISTER_CPU_FEATURE_INFORMATION structure for the CPU executing this function.
[in]ConfigDataA pointer to the configuration buffer returned by CPU_FEATURE_GET_CONFIG_DATA. NULL if CPU_FEATURE_GET_CONFIG_DATA was not provided in RegisterCpuFeature().
Return values
TRUEMachine Check Exception feature is supported.
FALSEMachine Check Exception feature is not supported.
Note
This service could be called by BSP/APs.

Definition at line 29 of file MachineCheck.c.

◆ McgCtlInitialize()

RETURN_STATUS EFIAPI McgCtlInitialize ( IN UINTN  ProcessorNumber,
IN REGISTER_CPU_FEATURE_INFORMATION CpuInfo,
IN VOID *ConfigData  OPTIONAL,
IN BOOLEAN  State 
)

Initializes IA32_MCG_CTL feature to specific state.

Parameters
[in]ProcessorNumberThe index of the CPU executing this function.
[in]CpuInfoA pointer to the REGISTER_CPU_FEATURE_INFORMATION structure for the CPU executing this function.
[in]ConfigDataA pointer to the configuration buffer returned by CPU_FEATURE_GET_CONFIG_DATA. NULL if CPU_FEATURE_GET_CONFIG_DATA was not provided in RegisterCpuFeature().
[in]StateIf TRUE, then the IA32_MCG_CTL feature must be enabled. If FALSE, then the IA32_MCG_CTL feature must be disabled.
Return values
RETURN_SUCCESSIA32_MCG_CTL feature is initialized.
Note
This service could be called by BSP only.

Definition at line 244 of file MachineCheck.c.

◆ McgCtlSupport()

BOOLEAN EFIAPI McgCtlSupport ( IN UINTN  ProcessorNumber,
IN REGISTER_CPU_FEATURE_INFORMATION CpuInfo,
IN VOID *ConfigData  OPTIONAL 
)

Detects if IA32_MCG_CTL feature supported on current processor.

Parameters
[in]ProcessorNumberThe index of the CPU executing this function.
[in]CpuInfoA pointer to the REGISTER_CPU_FEATURE_INFORMATION structure for the CPU executing this function.
[in]ConfigDataA pointer to the configuration buffer returned by CPU_FEATURE_GET_CONFIG_DATA. NULL if CPU_FEATURE_GET_CONFIG_DATA was not provided in RegisterCpuFeature().
Return values
TRUEIA32_MCG_CTL feature is supported.
FALSEIA32_MCG_CTL feature is not supported.
Note
This service could be called by BSP/APs.

Definition at line 209 of file MachineCheck.c.