summaryrefslogtreecommitdiff
path: root/kernel/syscalls.c
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-08-20 03:18:04 +0200
committerMiguel <m.i@gmx.at>2018-08-20 03:18:04 +0200
commite4febc5aac3006c3ef025b5f708ec51fdac63b94 (patch)
treee00149a611589520bd6c99e1fe043385df583f5c /kernel/syscalls.c
parent39100c30b7a16103e75187c9840a79c7df54f3da (diff)
vesa works beuatifullyy
Diffstat (limited to 'kernel/syscalls.c')
-rw-r--r--kernel/syscalls.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/syscalls.c b/kernel/syscalls.c
index 0c334bc..db23a17 100644
--- a/kernel/syscalls.c
+++ b/kernel/syscalls.c
@@ -5,6 +5,7 @@
#include "fs/fs.h"
#include "fs/ext2.h"
#include "kernel.h"
+#include "driver/vesa.h"
#include "fifo.h"
#include "fd.h"
#include "terminal/terminal.h"
@@ -259,8 +260,14 @@ int syscall_open(char *name, int flags, int mode)
}
else
{
+ // FIRST TIME WE SEE THE GENIUS OF OUR ABSTRACTIONS (I HOPE...)
screen.put_char=console_put_char;
screen.update_cursor=update_cursor;
+
+ // FIRST TIME WE SEE THE GENIUS OF OUR ABSTRACTIONS (I HOPE...)
+ screen.put_char=vesa_console_put_char;
+ screen.update_cursor=vesa_update_cursor;
+
tty1=terminal_init(&screen,NULL);
fifos[next_fifo].data=&tty1;