Skip to content

Commit

Permalink
Merge pull request arceos-org#211 from qclic/fix/phytium-build
Browse files Browse the repository at this point in the history
[fix] phytium pi build error
  • Loading branch information
equation314 authored Dec 10, 2024
2 parents a569e7c + 0b3fb2c commit 94f31ed
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 94f31ed

Please sign in to comment.