Fix get_cyclecount. Wrap in ifdef _KERNEL.

This commit is contained in:
jake 2001-10-20 18:51:10 +00:00
parent bdff8645a6
commit d9948593f9

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_ */