No empty .Rs/.Re
[netbsd-mini2440.git] / sys / arch / mvme68k / stand / libbug / inchr.c
blob81bae9c2ad7719c2cc74270cf44aea9497e43eb4
1 /* $NetBSD: inchr.c,v 1.3 2005/12/11 12:18:19 christos Exp $ */
3 /*
4 * bug routines -- assumes that the necessary sections of memory
5 * are preserved.
6 */
7 #include <sys/types.h>
8 #include <machine/prom.h>
10 #include <lib/libsa/stand.h>
11 #include "libbug.h"
13 /* returns 0 if no characters ready to read */
14 int
15 getchar(void)
17 int ret;
19 MVMEPROM_NOARG();
20 MVMEPROM_CALL(MVMEPROM_INCHR);
21 MVMEPROM_RETURN_BYTE(ret);