Kernel: Update system components to use the new IRQHandler class

This commit is contained in:
Liav A 2020-02-22 19:53:03 +02:00 committed by Andreas Kling
parent a46120b4a8
commit 740534cd67
Notes: sideshowbarker 2024-07-19 09:06:49 +09:00
9 changed files with 13 additions and 14 deletions

View file

@ -56,7 +56,7 @@ ACPIDynamicParser::ACPIDynamicParser(ACPI_RAW::RSDPDescriptor20& rsdp)
kprintf("ACPI: Dynamic Parsing Enabled, Can parse AML\n");
}
void ACPIDynamicParser::handle_irq()
void ACPIDynamicParser::handle_irq(RegisterState&)
{
// FIXME: Implement IRQ handling of ACPI signals!
ASSERT_NOT_REACHED();

View file

@ -28,7 +28,7 @@
#include <AK/RefPtr.h>
#include <Kernel/ACPI/ACPIStaticParser.h>
#include <Kernel/IRQHandler.h>
#include <Kernel/Interrupts/IRQHandler.h>
#include <Kernel/Lock.h>
#include <Kernel/VM/PhysicalPage.h>
#include <LibBareMetal/Memory/PhysicalAddress.h>
@ -54,7 +54,7 @@ protected:
private:
void build_namespace();
// ^IRQHandler
virtual void handle_irq() override;
virtual void handle_irq(RegisterState&) override;
OwnPtr<Region> m_acpi_namespace;
};

View file

@ -347,7 +347,7 @@ bool FloppyDiskDevice::wait_for_irq()
return true;
}
void FloppyDiskDevice::handle_irq()
void FloppyDiskDevice::handle_irq(RegisterState&)
{
// The only thing we need to do is acknowledge the IRQ happened
m_interrupted = true;

View file

@ -99,7 +99,7 @@
#include <AK/RefPtr.h>
#include <Kernel/Devices/BlockDevice.h>
#include <Kernel/IRQHandler.h>
#include <Kernel/Interrupts/IRQHandler.h>
#include <Kernel/Lock.h>
#include <Kernel/VM/PhysicalPage.h>
#include <LibBareMetal/Memory/PhysicalAddress.h>
@ -177,7 +177,7 @@ protected:
private:
// ^IRQHandler
void handle_irq();
virtual void handle_irq(RegisterState&) override;
// ^DiskDevice
virtual const char* class_name() const override;

View file

@ -28,7 +28,6 @@
#include <AK/ByteBuffer.h>
#include <AK/Types.h>
#include <Kernel/Arch/i386/CPU.h>
#include <Kernel/Arch/i386/PIC.h>
#include <Kernel/Devices/KeyboardDevice.h>
#include <Kernel/TTY/VirtualConsole.h>
#include <LibBareMetal/IO.h>
@ -486,7 +485,7 @@ void KeyboardDevice::key_state_changed(u8 raw, bool pressed)
m_has_e0_prefix = false;
}
void KeyboardDevice::handle_irq()
void KeyboardDevice::handle_irq(RegisterState&)
{
for (;;) {
u8 status = IO::in8(I8042_STATUS);

View file

@ -26,12 +26,12 @@
#pragma once
#include "IRQHandler.h"
#include "KeyCode.h"
#include <AK/CircularQueue.h>
#include <AK/DoublyLinkedList.h>
#include <AK/Types.h>
#include <Kernel/Devices/CharacterDevice.h>
#include <Kernel/Interrupts/IRQHandler.h>
namespace Kernel {
@ -59,7 +59,7 @@ public:
private:
// ^IRQHandler
virtual void handle_irq() override;
virtual void handle_irq(RegisterState&) override;
// ^CharacterDevice
virtual const char* class_name() const override { return "KeyboardDevice"; }

View file

@ -31,7 +31,7 @@
#pragma once
#include <Kernel/Devices/BlockDevice.h>
#include <Kernel/IRQHandler.h>
#include <Kernel/Interrupts/IRQHandler.h>
#include <Kernel/Lock.h>
namespace Kernel {

View file

@ -129,7 +129,7 @@ void PS2MouseDevice::handle_vmmouse_absolute_pointer()
m_queue.enqueue(packet);
}
void PS2MouseDevice::handle_irq()
void PS2MouseDevice::handle_irq(RegisterState&)
{
if (VMWareBackdoor::the().vmmouse_is_absolute()) {

View file

@ -28,7 +28,7 @@
#include <AK/CircularQueue.h>
#include <Kernel/Devices/CharacterDevice.h>
#include <Kernel/IRQHandler.h>
#include <Kernel/Interrupts/IRQHandler.h>
#include <Kernel/MousePacket.h>
namespace Kernel {
@ -49,8 +49,8 @@ public:
private:
// ^IRQHandler
virtual void handle_irq() override;
void handle_vmmouse_absolute_pointer();
virtual void handle_irq(RegisterState&) override;
// ^CharacterDevice
virtual const char* class_name() const override { return "PS2MouseDevice"; }