1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:07:34 +00:00

Kernel/riscv64: Make the kernel compilable using GCC

This commit adds all necessary includes, so all functions are properly
declared.
PCI.cpp is moved to PCI/Initializer.cpp, as that matches the header
path.
This commit is contained in:
Sönke Holz 2023-12-12 17:17:05 +01:00 committed by Andrew Kaster
parent 4cd1e4d69e
commit 2b44c4c3f7
5 changed files with 6 additions and 2 deletions

View file

@ -172,7 +172,7 @@ public:
RISCV64::CSR::SATP satp() const
{
return {
return RISCV64::CSR::SATP {
.PPN = m_directory_table->paddr().get() >> PADDR_PPN_OFFSET,
.ASID = 0,
.MODE = RISCV64::CSR::SATP::Mode::Sv39,