[BACK]Return to inchr.c CVS log [TXT][DIR] Up to [local] / sys / arch / mvme88k / stand / libbug

Annotation of sys/arch/mvme88k/stand/libbug/inchr.c, Revision 1.1

1.1     ! nbrk        1: /*     $OpenBSD: inchr.c,v 1.2 2003/09/07 21:35:35 miod Exp $ */
        !             2:
        !             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>
        !             9:
        !            10: #include "stand.h"
        !            11: #include "prom.h"
        !            12:
        !            13: /* returns 0 if no characters ready to read */
        !            14: int
        !            15: getchar()
        !            16: {
        !            17:        int ret;
        !            18:
        !            19:        MVMEPROM_CALL(MVMEPROM_INCHR);
        !            20:        asm volatile ("or %0,r0,r2" :  "=r" (ret));
        !            21:        return ret;
        !            22: }

CVSweb