mirror of https://github.com/acidanthera/audk.git
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:
parent
a3fbdbd7b4
commit
666a6ab2d3
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue