headers/bsd: Add sys/queue.h.
[haiku.git] / src / system / kernel / arch / mips / arch_dbg_console.cpp
blob8d9c88bc3dafe4b75bd40b3e515d0b4717268731
1 /*
2 ** Copyright 2001, Travis Geiselbrecht. All rights reserved.
3 ** Distributed under the terms of the NewOS License.
4 */
5 #include <kernel/kernel.h>
6 #include <boot/stage2.h>
8 #include <kernel/arch/dbg_console.h>
10 int arch_dbg_con_init(kernel_args *ka)
12 return 0;
15 char arch_dbg_con_read()
17 return 0;
20 /* Flush all FIFO'd bytes out of the serial port buffer */
21 static void arch_dbg_con_flush()
25 static void _arch_dbg_con_putch(const char c)
29 char arch_dbg_con_putch(const char c)
31 if (c == '\n') {
32 _arch_dbg_con_putch('\r');
33 _arch_dbg_con_putch('\n');
34 } else if (c != '\r')
35 _arch_dbg_con_putch(c);
37 return c;
40 void arch_dbg_con_puts(const char *s)
42 while(*s != '\0') {
43 arch_dbg_con_putch(*s);
44 s++;