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

Kernel: Add a MMIO class for aarch64

It doesn't do anything yet except figure out the peripheral base
address.

Very likely belongs in Kernel, not Prekernel, eventually.
This commit is contained in:
Nico Weber 2021-09-17 11:00:46 -04:00 committed by Linus Groh
parent 3a24eb323f
commit d0b9c7a20b
4 changed files with 54 additions and 3 deletions

View file

@ -5,15 +5,14 @@
*/
#include <AK/Types.h>
#include <Kernel/Prekernel/Arch/aarch64/MainIdRegister.h>
#include <Kernel/Prekernel/Arch/aarch64/MMIO.h>
extern "C" [[noreturn]] void halt();
extern "C" [[noreturn]] void init();
extern "C" [[noreturn]] void init()
{
Prekernel::MainIdRegister id;
[[maybe_unused]] unsigned part_num = id.part_num();
[[maybe_unused]] auto& MMIO = Prekernel::MMIO::the();
halt();
}