Logo and banner
Some checks are pending
Continuous Integration / Rustfmt (push) Waiting to run
Continuous Integration / Clippy (push) Waiting to run
Continuous Integration / Check (push) Successful in 6m19s
Continuous Integration / Build (x86_64) (push) Successful in 1m18s

This commit is contained in:
August 2025-10-11 03:27:22 +00:00
parent 913353ed03
commit 044e928784
Signed by: shibedrill
GPG Key ID: 5FE0CB25945EFAA2
3 changed files with 18 additions and 1 deletions

View File

@ -1,4 +1,4 @@
timeout: 3
timeout: 0
/Gila
protocol: limine

View File

@ -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)
{

View File

@ -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());