Annotation of sys/arch/mvme88k/stand/libbug/netfread.c, Revision 1.1
1.1 ! nbrk 1: /* $OpenBSD: netfread.c,v 1.1 2004/01/28 00:27:44 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 "prom.h"
! 11:
! 12: /* returns 0: success, nonzero: error */
! 13: int
! 14: mvmeprom_netfread(arg)
! 15: struct mvmeprom_netfread *arg;
! 16: {
! 17: asm volatile ("or r2,r0,%0": : "r" (arg));
! 18: MVMEPROM_CALL(MVMEPROM_NETFREAD);
! 19: return (arg->status);
! 20: }
CVSweb