summaryrefslogtreecommitdiff
path: root/kernel/kernel.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/kernel.c')
-rw-r--r--kernel/kernel.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/kernel/kernel.c b/kernel/kernel.c
index 401204a..8bd60ca 100644
--- a/kernel/kernel.c
+++ b/kernel/kernel.c
@@ -16,6 +16,7 @@
#include "console.h"
+#include <stddef.h>
// for built-in shell
#include "lib/buffer/ringbuffer.h"
@@ -25,6 +26,22 @@
// mp informs us if this if this is the main processor
void kernel_main(uint32_t initial_stack, int mp)
{
+
+/*
+ int i=0;
+ while(true)
+ {
+ size_t *terminal_buffer = (uint16_t*) 0xB8000;
+ uint16_t c16='X';
+ i++;
+ if (i%2)c16='_';
+
+ c16 = c16 | 4 << 8;
+ terminal_buffer[2] = c16;
+ }
+ */
+
+
log(FOOLOS_MODULE_NAME,FOOLOS_LOG_INFO,"initial_stack: 0x%08X",initial_stack);
//
// Configuring the PIT timer.
@@ -55,7 +72,7 @@ void kernel_main(uint32_t initial_stack, int mp)
// log buffered messages to console
log_log();
- while(1);
+ //while(1);
//
// Setup Interrupts (code segment: 0x08)