added a static Writer to reuse in the program
This commit is contained in:
parent
2bd6ba35fc
commit
daec1c75bf
3 changed files with 40 additions and 17 deletions
|
@ -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 {}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue