1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:48:11 +00:00

Kernel: Use a const reference to RegisterState in IRQ handling

This commit is contained in:
Liav A 2020-03-09 16:24:29 +02:00 committed by Andreas Kling
parent aa43314e8b
commit e880fe0765
26 changed files with 27 additions and 27 deletions

View file

@ -177,7 +177,7 @@ E1000NetworkAdapter::~E1000NetworkAdapter()
{
}
void E1000NetworkAdapter::handle_irq(RegisterState&)
void E1000NetworkAdapter::handle_irq(const RegisterState&)
{
out32(REG_IMASK, 0x1);

View file

@ -49,7 +49,7 @@ public:
virtual const char* purpose() const override { return class_name(); }
private:
virtual void handle_irq(RegisterState&) override;
virtual void handle_irq(const RegisterState&) override;
virtual const char* class_name() const override { return "E1000NetworkAdapter"; }
struct [[gnu::packed]] e1000_rx_desc

View file

@ -177,7 +177,7 @@ RTL8139NetworkAdapter::~RTL8139NetworkAdapter()
{
}
void RTL8139NetworkAdapter::handle_irq(RegisterState&)
void RTL8139NetworkAdapter::handle_irq(const RegisterState&)
{
for (;;) {
int status = in16(REG_ISR);

View file

@ -50,7 +50,7 @@ public:
virtual const char* purpose() const override { return class_name(); }
private:
virtual void handle_irq(RegisterState&) override;
virtual void handle_irq(const RegisterState&) override;
virtual const char* class_name() const override { return "RTL8139NetworkAdapter"; }
void reset();