Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
KouweiLee committed Sep 13, 2023
1 parent ccf671d commit b294c1c
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions modules/axruntime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ static INITED_CPUS: AtomicUsize = AtomicUsize::new(0);
fn is_init_ok() -> bool {
INITED_CPUS.load(Ordering::Acquire) == axconfig::SMP
}

#[cfg(feature = "alloc")]
cfg_if::cfg_if! {
if #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] {
unsafe fn get_boot_str() -> &'static str {
Expand All @@ -129,21 +131,7 @@ cfg_if::cfg_if! {
}
}
}
// fn get_boot_str() -> &'static str {
// if cfg!(any(target_arch = "x86", target_arch = "x86_64")) {
// let cmdline_buf: &[u8] = &axhal::COMLINE_BUF;
// let mut len = 0;
// for c in cmdline_buf.iter() {
// if *c == 0 {
// break;
// }
// len += 1;
// }
// core::str::from_utf8(&cmdline_buf[..len]).unwrap()
// } else {
// dtb::get_node("chosen").unwrap().prop("bootargs").str()
// };
// }

/// The main entry point of the ArceOS runtime.
///
/// It is called from the bootstrapping code in [axhal]. `cpu_id` is the ID of
Expand Down

0 comments on commit b294c1c

Please sign in to comment.