implemented println! macro
This commit is contained in:
parent
f94b8537cf
commit
16e1bc308f
2 changed files with 29 additions and 11 deletions
|
@ -11,9 +11,7 @@ static HELLO: &[u8] = b"Hello toto :3";
|
|||
// looks for a function named `_start` by default
|
||||
#[unsafe(no_mangle)]
|
||||
pub extern "C" fn _start() -> ! {
|
||||
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();
|
||||
println!("smoking cigarettes in the shower\nwhen they get wet i just light another\n:{}", 3);
|
||||
|
||||
loop {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue