added a static Writer to reuse in the program

This commit is contained in:
clizia 2025-08-26 23:44:17 +02:00
parent 2bd6ba35fc
commit daec1c75bf
3 changed files with 40 additions and 17 deletions

View file

@ -11,8 +11,10 @@ static HELLO: &[u8] = b"Hello toto :3";
// looks for a function named `_start` by default
#[unsafe(no_mangle)]
pub extern "C" fn _start() -> ! {
vga_buffer::print_something();
use core::fmt::Write;
vga_buffer::WRITER.lock().write_str("TOTOTO !!!! :3").unwrap();
write!(vga_buffer::WRITER.lock(), ", smoking cigarette in the shower when they get wet i just light another :{}", 3).unwrap();
loop {}
}