fix: use info! macro instead of log::info! in startup/mod.rs

This commit is contained in:
2026-07-11 15:02:30 +03:00
parent 501275f1f5
commit ccae87cf90
+5 -5
View File
@@ -137,10 +137,10 @@ pub(crate) fn init_env() -> &'static [u8] {
}
extern "C" fn userspace_init() {
log::info!("userspace_init: entered bootstrap context");
info!("userspace_init: entered bootstrap context");
let mut token = unsafe { CleanLockToken::new() };
let bootstrap = BOOTSTRAP.get().expect("BOOTSTRAP was not set");
log::info!("userspace_init: calling usermode_bootstrap");
info!("userspace_init: calling usermode_bootstrap");
unsafe { crate::syscall::process::usermode_bootstrap(bootstrap, &mut token) }
}
@@ -191,7 +191,7 @@ pub(crate) fn kmain(bootstrap: Bootstrap) -> ! {
}
numa::dump_info();
log::info!("kmain: dump_info done, calling run_userspace");
info!("kmain: dump_info done, calling run_userspace");
run_userspace(&mut token)
}
@@ -236,13 +236,13 @@ fn run_userspace(token: &mut CleanLockToken) -> ! {
SwitchResult::Switched => {
switch_count += 1;
if switch_count <= 5 || switch_count % 10000 == 0 {
log::info!("run_userspace: switch {} completed", switch_count);
info!("run_userspace: switch {} completed", switch_count);
}
interrupt::enable_and_nop();
}
SwitchResult::AllContextsIdle => {
if switch_count == 0 {
log::info!("run_userspace: AllContextsIdle on first switch — no runnable contexts");
info!("run_userspace: AllContextsIdle on first switch — no runnable contexts");
}
switch_count += 1;
// Enable interrupts, then halt CPU (to save power) until the next interrupt is actually fired.