diff --git a/Cargo.lock b/Cargo.lock index fb0c39c8d..c01bab38b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -337,9 +337,9 @@ checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7" [[package]] name = "raw-cpuid" -version = "9.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c27cb5785b85bd05d4eb171556c9a1a514552e26123aeae6bb7d811353148026" +checksum = "eced3cf60359e752e6ad8965b85c22c1c5160ccb4f5033b40f883fff95ddfe02" dependencies = [ "bitflags", ] diff --git a/Cargo.toml b/Cargo.toml index c9b8d5a84..0642f8b2b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,7 +35,7 @@ pic8259 = "0.10.0" rand = { version = "0.8.4", default-features = false } rand_chacha = { version = "0.3.0", default-features = false } rand_core = { version = "0.6.3", default-features = false } -raw-cpuid = "9.0.0" +raw-cpuid = "10.0.0" sha2 = { version = "0.9.5", default-features = false, features = ["force-soft"] } smoltcp = { version = "0.7.5", default-features = false, features = ["alloc", "ethernet", "socket-tcp", "socket-udp", "proto-ipv4", "proto-dhcpv4"] } spin = "0.9.2" diff --git a/src/sys/cpu.rs b/src/sys/cpu.rs index 582b1cbd8..e69e9f5c9 100644 --- a/src/sys/cpu.rs +++ b/src/sys/cpu.rs @@ -7,10 +7,8 @@ pub fn init() { log!("CPU {}\n", vendor_info); } - if let Some(extended_function_info) = cpuid.get_extended_function_info() { - if let Some(processor_brand_string) = extended_function_info.processor_brand_string() { - log!("CPU {}\n", processor_brand_string.trim()); - } + if let Some(processor_brand_string) = cpuid.get_processor_brand_string() { + log!("CPU {}\n", processor_brand_string.as_str().trim()); } if let Some(processor_frequency_info) = cpuid.get_processor_frequency_info() {