Updated PCI IDs to latest snapshot.
[tangerine.git] / arch / ppc-chrp / exec / rawputchar.c
blobf41e87c1e4479848eaa0b926f1e8fb4d114a2d17
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Emit one character via raw IO
6 Lang: english
7 */
9 /*****i***********************************************************************
11 NAME */
12 #include <aros/libcall.h>
13 #include <proto/exec.h>
14 #include <proto/kernel.h>
16 #include <stdarg.h>
18 extern void *priv_KernelBase;
20 static inline void bug(const char *format, ...)
22 void *KernelBase = priv_KernelBase;
23 va_list args;
24 va_start(args, format);
25 KrnBug(format, args);
26 va_end(args);
29 AROS_LH1(void, RawPutChar,
31 /* SYNOPSIS */
32 AROS_LHA(UBYTE, chr, D0),
34 /* LOCATION */
35 struct ExecBase *, SysBase, 86, Exec)
37 /* FUNCTION
38 Emits a single character.
40 INPUTS
41 chr - The character to emit
43 RESULT
44 None.
46 NOTES
47 This function is for very low level debugging only.
49 EXAMPLE
51 BUGS
53 SEE ALSO
54 RawIOInit(), RawPutChar(), RawMayGetChar()
56 INTERNALS
58 HISTORY
60 *****************************************************************************/
62 AROS_LIBFUNC_INIT
64 /* Don't write 0 bytes */
65 if (chr)
67 bug("%c",chr);
70 AROS_LIBFUNC_EXIT
71 } /* RawPutChar */