Sync computers
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
ptr_metadata
|
||||
)]
|
||||
|
||||
use alloc::boxed::Box;
|
||||
use embedded_alloc::LlffHeap as Heap;
|
||||
use log::info;
|
||||
|
||||
@@ -38,6 +39,7 @@ mod panic_handler;
|
||||
mod process;
|
||||
mod riscv;
|
||||
mod scheduler;
|
||||
mod syscall;
|
||||
mod time;
|
||||
mod uart;
|
||||
mod user;
|
||||
@@ -63,8 +65,8 @@ pub extern "C" fn supervisor_mode_entry() {
|
||||
info!("Hello World !");
|
||||
unsafe { Vga::draw_string(10, 10, "Hello World !", Color::WHITE, Color::BLACK) };
|
||||
|
||||
create_process(&test, "proc1");
|
||||
create_process(&proc2, "proc2");
|
||||
create_process(Box::new(test), "proc1");
|
||||
create_process(Box::new(proc2), "proc2");
|
||||
|
||||
create_process_from_file("/usr/bin/test_pic");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user