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:
parent
3a24eb323f
commit
d0b9c7a20b
4 changed files with 54 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue