mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
Kernel: Print Aarch64 CPU features during CPU initialization
This commit is contained in:
parent
a8e9591bac
commit
6979cf230e
Notes:
sideshowbarker
2024-07-19 16:58:38 +09:00
Author: https://github.com/konradekk
Commit: 6979cf230e
Pull-request: https://github.com/SerenityOS/serenity/pull/16781
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/gmta
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