mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:17:44 +00:00
Kernel/riscv64: Make the kernel compile
This commits inserts TODOs into all necessary places to make the kernel compile on riscv64!
This commit is contained in:
parent
b6ac2ed34d
commit
da88d766b2
37 changed files with 633 additions and 5 deletions
36
Kernel/Arch/riscv64/InterruptController.h
Normal file
36
Kernel/Arch/riscv64/InterruptController.h
Normal file
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
* 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