diff options
Diffstat (limited to 'src/userspace/libc/stdio/putch.c')
-rw-r--r-- | src/userspace/libc/stdio/putch.c | 22 |
1 files changed, 0 insertions, 22 deletions
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 <syscall.h> - -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 |