From: greg Date: Sat, 6 Jun 2015 09:53:38 +0000 (-0700) Subject: Add a kernel logo X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=1edc0882a73533ac0a1d9451b0249a816654af8d;p=arcanos.git Add a kernel logo This should get displayed as the first thing the kernel does after initializing the console --- diff --git a/kern/init.c b/kern/init.c index 8f41e58..77bebb6 100644 --- a/kern/init.c +++ b/kern/init.c @@ -15,6 +15,7 @@ extern void keyboard_isr(); extern void syscall_isr(); extern void load_partitions(); +void display_kernel_logo(void); void i386_init(multiboot_info_t* mbi); void kernel_main( void* mbd, unsigned int magic ) @@ -31,6 +32,14 @@ void kernel_main( void* mbd, unsigned int magic ) i386_init((multiboot_info_t*)mbd); } +void +display_kernel_logo() +{ + _kern_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"); + _kern_print("~~~~Welcome to ARCAN-OS~~~~~\n"); + _kern_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"); +} + void i386_init(multiboot_info_t* mbi) { @@ -47,6 +56,7 @@ i386_init(multiboot_info_t* mbi) int j; console_init(); + display_kernel_logo(); _kern_print("Arcanos version %s\n", ARCANOS_VERSION); _kern_print("Kernel mapped to address 0x%x\n", KERNBASE);