mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Add a global interface
This commit is contained in:
10
src/main.rs
10
src/main.rs
@@ -7,7 +7,15 @@ mod vga_buffer;
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn _start() -> ! {
|
||||
vga_buffer::print_something();
|
||||
use core::fmt::Write;
|
||||
vga_buffer::WRITER.lock().write_str("Hello again").unwrap();
|
||||
write!(
|
||||
vga_buffer::WRITER.lock(),
|
||||
", some numbers: {} {}",
|
||||
42,
|
||||
1.337
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
loop {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user