Remove block device test.

This commit is contained in:
Yifan Wu 2020-12-16 17:44:09 +08:00
parent 1ad242a886
commit 15bc00732c
3 changed files with 2 additions and 2 deletions

View file

@ -20,6 +20,7 @@ lazy_static! {
pub static ref BLOCK_DEVICE: Arc<dyn BlockDevice> = Arc::new(BlockDeviceImpl::new());
}
#[allow(unused)]
pub fn block_device_test() {
let block_device = BLOCK_DEVICE.clone();
let mut write_buffer = [0u8; 512];

View file

@ -1,3 +1,3 @@
mod block;
pub use block::{BLOCK_DEVICE, block_device_test};
pub use block::BLOCK_DEVICE;

View file

@ -44,7 +44,6 @@ pub fn rust_main() -> ! {
println!("[kernel] Hello, world!");
mm::init();
mm::remap_test();
drivers::block_device_test();
task::add_initproc();
trap::init();
trap::enable_timer_interrupt();