Better example

pull/11/head
ondra05 2023-08-22 15:57:57 +02:00
parent ede8de509e
commit 9f2fea5eef
No known key found for this signature in database
GPG Key ID: 0DA6D2BB2285E881
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(