From 3c45720fa3dc204d0bf8156391fd438ee40fb141 Mon Sep 17 00:00:00 2001 From: Erin Date: Tue, 22 Aug 2023 15:57:57 +0200 Subject: [PATCH] Better example --- kernel/src/holeybytes.rs | 16 ++++++++-------- repbuild/holeybytes/failure.hb | Bin 0 -> 17 bytes repbuild/holeybytes/inf_loop.hb | Bin 23 -> 0 bytes repbuild/limine.cfg | 2 +- repbuild/src/main.rs | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 repbuild/holeybytes/failure.hb delete mode 100644 repbuild/holeybytes/inf_loop.hb diff --git a/kernel/src/holeybytes.rs b/kernel/src/holeybytes.rs index 225ce3d3b..eb80658c0 100644 --- a/kernel/src/holeybytes.rs +++ b/kernel/src/holeybytes.rs @@ -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; diff --git a/repbuild/holeybytes/failure.hb b/repbuild/holeybytes/failure.hb new file mode 100644 index 0000000000000000000000000000000000000000..0cf46f6a39c8944b5fccfbb4d90d405d0f53d8fb GIT binary patch literal 17 Ocmd; Result, 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(