From fe79552d9fcfd60d8c2bb828c6b93cf471ef7b75 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Mon, 18 May 2015 01:31:58 +0200 Subject: fifo interface --- kernel/kernel.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'kernel/kernel.c') diff --git a/kernel/kernel.c b/kernel/kernel.c index 0fb337f..dd3f502 100644 --- a/kernel/kernel.c +++ b/kernel/kernel.c @@ -11,6 +11,7 @@ #include "types.h" #include "lib/logger/log.h" +#include "fifo.h" #include "timer.h" #include "mem.h" #include "vmem.h" @@ -28,7 +29,6 @@ #include "terminal/vt52.h" #include "driver/console.h" -#include "fs/fifo.h" // // The Foolish structure of Fool OS! @@ -61,8 +61,7 @@ static void stdin_put_char(uint8_t c) static void init_stdio() { - fifo in=fifo_init(1); - fifo out=fifo_init(1); +// get_fool().std_in // // Setup terminal output / input @@ -75,8 +74,11 @@ static void init_stdio() input.put_char=stdin_put_char; tty1=vt52_init(&screen,&input); + get_fool()->std_out.data=&tty1; + get_fool()->std_out.put=vt52_put; keyboard_init(put_kb); + } -- cgit v1.2.3