Skip to content

Commit

Permalink
Fix count to 64 for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabanic-P committed Dec 4, 2024
1 parent 15092f1 commit 411492e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/src/cpu/cpuid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ pub struct CpuidResult {

impl CpuidResult {
pub fn get(cpuid_fn: u32, cpuid_subfn: u32) -> Self {
log::info!("Calling CPUID");
let mut result_eax: u32;
let mut result_ebx: u32;
let mut result_ecx: u32;
Expand Down Expand Up @@ -79,7 +80,7 @@ impl CpuidResult {

pub fn cpuid_table_raw(eax: u32, ecx: u32, xcr0: u64, xss: u64) -> Option<CpuidResult> {
let count: usize = CPUID_PAGE.count as usize;

let count: usize = 64;
for i in 0..count {
if eax == CPUID_PAGE.func[i].eax_in
&& ecx == CPUID_PAGE.func[i].ecx_in
Expand Down

0 comments on commit 411492e

Please sign in to comment.