Skip to content

Commit

Permalink
Add SmmCpuPlatformHookLib IsPlatformLmceStatusCheck interface
Browse files Browse the repository at this point in the history
This patch is to add IsPlatformLmceStatusCheck interface in
SmmCpuPlatformHookLib. This new interface can used to check
platform specific LMCE status check is needed.

By default, it will return TRUE to allow LMCE status check. However,
if a platform would like to skip LMCE status check due to any reason,
platform can skip LMCE status check by return FALSE.

Signed-off-by: Khor Swee Aun <[email protected]>
  • Loading branch information
sweeaun committed Dec 18, 2024
1 parent d1fccbf commit 4c257e4
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,24 @@ SmmCpuPlatformHookBeforeMmiHandler (
{
return EFI_UNSUPPORTED;
}

/**
Checks if platform specifc LMCE status check is needed.
This function can be used to check platform specific LMCE status check is needed.
By default, it will return TRUE to allow LMCE status check. However,
if a platform would like to skip LMCE status check due to any reason, platform can
skip LMCE status check by return FALSE.
@retval TRUE Platform LMCE status check is needed.
@retval FALSE Platform LMCE status check is skipped.
**/
BOOLEAN
EFIAPI
IsPlatformLmceStatusCheck (
VOID
)
{
return TRUE;
}
17 changes: 17 additions & 0 deletions UefiCpuPkg/Include/Library/SmmCpuPlatformHookLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,21 @@ SmmCpuPlatformHookBeforeMmiHandler (
VOID
);

/**
Checks if platform specifc LMCE status check is needed.
This function can be used to check platform specific LMCE status check is needed.
By default, it will return TRUE to allow LMCE status check. However,
if a platform would like to skip LMCE status check due to any reason, platform can
skip LMCE status check by return FALSE.
@retval TRUE Platform LMCE status check is needed.
@retval FALSE Platform LMCE status check is skipped.
**/
BOOLEAN
EFIAPI
IsPlatformLmceStatusCheck (
VOID
);
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,24 @@ SmmCpuPlatformHookBeforeMmiHandler (
{
return EFI_UNSUPPORTED;
}

/**
Checks if platform specifc LMCE status check is needed.
This function can be used to check platform specific LMCE status check is needed.
By default, it will return TRUE to allow LMCE status check. However,
if a platform would like to skip LMCE status check due to any reason, platform can
skip LMCE status check by return FALSE.
@retval TRUE Platform LMCE status check is needed.
@retval FALSE Platform LMCE status check is skipped.
**/
BOOLEAN
EFIAPI
IsPlatformLmceStatusCheck (
VOID
)
{
return TRUE;
}

0 comments on commit 4c257e4

Please sign in to comment.