mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +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
cc22ecbdb3
commit
23f2919974
@ -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