diff --git a/configs/limine.conf b/configs/limine.conf index 7656d1e..82afbc8 100644 --- a/configs/limine.conf +++ b/configs/limine.conf @@ -1,4 +1,4 @@ -timeout: 3 +timeout: 0 /Gila protocol: limine diff --git a/src/kernel/constants.rs b/src/kernel/constants.rs index d6d7b31..84de7a2 100644 --- a/src/kernel/constants.rs +++ b/src/kernel/constants.rs @@ -71,6 +71,15 @@ pub fn kernel_version_string() -> String { ) } +pub static ASCII_LOGO: [&'static str; 6] = [ + " _ __ ", + " ____ _(_) /___ _", + " / __ `/ / / __ `/", + "/ /_/ / / / /_/ / ", + "\\__, /_/_/\\__,_/ ", + "/____/ ", +]; + // FUCKING ADD CONST UNWRAP!!! pub static KERNEL_VERSION_MAJOR: u8 = match u8::from_str_radix(env!("CARGO_PKG_VERSION_MAJOR"), 10) { diff --git a/src/kernel/main.rs b/src/kernel/main.rs index 9660e9b..72b4141 100644 --- a/src/kernel/main.rs +++ b/src/kernel/main.rs @@ -77,6 +77,14 @@ unsafe extern "C" fn main() -> ! { "Kernel file path: {}", String::from_utf8_lossy(EXECUTABLE_FILE_RESPONSE.file().path().to_bytes()) ); + + // Branding + for line in ASCII_LOGO { + let mut locked = SERIAL_3F8.lock(); + locked.log_write("\t\t"); + locked.log_writeln(line); + } + SERIAL_3F8.lock().log_writeln("\tWelcome to the Gila microkernel!\n"); log_info!("Booting gila version {}", kernel_version_string()); log_info!("Enabled features: {}", FEATURE_FLAGS.to_string());