diff options
| author | Michal Idziorek <m.i@gmx.at> | 2015-05-18 00:48:07 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2015-05-18 00:48:07 +0200 |
| commit | db22b587966b4a4eaa47536f32ca812532446bcb (patch) | |
| tree | b6d471f5232973713ef64d9c81feefef51ee5eaf /kernel/syscalls.c | |
| parent | 042e25e19b5fc0cec1d47440c26246c886cf39f6 (diff) | |
heavy refactoring underway
Diffstat (limited to 'kernel/syscalls.c')
| -rw-r--r-- | kernel/syscalls.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/syscalls.c b/kernel/syscalls.c index 1d63ba4..9900567 100644 --- a/kernel/syscalls.c +++ b/kernel/syscalls.c @@ -1,6 +1,5 @@ #define FOOLOS_MODULE_NAME "syscalls" -#include "lib/buffer/ringbuffer.h" #include "lib/logger/log.h" #include "fs/fs.h" #include "fs/ext2.h" @@ -44,7 +43,7 @@ int syscall_write(int file, char *buf, int len) //stderr and stdout go to console for(int i=0;i<len;i++) { - vt52_put( get_fool()->tty1,buf[i]); + fifo_put(&get_fool()->fifo_stdout,buf[i]); } lock_release(2); //x86_int_enable(); @@ -75,7 +74,8 @@ int syscall_read(int file, char *buf, int len) while(1) { - bool ret=ringbuffer_get(&c); +// bool ret=ringbuffer_get(&c); + bool ret=false; if(ret) { |
