CPUID report log

This commit is contained in:
August 2025-10-01 17:28:24 -04:00
parent 315c8e33b7
commit 0399650788
Signed by: shibedrill
GPG Key ID: 5FE0CB25945EFAA2

View File

@ -124,6 +124,17 @@ unsafe extern "C" fn main() -> ! {
arch::x86_64::paging::get_mappings();
let cpuid = raw_cpuid::CpuId::new();
if let Some(string) = cpuid.get_processor_brand_string() {
log_info!("CPU brand string: {}", string.as_str());
}
if let Some(string) = cpuid.get_vendor_info() {
log_info!("CPU vendor: {}", string.as_str());
}
if let Some(string) = cpuid.get_hypervisor_info() {
log_info!("Hypervisor: {:?}", string.identify());
}
panic!("Bailing");
#[allow(unreachable_code)]