Try some filesystems

This commit is contained in:
2026-02-13 15:52:43 +01:00
parent 369ff5fef4
commit a53e11d6dd
9 changed files with 73 additions and 47 deletions

View File

@@ -5,7 +5,9 @@
riscv_ext_intrinsics,
const_trait_impl,
iter_map_windows,
str_from_raw_parts
str_from_raw_parts,
macro_metavar_expr,
macro_metavar_expr_concat
)]
use embedded_alloc::LlffHeap as Heap;
@@ -13,15 +15,15 @@ use log::info;
use crate::{
io::init_log,
process::create_processus,
process::create_process,
riscv::enable_supervisor_interrupt,
scheduler::{idle, scheduler_init},
tests_fat::MemoryDisk,
user::{proc2, test},
vga::{Color, Vga},
};
extern crate alloc;
mod boot;
mod critical_section;
mod interrupt;
@@ -31,6 +33,7 @@ mod process;
mod riscv;
mod scheduler;
mod syscall;
mod tests_fat;
mod time;
mod uart;
mod user;
@@ -56,8 +59,10 @@ pub extern "C" fn supervisor_mode_entry() {
info!("Hello World !");
unsafe { Vga::draw_string(10, 10, "Hello World !", Color::WHITE, Color::BLACK) };
create_processus(test, "proc1");
create_processus(proc2, "proc2");
create_process(test, "proc1");
create_process(proc2, "proc2");
MemoryDisk::new();
enable_supervisor_interrupt();
idle();