Logo and banner
This commit is contained in:
parent
913353ed03
commit
044e928784
@ -1,4 +1,4 @@
|
|||||||
timeout: 3
|
timeout: 0
|
||||||
|
|
||||||
/Gila
|
/Gila
|
||||||
protocol: limine
|
protocol: limine
|
||||||
|
@ -71,6 +71,15 @@ pub fn kernel_version_string() -> String {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub static ASCII_LOGO: [&'static str; 6] = [
|
||||||
|
" _ __ ",
|
||||||
|
" ____ _(_) /___ _",
|
||||||
|
" / __ `/ / / __ `/",
|
||||||
|
"/ /_/ / / / /_/ / ",
|
||||||
|
"\\__, /_/_/\\__,_/ ",
|
||||||
|
"/____/ ",
|
||||||
|
];
|
||||||
|
|
||||||
// FUCKING ADD CONST UNWRAP!!!
|
// FUCKING ADD CONST UNWRAP!!!
|
||||||
pub static KERNEL_VERSION_MAJOR: u8 = match u8::from_str_radix(env!("CARGO_PKG_VERSION_MAJOR"), 10)
|
pub static KERNEL_VERSION_MAJOR: u8 = match u8::from_str_radix(env!("CARGO_PKG_VERSION_MAJOR"), 10)
|
||||||
{
|
{
|
||||||
|
@ -77,6 +77,14 @@ unsafe extern "C" fn main() -> ! {
|
|||||||
"Kernel file path: {}",
|
"Kernel file path: {}",
|
||||||
String::from_utf8_lossy(EXECUTABLE_FILE_RESPONSE.file().path().to_bytes())
|
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!("Booting gila version {}", kernel_version_string());
|
||||||
log_info!("Enabled features: {}", FEATURE_FLAGS.to_string());
|
log_info!("Enabled features: {}", FEATURE_FLAGS.to_string());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user