/* $OpenBSD: instat.c,v 1.2 1996/04/28 10:48:43 deraadt Exp $ */ /* * bug routines -- assumes that the necessary sections of memory * are preserved. */ #include #include /* returns 0 if no characters ready to read */ int mvmeprom_instat() { u_short ret; MVMEPROM_CALL(MVMEPROM_INSTAT); asm volatile ("movew ccr,%0": "=d" (ret)); return (!(ret & 0x4)); }