Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SmmCpuPlatformHookLib IsLmceStatusCheckNeeded interface #6557

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,24 @@ SmmCpuPlatformHookBeforeMmiHandler (
{
return EFI_UNSUPPORTED;
}

/**
Determines if the LMCE status check is needed.

This function checks whether the LMCE status check is required.
By default, it returns TRUE, indicating that the LMCE status check
should be performed. However, if the check should be skipped for
any reason, it can return FALSE.

@retval TRUE LMCE status check is needed.
@retval FALSE LMCE status check is skipped.

**/
BOOLEAN
EFIAPI
IsLmceStatusCheckNeeded (
VOID
)
{
return TRUE;
}
18 changes: 18 additions & 0 deletions UefiCpuPkg/Include/Library/SmmCpuPlatformHookLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,22 @@ SmmCpuPlatformHookBeforeMmiHandler (
VOID
);

/**
Determines if the LMCE status check is needed.

This function checks whether the LMCE status check is required.
By default, it returns TRUE, indicating that the LMCE status check
should be performed. However, if the check should be skipped for
any reason, it can return FALSE.

@retval TRUE LMCE status check is needed.
@retval FALSE LMCE status check is skipped.

**/
BOOLEAN
EFIAPI
IsLmceStatusCheckNeeded (
VOID
);

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,24 @@ SmmCpuPlatformHookBeforeMmiHandler (
{
return EFI_UNSUPPORTED;
}

/**
Determines if the LMCE status check is needed.

This function checks whether the LMCE status check is required.
By default, it returns TRUE, indicating that the LMCE status check
should be performed. However, if the check should be skipped for
any reason, it can return FALSE.

@retval TRUE LMCE status check is needed.
@retval FALSE LMCE status check is skipped.

**/
BOOLEAN
EFIAPI
IsLmceStatusCheckNeeded (
VOID
)
{
return TRUE;
}
Loading