![]() ![]() | ![]() |
1.1 nbrk 1: /* $OpenBSD: rtc_rd.c,v 1.3 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: #include "prom.h" 10: 11: void 12: mvmeprom_rtc_rd(ptime) 13: struct mvmeprom_time *ptime; 14: { 15: asm volatile ("or r2,r0,%0": : "r" (ptime)); 16: MVMEPROM_CALL(MVMEPROM_RTC_RD); 17: }