From eed77bd2970a00d1394ed027ceca5b646e4671ce Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 17 Jun 2020 18:31:46 +0200 Subject: Started rewrite --- src/userspace/libc/stdio/putch.c | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 src/userspace/libc/stdio/putch.c (limited to 'src/userspace/libc/stdio/putch.c') diff --git a/src/userspace/libc/stdio/putch.c b/src/userspace/libc/stdio/putch.c deleted file mode 100644 index 2dad6dc..0000000 --- a/src/userspace/libc/stdio/putch.c +++ /dev/null @@ -1,22 +0,0 @@ -#include - -int is_transmit_empty() -{ - u8 value; - asm volatile("inb %1, %0" : "=a"(value) : "Nd"(0x3f8 + 5)); - return value & 0x20; -} - -void putch(char ch) -{ - while (is_transmit_empty() == 0) - ; - asm volatile("outb %0, %1" ::"a"(ch), "Nd"(0x3f8)); -} - -/*void putch(char ch) -{ - // TODO: Implement framebuffer writing - //if (ch != 0) - //syscall_putch(ch); -}*/ \ No newline at end of file -- cgit v1.2.3