don't print SYSTEM stacktrace on exceptions as it's not scheduled any more.
[minix.git] / lib / libsys / ser_putc.c
blobe4f38598e71f4c5e411921b530d1e1225871e3da
1 #include "sysutil.h"
3 #define COM1_BASE 0x3F8
4 #define COM1_THR (COM1_BASE + 0)
5 #define LSR_THRE 0x20
6 #define COM1_LSR (COM1_BASE + 5)
8 /*===========================================================================*
9 * ser_putc *
10 *===========================================================================*/
11 PUBLIC void ser_putc(char c)
13 unsigned long b;
14 int i;
15 int lsr, thr;
17 lsr= COM1_LSR;
18 thr= COM1_THR;
19 for (i= 0; i<10000; i++)
21 sys_inb(lsr, &b);
22 if (b & LSR_THRE)
23 break;
25 sys_outb(thr, c);