Browse Source

Nicer startup message

master
3moon 8 years ago
parent
commit
ea581fceec
2 changed files with 6 additions and 1 deletions
  1. +3
    -1
      src/lib.rs
  2. +3
    -0
      src/misc.rs

+ 3
- 1
src/lib.rs View File

@ -11,6 +11,7 @@ extern crate volatile;
mod arch; mod arch;
#[macro_use] #[macro_use]
mod macros; mod macros;
mod misc;
use arch::x86_64::device::vga_console; use arch::x86_64::device::vga_console;
@ -22,7 +23,8 @@ pub extern fn kernel_main() {
///////////////////////////////////////// /////////////////////////////////////////
vga_console::WRITER.lock().clear_screen(); vga_console::WRITER.lock().clear_screen();
println!("Hello world!");
println!("--- Sparkle v{} booting! ---", ::misc::VERSION);
loop {} loop {}


+ 3
- 0
src/misc.rs View File

@ -0,0 +1,3 @@
//! Miscellaneous things, mostly constants baked in at compile time.
pub const VERSION: &'static str = env!("CARGO_PKG_VERSION");

Loading…
Cancel
Save