mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
Kernel: Move handle_interrupt out-of-line in PCIIRQHandler
Upgrade to GCC 13.1.0 triggered an UBSAN in PCIIRQHandler. Moving the handle_interrupt() function out-of-line fixes this issue.
This commit is contained in:
parent
ff70418ffc
commit
d14c2a3583
Notes:
sideshowbarker
2024-07-17 01:00:06 +09:00
Author: https://github.com/Panky-codes Commit: https://github.com/SerenityOS/serenity/commit/d14c2a3583 Pull-request: https://github.com/SerenityOS/serenity/pull/18881 Reviewed-by: https://github.com/ADKaster ✅
@ -63,4 +63,9 @@ void PCIIRQHandler::disable_irq()
|
||||
device.disable_interrupt(interrupt_number());
|
||||
}
|
||||
|
||||
bool PCIIRQHandler::handle_interrupt(RegisterState const& regs)
|
||||
{
|
||||
return handle_irq(regs);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ class PCIIRQHandler : public GenericInterruptHandler {
|
||||
public:
|
||||
virtual ~PCIIRQHandler() = default;
|
||||
|
||||
virtual bool handle_interrupt(RegisterState const& regs) override { return handle_irq(regs); }
|
||||
virtual bool handle_interrupt(RegisterState const& regs) override;
|
||||
virtual bool handle_irq(RegisterState const&) = 0;
|
||||
|
||||
void enable_irq();
|
||||
|
Loading…
Reference in New Issue
Block a user