Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
ZR233 committed Dec 10, 2024
1 parent a569e7c commit 0b3fb2c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/axhal/src/platform/aarch64_phytium_pi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,8 @@ pub fn platform_init_secondary() {
}

fn cpu_hard_id_to_logic_id(hard_id: usize) -> usize {
CPU_ID_LIST.iter().position(|&x| x == hard_id).unwrap()
axconfig::CPU_ID_LIST
.iter()
.position(|&x| x == hard_id)
.unwrap()
}

0 comments on commit 0b3fb2c

Please sign in to comment.