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

Kernel: Rename some ProcessorInfo members to match Intel manual

Let's use terminology from the the Intel manual to avoid confusion.
Also add `_string` suffixes to better distinguish the numeric values
from the string values.
This commit is contained in:
Linus Groh 2022-04-03 16:38:45 +01:00 committed by Andreas Kling
parent ebe2cf8995
commit 53a95a5347
3 changed files with 17 additions and 16 deletions

View file

@ -13,9 +13,9 @@
namespace Kernel {
ProcessorInfo::ProcessorInfo(Processor const& processor)
: m_cpuid(query_processor_cpuid())
, m_brand(query_processor_brand())
, m_features(processor.features_string())
: m_vendor_id_string(build_vendor_id_string())
, m_brand_string(build_brand_string())
, m_features_string(processor.features_string())
{
CPUID cpuid(1);
m_stepping = cpuid.eax() & 0xf;
@ -36,7 +36,7 @@ ProcessorInfo::ProcessorInfo(Processor const& processor)
}
}
NonnullOwnPtr<KString> ProcessorInfo::query_processor_cpuid()
NonnullOwnPtr<KString> ProcessorInfo::build_vendor_id_string()
{
CPUID cpuid(0);
StringBuilder builder;
@ -53,7 +53,7 @@ NonnullOwnPtr<KString> ProcessorInfo::query_processor_cpuid()
return KString::must_create(builder.string_view());
}
NonnullOwnPtr<KString> ProcessorInfo::query_processor_brand()
NonnullOwnPtr<KString> ProcessorInfo::build_brand_string()
{
u32 max_extended_leaf = CPUID(0x80000000).eax();