1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:07: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

@ -84,8 +84,7 @@ public:
ALWAYS_INLINE u8 physical_address_bit_width() const
{
TODO_AARCH64();
return 0;
return m_physical_address_bit_width;
}
ALWAYS_INLINE u8 virtual_address_bit_width() const
@ -286,6 +285,7 @@ private:
u32 m_cpu;
CPUFeature::Type m_features;
u8 m_physical_address_bit_width;
Thread* m_current_thread;
Thread* m_idle_thread;