/branches/sparc/kernel/arch/sparc64/src/drivers/niagara.c |
---|
60,11 → 60,18 |
extern kbd_type_t kbd_type; |
/** Writes a single character to the standard output. */ |
static inline void do_putchar(const char c) { |
/* repeat until the buffer is non-full */ |
while (__hypercall_fast1(CONS_PUTCHAR, c) == EWOULDBLOCK) |
; |
} |
/** Writes a single character to the standard output. */ |
static void niagara_putchar(struct chardev * cd, const char c) |
{ |
__hypercall_fast1(CONS_PUTCHAR, c); |
do_putchar(c); |
if (c == '\n') |
__hypercall_fast1(CONS_PUTCHAR, '\r'); |
do_putchar('\r'); |
} |
/** |