common: add a logo

master
equation314 6 years ago
parent abf3418d24
commit 2e094d08bc

@ -19,6 +19,8 @@ pub extern "C" fn rust_main() -> ! {
// First init log mod, so that we can print log info. // First init log mod, so that we can print log info.
::logging::init(); ::logging::init();
super::fs::show_logo();
loop { loop {
print!(">> "); print!(">> ");
loop { loop {

@ -14,7 +14,21 @@ _binary_user_riscv_img_start:
_binary_user_riscv_img_end: _binary_user_riscv_img_end:
"#); "#);
const LOGO: &str = r#"
____ __ ____ _____
/ __ \ __ __ _____ / /_ / __ \/ ___/
/ /_/ // / / // ___// __// / / /\__ \
/ _, _// /_/ /(__ )/ /_ / /_/ /___/ /
/_/ |_| \__,_//____/ \__/ \____//____/
"#;
pub fn show_logo() {
println!("{}", LOGO);
}
pub fn shell() { pub fn shell() {
show_logo();
#[cfg(target_arch = "riscv32")] #[cfg(target_arch = "riscv32")]
let device = { let device = {
extern { extern {

Loading…
Cancel
Save