Fix get_cyclecount. Wrap in ifdef _KERNEL.

This commit is contained in:
Jake Burkholder 2001-10-20 18:51:10 +00:00
parent 8c7c272c5a
commit 58a822cfc2

View file

@ -72,13 +72,17 @@
{ "wall_cmos_clock", CTLTYPE_INT }, \
}
#ifdef _KERNEL
void fork_trampoline(void);
static __inline u_int64_t
get_cyclecount(void)
{
return (rd(tick));
return (rdpr(tick));
}
#endif
#endif /* !_MACHINE_CPU_H_ */