Better virtual file system, keyboard through MMIO&VirtIO
This commit is contained in:
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user