add hello world init program

This commit is contained in:
Matthieu Jolimaitre 2024-10-28 16:09:11 +01:00
parent 427a0c997d
commit 29a669a7cb
3 changed files with 9 additions and 2 deletions

View file

@ -12,7 +12,6 @@ mod program;
mod util;
use core::panic::PanicInfo;
use program::shell;
use bootloader::{entry_point, BootInfo};
use dev::memory;
@ -25,7 +24,8 @@ fn kernel_main(boot_info: &'static BootInfo) -> ! {
int::init();
memory::init(boot_info.physical_memory_offset, &boot_info.memory_map);
println!("Finished initializations.");
shell::main();
program::shell::main();
// program::hello_world::main();
panic!("Exiting.")
}

View file

@ -0,0 +1,6 @@
use crate::{print, println, util::spin};
pub fn main() -> ! {
println!("Hello World !");
spin()
}

View file

@ -1 +1,2 @@
pub mod hello_world;
pub mod shell;