mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-25 14:44:28 +02:00
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
4778567e82
commit
37c4db9e29
@ -268,10 +268,10 @@ InterruptDistrubutionHub (
|
|||||||
{
|
{
|
||||||
if (IdtEntryTable[ExceptionType].RegisteredCallback != NULL) {
|
if (IdtEntryTable[ExceptionType].RegisteredCallback != NULL) {
|
||||||
if (ExceptionType != SYSTEM_TIMER_VECTOR) {
|
if (ExceptionType != SYSTEM_TIMER_VECTOR) {
|
||||||
IdtEntryTable[ExceptionType].RegisteredCallback (ExceptionType, ContextRecord);
|
((EFI_EXCEPTION_CALLBACK)(IdtEntryTable[ExceptionType].RegisteredCallback))(ExceptionType, *(EFI_SYSTEM_CONTEXT *) &ContextRecord);
|
||||||
} else {
|
} else {
|
||||||
OrigVector = IdtEntryTable[ExceptionType].OrigVector;
|
OrigVector = IdtEntryTable[ExceptionType].OrigVector;
|
||||||
IdtEntryTable[ExceptionType].RegisteredCallback (ContextRecord);
|
((EFI_PERIODIC_CALLBACK)(IdtEntryTable[ExceptionType].RegisteredCallback))(*(EFI_SYSTEM_CONTEXT *) &ContextRecord);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user