summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k/stand/libbug/m68k/rtc_rd.c
blob: 7b075c4fd9f4ed4fa5e0ffe8e1946a96c006c379 (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 ("movel %0,sp@-" :  :"a" (ptime));
	MVMEPROM_CALL(MVMEPROM_RTC_RD);
}