CPUID report log
This commit is contained in:
parent
315c8e33b7
commit
0399650788
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user