MdeModulePkg/DebugSupportDxe: Adds callback function prototypes in caller

Adds EFI_EXCEPTION_CALLBACK and EFI_PERIODIC_CALLBACK casts to
RegisteredCallback call in InterruptDistributionHub to suppress
deprecated non-prototype LLVM 15 warning

Signed-off-by: Savva Mitrofanov <savvamtr@gmail.com>
This commit is contained in:
Mikhail Krichanov 2023-12-20 13:37:39 +03:00
parent a3fbdbd7b4
commit 666a6ab2d3
1 changed files with 2 additions and 2 deletions

View File

@ -268,10 +268,10 @@ InterruptDistrubutionHub (
{
if (IdtEntryTable[ExceptionType].RegisteredCallback != NULL) {
if (ExceptionType != SYSTEM_TIMER_VECTOR) {
IdtEntryTable[ExceptionType].RegisteredCallback (ExceptionType, ContextRecord);
((EFI_EXCEPTION_CALLBACK)(IdtEntryTable[ExceptionType].RegisteredCallback))(ExceptionType, *(EFI_SYSTEM_CONTEXT *) &ContextRecord);
} else {
OrigVector = IdtEntryTable[ExceptionType].OrigVector;
IdtEntryTable[ExceptionType].RegisteredCallback (ContextRecord);
((EFI_PERIODIC_CALLBACK)(IdtEntryTable[ExceptionType].RegisteredCallback))(*(EFI_SYSTEM_CONTEXT *) &ContextRecord);
}
}
}