FreeCalypso > hg > freecalypso-sw
view loadagent/serwait.c @ 3:45bf8af5f061
libprintf brought in from older PPC/m68k code, but fucking GCC
refuses to compile <varargs.h> - need to convert to Anshit C <stdarg.h>
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Mon, 29 Apr 2013 07:00:22 +0000 |
parents | da98dc08f575 |
children |
line wrap: on
line source
/* this C module is a wrapper around serio.S */ /* we implement serial_in_wait() as a C wrapper around serial_in_poll() */ extern int serial_in_poll(); int serial_in_wait() { register int c; do c = serial_in_poll(); while (c < 0); return c; }