1
0
Fork 0
forked from AbleOS/ableos

Better example

This commit is contained in:
Erin 2023-08-22 15:57:57 +02:00 committed by ondra05
parent cbed32526b
commit 3c45720fa3
5 changed files with 11 additions and 11 deletions

View file

@ -1,13 +1,13 @@
use core::{future::Future, task::Poll};
use hbvm::{
mem::{softpaging::icache::ICache, Address},
Vm, VmRunError, VmRunOk,
};
use {
alloc::boxed::Box,
hbvm::mem::softpaging::{HandlePageFault, SoftPagedMem},
core::{future::Future, task::Poll},
hbvm::{
mem::{
softpaging::{icache::ICache, HandlePageFault, SoftPagedMem},
Address,
},
Vm, VmRunError, VmRunOk,
},
};
const TIMER_QUOTIENT: usize = 100;

Binary file not shown.

Binary file not shown.

View file

@ -18,7 +18,7 @@ TERM_BACKDROP=008080
# Setting a default resolution for the framebuffer
RESOLUTION=1024x768x24
MODULE_PATH=boot:///inf_loop.hb
MODULE_PATH=boot:///failure.hb
MODULE_CMDLINE="diskid=123456789"
MODULE_PATH=boot:///ecall.hb

View file

@ -110,8 +110,8 @@ fn get_fs() -> Result<FileSystem<impl ReadWriteSeek>, io::Error> {
&mut fs.root_dir().create_file("background.bmp")?,
)?;
io::copy(
&mut File::open("repbuild/holeybytes/inf_loop.hb")?,
&mut fs.root_dir().create_file("inf_loop.hb")?,
&mut File::open("repbuild/holeybytes/failure.hb")?,
&mut fs.root_dir().create_file("failure.hb")?,
)?;
io::copy(