mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
Kernel: Add a class to wrap aarch64 MIDR_EL1
We'll need part_num() to determine the MMIO address base. It's 0x3F000000 on rpi3 but 0xFE000000 on rpi4.
This commit is contained in:
parent
2dc02607ed
commit
3c6ad4c7db
Notes:
sideshowbarker
2024-07-18 04:06:22 +09:00
Author: https://github.com/nico
Commit: 3c6ad4c7db
Pull-request: https://github.com/SerenityOS/serenity/pull/9992
Reviewed-by: https://github.com/linusg
4 changed files with 59 additions and 0 deletions
|
@ -5,10 +5,13 @@
|
|||
*/
|
||||
|
||||
#include <AK/Types.h>
|
||||
#include <Kernel/Prekernel/Arch/aarch64/MainIdRegister.h>
|
||||
|
||||
extern "C" [[noreturn]] void init();
|
||||
extern "C" [[noreturn]] void init()
|
||||
{
|
||||
Prekernel::MainIdRegister id;
|
||||
[[maybe_unused]] unsigned part_num = id.part_num();
|
||||
for (;;) { }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue