forked from AbleOS/ableos
Better example
This commit is contained in:
parent
cbed32526b
commit
3c45720fa3
|
@ -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;
|
||||
|
|
BIN
repbuild/holeybytes/failure.hb
Normal file
BIN
repbuild/holeybytes/failure.hb
Normal file
Binary file not shown.
Binary file not shown.
|
@ -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
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue