diff options
Diffstat (limited to 'src/kernel.c')
-rw-r--r-- | src/kernel.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/kernel.c b/src/kernel.c index 2cbe40a..69a3870 100644 --- a/src/kernel.c +++ b/src/kernel.c @@ -3,6 +3,7 @@ #include "vga.h" #include "serial.h" #include "console.h" +#include "stdlib.h" void entry( void ) { @@ -11,14 +12,17 @@ void entry( void ) vga_t vga; vga_init( &vga ); + vga_set_color( &vga, VGA_COLOR_LIGHT_GREY ); + vga_set_background_color( &vga, VGA_COLOR_BLACK ); console_t console; console_init( &console ); console_add_vga_output( &console, &vga ); console_add_serial_output( &console, &serial ); - - vga_set_color( &vga, VGA_COLOR_LIGHT_GREY ); - vga_set_background_color( &vga, VGA_COLOR_BLACK ); + +// for IDT testing +// int y = 0; +// int x = 12 / y; console_put_string( &console, "Initializing hardware" ); @@ -43,6 +47,7 @@ void entry( void ) console_put_string( &console, "Terminating" ); console_put_newline( &console ); + //~ vga_set_color( &vga, VGA_COLOR_WHITE ); //~ vga_set_background_color( &vga, VGA_COLOR_RED ); |