This commit is contained in:
Able 2022-02-05 00:26:32 -06:00
parent 20b9947a88
commit 706c17c74f
3 changed files with 8 additions and 11 deletions

View file

@ -41,11 +41,7 @@ pub fn kernel_main() -> ! {
log::set_max_level(BOOT_CONF.log_level()); log::set_max_level(BOOT_CONF.log_level());
// init::init(); // init::init();
if (|| true)() || (|| false)() { log_version_data();
()
} else {
((), ());
}
/* /*
@ -141,10 +137,7 @@ use uefi::{
}; };
use uefi::{proto::console::gop::FrameBuffer, ResultExt}; use uefi::{proto::console::gop::FrameBuffer, ResultExt};
use crate::{ use crate::{vterm::Vterm, GraphicsReturn, ScreenBuffer};
vterm::{self, Vterm},
GraphicsReturn, ScreenBuffer,
};
#[entry] #[entry]
fn main(_handle: Handle, mut system_table: SystemTable<Boot>) -> Status { fn main(_handle: Handle, mut system_table: SystemTable<Boot>) -> Status {
@ -161,8 +154,6 @@ fn main(_handle: Handle, mut system_table: SystemTable<Boot>) -> Status {
info!("UEFI {}.{}", major, minor); info!("UEFI {}.{}", major, minor);
} }
log_version_data();
info!("Running graphics output protocol test"); info!("Running graphics output protocol test");
if let Ok(gop) = system_table if let Ok(gop) = system_table
.boot_services() .boot_services()

0
root_fs/LAYOUT.md Normal file
View file

6
root_fs/init_proc.toml Normal file
View file

@ -0,0 +1,6 @@
# Run all processes here at boot
# This is a sample process
[helloworld] # This is the name of the process
binary = "bin://hello" # This is the binary to run
spawn_order = "1" # Spawn order of the processes (lower is earlier)
arguments = ["--name", "Hello World"] # Arguments to pass to the binary