NetBSD/sys/arch/sun68k/stand/libsa/clock.c
fredette c1c742b4c9 Added sources for the sun2 boot blocks and other
sun68k-ish code, all of which ought to eventually
be shared with the sun3.
2001-06-14 12:57:10 +00:00

28 lines
315 B
C

/* $NetBSD: clock.c,v 1.1 2001/06/14 12:57:14 fredette Exp $ */
#include <sys/types.h>
#include <machine/mon.h>
#include "libsa.h"
int hz = 1000;
long
getsecs()
{
long ticks;
ticks = getticks();
return ((ticks / hz));
}
long
getticks()
{
long ticks;
ticks = *romVectorPtr->nmiClock;
return (ticks);
}