Bump Rust version to nightly-2025-02-18(2024 Edition)
This commit is contained in:
parent
123595601d
commit
5b846fce6a
44 changed files with 118 additions and 105 deletions
|
@ -23,20 +23,20 @@ mod switch;
|
|||
#[allow(rustdoc::private_intra_doc_links)]
|
||||
mod task;
|
||||
|
||||
use crate::fs::{open_file, OpenFlags};
|
||||
use crate::fs::{OpenFlags, open_file};
|
||||
use crate::sbi::shutdown;
|
||||
use alloc::sync::Arc;
|
||||
pub use context::TaskContext;
|
||||
use lazy_static::*;
|
||||
pub use manager::{fetch_task, TaskManager};
|
||||
pub use manager::{TaskManager, fetch_task};
|
||||
use switch::__switch;
|
||||
use task::{TaskControlBlock, TaskStatus};
|
||||
|
||||
pub use manager::add_task;
|
||||
pub use pid::{pid_alloc, KernelStack, PidAllocator, PidHandle};
|
||||
pub use pid::{KernelStack, PidAllocator, PidHandle, pid_alloc};
|
||||
pub use processor::{
|
||||
current_task, current_trap_cx, current_user_token, run_tasks, schedule, take_current_task,
|
||||
Processor,
|
||||
Processor, current_task, current_trap_cx, current_user_token, run_tasks, schedule,
|
||||
take_current_task,
|
||||
};
|
||||
/// Suspend the current 'Running' task and run the next task in task list.
|
||||
pub fn suspend_current_and_run_next() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue