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

Kernel: Detect Aarch64 physical address bit width with CPU ID registers

This commit is contained in:
konrad 2023-01-08 12:21:40 +01:00 committed by Jelle Raaijmakers
parent 66c65f6e2c
commit 401fc6afae
4 changed files with 32 additions and 2 deletions

View file

@ -33,6 +33,7 @@ void Processor::install(u32 cpu)
VERIFY(g_current_processor == nullptr);
m_cpu = cpu;
m_features = detect_cpu_features();
m_physical_address_bit_width = detect_physical_address_bit_width();
initialize_exceptions(cpu);
@ -42,6 +43,7 @@ void Processor::install(u32 cpu)
void Processor::initialize()
{
dmesgln("CPU[{}]: Supports {}", m_cpu, build_cpu_feature_names(m_features));
dmesgln("CPU[{}]: Physical address bit width: {}", m_cpu, m_physical_address_bit_width);
}
[[noreturn]] void Processor::halt()