summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/stand/libbug/rtc_rd.c
blob: 9b32f960ea32cd7a26062c09d30e1140816dec6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * bug routines -- assumes that the necessary sections of memory
 * are preserved.
 */
#include <sys/types.h>
#include <machine/prom.h>

void
mvmeprom_rtc_rd(ptime)
	struct mvmeprom_time *ptime;
{
	asm volatile ("or r2,r0,%0": : "r" (ptime));
	MVMEPROM_CALL(MVMEPROM_RTC_RD);
}