summaryrefslogtreecommitdiff
path: root/kernel/console.c
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-11-14 01:07:06 +0100
committerMichal Idziorek <m.i@gmx.at>2014-11-14 01:07:06 +0100
commit600ef9b4efed894db2c0a205dbbc10d36cf28852 (patch)
tree8a3915a8e47a4a78adad5f1195170ae083182c52 /kernel/console.c
parentb4a8f29ef338c6d2ee70723ff49811276713628a (diff)
switched bochs to term mode !
Diffstat (limited to 'kernel/console.c')
-rw-r--r--kernel/console.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/console.c b/kernel/console.c
index b6866a7..2fdd3c1 100644
--- a/kernel/console.c
+++ b/kernel/console.c
@@ -1,5 +1,19 @@
+#include "kernel/config.h"
+
+#ifdef FOOLOS_CONSOLE
+
#include "video/console.h"
void console_init(){scr_clear();}
void console_put_char(char c){scr_put_char(c,SCR_RED);}
void console_put_str(char *s){scr_put_string(s);}
+
+#else
+
+#include "video/vesa.h"
+
+void console_init(){uint32_t vesa_physbase=vesa_init(0x9300,0x9400,0x168000+512);}
+void console_put_char(char c){PutConsoleChar(c,0xffffff);}
+void console_put_str(char *s){PutConsole(s,0xffffff);}
+
+#endif