Annotation of sys/arch/mvmeppc/stand/libbug/getbrdid.c, Revision 1.1
1.1 ! nbrk 1: /* $OpenBSD: getbrdid.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: /* BUG - query board routines */
! 12: struct mvmeprom_brdid *
! 13: mvmeprom_brdid()
! 14: {
! 15: struct mvmeprom_brdid *id;
! 16:
! 17: MVMEPROM_CALL(MVMEPROM_BRD_ID);
! 18: asm volatile ("mr %0, 3": "=r" (id):);
! 19: return (id);
! 20: }
CVSweb