mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 02:07:35 +00:00
Kernel: Detect Aarch64 virtual address bit width with CPU ID registers
This commit is contained in:
parent
401fc6afae
commit
5791072280
4 changed files with 21 additions and 2 deletions
|
@ -89,8 +89,7 @@ public:
|
|||
|
||||
ALWAYS_INLINE u8 virtual_address_bit_width() const
|
||||
{
|
||||
TODO_AARCH64();
|
||||
return 0;
|
||||
return m_virtual_address_bit_width;
|
||||
}
|
||||
|
||||
ALWAYS_INLINE static bool is_initialized()
|
||||
|
@ -286,6 +285,7 @@ private:
|
|||
u32 m_cpu;
|
||||
CPUFeature::Type m_features;
|
||||
u8 m_physical_address_bit_width;
|
||||
u8 m_virtual_address_bit_width;
|
||||
|
||||
Thread* m_current_thread;
|
||||
Thread* m_idle_thread;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue