Better virtual file system, keyboard through MMIO&VirtIO

This commit is contained in:
2026-03-05 14:41:28 +01:00
parent 041e544330
commit 9b6aec28f5
37 changed files with 1191 additions and 355 deletions

View File

@@ -1,5 +1,7 @@
#![no_std]
#![no_main]
use os_std::syscall;
os_std::custom_std_setup! {}
fn main() {
@@ -9,5 +11,13 @@ fn main() {
for _ in 0..100 {
test.push('C');
}
println!("Hello from PIC program loaded dynamically with custom std and a better justfile, and syscalls ! {}", test);
// let mut file = syscall::open("/dev/fb0");
// syscall::seek(&mut file, SeekFrom::End(-3));
// syscall::write(&mut file, &[255; 6400 * 50]);
let mut file = syscall::open("/dev/tty0");
syscall::write(&mut file, b"Hi !\nnice tty\x08");
println!(
"Hello from PIC program loaded dynamically with custom std and a better justfile, and syscalls ! {}",
test
);
}