summaryrefslogtreecommitdiff
path: root/src/kernel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel.c')
-rw-r--r--src/kernel.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/kernel.c b/src/kernel.c
index 5080156..a3ff1d7 100644
--- a/src/kernel.c
+++ b/src/kernel.c
@@ -4,6 +4,7 @@
#include "serial.h"
#include "console.h"
#include "stdlib.h"
+#include "stdio.h"
#include "interrupts.h"
void entry( void )
@@ -20,16 +21,22 @@ void entry( void )
console_init( &console );
console_add_vga_output( &console, &vga );
console_add_serial_output( &console, &serial );
+
+ // initialize the early console of the kernel
+ stdio_set_console( &console );
+ puts( "Started early kernel console" );
+ printf( "Kernel code and data is at 0x%X, kernel stack at 0x%X\n", 0x8400, 0x90000 );
+ puts( "Initializing interrupts" );
interrupt_t interrupt;
interrupts_init( &interrupt );
//~ interrupts_enable( );
int y = 1;
int x = 12 / y;
- console_put_hex( &console, x );
+ printf( "Hex number is 0x%X and string is '%s'\n", x, "abaos" );
- console_put_string( &console, "Initializing hardware" );
+ console_put_string( &console, "Running.." );
const char bar[] = "\\|/-";
int y_pos = vga_get_cursor_y( &vga );
@@ -50,6 +57,5 @@ void entry( void )
console_put_newline( &console );
- console_put_string( &console, "Terminating" );
- console_put_newline( &console );
+ puts( "Terminating" );
}