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

Kernel: Improve the aarch64 kernel source files disk layout

This commit is contained in:
James Mintram 2022-04-03 21:42:10 +01:00 committed by Linus Groh
parent b884c5746d
commit d94c7fa417
21 changed files with 23 additions and 12 deletions

View file

@ -0,0 +1,26 @@
/*
* Copyright (c) 2021, Nico Weber <thakis@chromium.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <Kernel/Arch/aarch64/MMIO.h>
#include <Kernel/Arch/aarch64/MainIdRegister.h>
namespace Prekernel {
MMIO::MMIO()
: m_base_address(0xFE00'0000)
{
MainIdRegister id;
if (id.part_num() <= MainIdRegister::RaspberryPi3)
m_base_address = 0x3F00'0000;
}
MMIO& MMIO::the()
{
static MMIO instance;
return instance;
}
}