1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-12 08:37:36 +00:00
serenity/Kernel/Arch/riscv64/InterruptController.h
Sönke Holz da88d766b2 Kernel/riscv64: Make the kernel compile
This commits inserts TODOs into all necessary places to make the kernel
compile on riscv64!
2023-11-10 15:51:31 -07:00

36 lines
744 B
C++

/*
* 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;
}
};
}