Sync computers

This commit is contained in:
2026-02-28 18:55:10 +01:00
parent c3eb93e701
commit 9a983c56f3
29 changed files with 1564 additions and 28 deletions

View File

@@ -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");