From 1edc0882a73533ac0a1d9451b0249a816654af8d Mon Sep 17 00:00:00 2001 From: greg Date: Sat, 6 Jun 2015 02:53:38 -0700 Subject: [PATCH] Add a kernel logo This should get displayed as the first thing the kernel does after initializing the console --- kern/init.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); -- 2.34.1