make.tmpl: add missing compiler attribute to build_progs
[AROS.git] / arch / m68k-mac / exec / rawputchar.c
blobf3ebae6cc4633875e0f1dee53d0fc4000d20743a
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Emit one character via raw IO
6 Lang: english
7 */
9 #include <aros/config.h>
11 #ifdef DO_SERIAL_DEBUG
12 # include <asm/registers.h>
13 #endif
15 void vputc(unsigned char chr);
17 #include <proto/exec.h>
19 /* See rom/exec/rawputchar.c for documentation */
21 AROS_LH1(void, RawPutChar,
22 AROS_LHA(UBYTE, chr, D0),
23 struct ExecBase *, SysBase, 86, Exec)
25 AROS_LIBFUNC_INIT
26 #if 0
27 #ifdef DO_SERIAL_DEBUG
29 * This does not work with xcopilot...
31 if (chr) {
33 * Wait until FIFO is half empty
35 while (0 == (RREG_W(UTX1) & FIFO_HALF_F)) {
37 WREG_W(UTX1) = (UWORD)chr;
39 #endif
40 #endif
41 /* Don't write 0 bytes */
42 if (chr) {
43 vputc(chr);
46 AROS_LIBFUNC_EXIT
47 } /* RawPutChar */