|
|
@ -1,4 +1,4 @@
|
|
|
|
#![no_std]
|
|
|
|
#![cfg_attr(not(test), no_std)]
|
|
|
|
#![feature(alloc)]
|
|
|
|
#![feature(alloc)]
|
|
|
|
#![feature(const_fn)]
|
|
|
|
#![feature(const_fn)]
|
|
|
|
#![feature(linkage)]
|
|
|
|
#![feature(linkage)]
|
|
|
@ -6,16 +6,9 @@
|
|
|
|
#![feature(vec_resize_default)]
|
|
|
|
#![feature(vec_resize_default)]
|
|
|
|
#![feature(asm)]
|
|
|
|
#![feature(asm)]
|
|
|
|
#![feature(exact_size_is_empty)]
|
|
|
|
#![feature(exact_size_is_empty)]
|
|
|
|
|
|
|
|
#![feature(extern_crate_item_prelude)]
|
|
|
|
|
|
|
|
|
|
|
|
extern crate alloc;
|
|
|
|
extern crate alloc;
|
|
|
|
#[macro_use]
|
|
|
|
|
|
|
|
extern crate log;
|
|
|
|
|
|
|
|
extern crate spin;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// To use `println!` in test
|
|
|
|
|
|
|
|
#[cfg(test)]
|
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
|
|
|
|
extern crate std;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mod process_manager;
|
|
|
|
mod process_manager;
|
|
|
|
mod processor;
|
|
|
|
mod processor;
|
|
|
@ -24,5 +17,5 @@ pub mod thread;
|
|
|
|
mod event_hub;
|
|
|
|
mod event_hub;
|
|
|
|
mod interrupt;
|
|
|
|
mod interrupt;
|
|
|
|
|
|
|
|
|
|
|
|
pub use process_manager::*;
|
|
|
|
pub use crate::process_manager::*;
|
|
|
|
pub use processor::Processor;
|
|
|
|
pub use crate::processor::Processor;
|
|
|
|