mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:47:45 +00:00
Kernel/riscv64: Remove unnecessary InterruptController header
I originally added this header because I misunderstood how IRQControllers are supposed to be used. I thought that I would need a IRQController class for the hart-local interrupt controller, but apparently, this class is supposed to be used for non-local interrupt controllers like the IOAPIC or RISC-V PLIC. x86 LAPICs don't use this class either.
This commit is contained in:
parent
91ef4fed93
commit
8c017c3078
1 changed files with 0 additions and 36 deletions
|
@ -1,36 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Sönke Holz <sholz8530@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/StringView.h>
|
||||
#include <AK/Types.h>
|
||||
#include <Kernel/Arch/riscv64/IRQController.h>
|
||||
|
||||
#include <AK/Platform.h>
|
||||
VALIDATE_IS_RISCV64()
|
||||
|
||||
namespace Kernel::RISCV64 {
|
||||
|
||||
class InterruptController : public IRQController {
|
||||
public:
|
||||
InterruptController();
|
||||
|
||||
private:
|
||||
virtual void enable(GenericInterruptHandler const&) override;
|
||||
virtual void disable(GenericInterruptHandler const&) override;
|
||||
|
||||
virtual void eoi(GenericInterruptHandler const&) const override;
|
||||
|
||||
virtual u64 pending_interrupts() const override;
|
||||
|
||||
virtual StringView model() const override
|
||||
{
|
||||
return "cpu-intc"sv;
|
||||
}
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue