Annotation of sys/arch/mvmeppc/stand/libbug/diskwr.c, Revision 1.1
1.1 ! nbrk 1: /* $OpenBSD: diskwr.c,v 1.3 2004/01/24 21:12:38 miod Exp $ */
! 2:
! 3: /*
! 4: * bug routines -- assumes that the necessary sections of memory
! 5: * are preserved.
! 6: */
! 7: #include <sys/types.h>
! 8:
! 9: #include "libbug.h"
! 10:
! 11: /* returns 0: success, nonzero: error */
! 12: int
! 13: mvmeprom_diskwr(arg)
! 14: struct mvmeprom_dskio *arg;
! 15: {
! 16: int ret;
! 17:
! 18: asm volatile ("mr 3, %0" :: "r"(arg));
! 19: MVMEPROM_CALL(MVMEPROM_DSKWR);
! 20: asm volatile ("mr %0, 3" : "=r" (ret));
! 21: return ((ret & 0x8));
! 22: }
CVSweb