mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:37:35 +00:00
Kernel: Print Aarch64 CPU features during CPU initialization
This commit is contained in:
parent
a8e9591bac
commit
6979cf230e
2 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,7 @@
|
|||
#include <Kernel/Arch/TrapFrame.h>
|
||||
#include <Kernel/Arch/aarch64/ASM_wrapper.h>
|
||||
#include <Kernel/Arch/aarch64/CPU.h>
|
||||
#include <Kernel/Arch/aarch64/CPUID.h>
|
||||
#include <Kernel/InterruptDisabler.h>
|
||||
#include <Kernel/Process.h>
|
||||
#include <Kernel/Random.h>
|
||||
|
@ -30,6 +31,7 @@ Processor* g_current_processor;
|
|||
void Processor::install(u32 cpu)
|
||||
{
|
||||
VERIFY(g_current_processor == nullptr);
|
||||
m_cpu = cpu;
|
||||
m_features = detect_cpu_features();
|
||||
|
||||
initialize_exceptions(cpu);
|
||||
|
@ -39,6 +41,7 @@ void Processor::install(u32 cpu)
|
|||
|
||||
void Processor::initialize()
|
||||
{
|
||||
dmesgln("CPU[{}]: Supports {}", m_cpu, build_cpu_feature_names(m_features));
|
||||
}
|
||||
|
||||
[[noreturn]] void Processor::halt()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue