summaryrefslogtreecommitdiff
path: root/kernel/console.c
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-09-02 18:11:49 +0200
committerMichal Idziorek <m.i@gmx.at>2014-09-02 18:11:49 +0200
commit779c5755f6ddcc8680a2b4a3fa3606d930309ecc (patch)
tree36437d59d94ea70b1bf8b34c890db5cb01100c68 /kernel/console.c
parent1e00cdb70f80705751a6f84266171654ed3ab523 (diff)
Finally Fix paging bug! Hooray!
Diffstat (limited to 'kernel/console.c')
-rw-r--r--kernel/console.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/kernel/console.c b/kernel/console.c
index 16cf04f..e06da45 100644
--- a/kernel/console.c
+++ b/kernel/console.c
@@ -1,7 +1,6 @@
#include "console.h"
-#define FOOLOS_CONSOLE
-//#undef FOOLOS_CONSOLE
+//#define FOOLOS_CONSOLE
static int posx=0;
static int posy=0;
@@ -10,11 +9,11 @@ static int posy=0;
void print_char_col(int x, int y, char c, char col)
{
-//#ifdef FOOLOS_CONSOLE
+#ifdef FOOLOS_CONSOLE
char* video_mem=(char *)SCR_VIDEOMEM+(x+y*SCR_REAL_WIDTH)*2;
video_mem[0]=c;
video_mem[1]=col;
-//#endif
+#endif
}
void print_char(int x, int y, char c)