diff options
| author | Michal Idziorek <m.i@gmx.at> | 2015-05-18 01:31:58 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2015-05-18 01:31:58 +0200 |
| commit | fe79552d9fcfd60d8c2bb828c6b93cf471ef7b75 (patch) | |
| tree | 7bf842857ce4f485101848292405a96f322fe374 /kernel/kernel.c | |
| parent | db22b587966b4a4eaa47536f32ca812532446bcb (diff) | |
fifo interface
Diffstat (limited to 'kernel/kernel.c')
| -rw-r--r-- | kernel/kernel.c | 8 |
1 files changed, 5 insertions, 3 deletions
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); + } |
