From 8c017c3078881dd736517f246c2da5f523acb40a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Holz?= Date: Thu, 18 Jan 2024 16:48:42 +0100 Subject: [PATCH] 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. --- Kernel/Arch/riscv64/InterruptController.h | 36 ----------------------- 1 file changed, 36 deletions(-) delete mode 100644 Kernel/Arch/riscv64/InterruptController.h diff --git a/Kernel/Arch/riscv64/InterruptController.h b/Kernel/Arch/riscv64/InterruptController.h deleted file mode 100644 index 98144180ae8..00000000000 --- a/Kernel/Arch/riscv64/InterruptController.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) 2023, Sönke Holz - * - * SPDX-License-Identifier: BSD-2-Clause - */ - -#pragma once - -#include -#include -#include - -#include -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; - } -}; - -}