OPNsense - FreeBSD source
Find a file
Bruce Evans 2dafbfcbab Added calibration the i8254 and the i586 clocks agains the RTC at boot
time.  The results are currently ignored unless certain temporary options
are used.

Added sysctls to support reading and writing the clock frequency variables
(not the frequencies themselves).  Writing is supposed to atomically
adjust all related variables.

machdep.c:
Fixed spelling of a function name in a comment so that I can log this
message which should have been with the previous commit.

Initialize `cpu_class' earlier so that it can be used in startrtclock()
instead of in calibrate_cyclecounter() (which no longer exists).

Removed range checking of `cpu'.  It is always initialized to CPU_XXX
so it is less likely to be out of bounds than most variables.

clock.h:
Removed I586_CYCLECTR().  Use rdtsc() instead.

clock.c:
TIMER_FREQ is now a variable timer_freq that defaults to the old value of
TIMER_FREQ.  #define'ing TIMER_FREQ should still work and may be the best
way of setting the frequency.

Calibration involves counting cycles while watching the RTC for one second.
This gives values correct to within (a few ppm) + (the innaccuracy of the
RTC) on my systems.
1996-05-01 08:39:02 +00:00
bin Fix up the badly out of date struct proc's p_flags. 1996-04-19 22:23:27 +00:00
eBones Add support for socks 1996-04-23 05:18:43 +00:00
etc Highly cosmetic tweaks. 1996-04-30 04:59:57 +00:00
games Correct some man page cross references and file location references. 1996-04-07 00:06:21 +00:00
gnu Fix a bogon that prevented easy-import from inserting the new module 1996-04-28 12:32:43 +00:00
include Made this work with the documented prerequisite #includes (none). 1996-05-01 00:57:57 +00:00
lib Fixed incomplete or wrong lists of prerequisite #includes related to 1996-05-01 01:45:23 +00:00
libexec Small tweak to yp_put_record(): call the DB put routine with the 1996-04-28 03:59:56 +00:00
lkm Add in qcam module (forgot) 1996-03-24 00:30:38 +00:00
release Micro tweak for getting the Holographic shell message to stay on the 1996-05-01 03:31:08 +00:00
sbin Default to udp if neither udp nor tcp is specified. The previous revision 1996-05-01 03:13:45 +00:00
secure Add support for socks 1996-04-23 05:18:43 +00:00
share Alex Nash added for his contribution of the compat21 distribution. 1996-05-01 01:49:03 +00:00
sys Added calibration the i8254 and the i586 clocks agains the RTC at boot 1996-05-01 08:39:02 +00:00
tools Don't look in libkern, it went away. 1995-12-29 01:51:23 +00:00
usr.bin Correct a typo. 1996-04-30 05:20:32 +00:00
usr.sbin Micro tweak for getting the Holographic shell message to stay on the 1996-05-01 03:31:08 +00:00
COPYRIGHT This is the official 4.4 Lite copyright. 1994-09-11 07:53:28 +00:00
Makefile Re-instate the bootstrap target which can be used to build tools 1996-03-24 13:16:45 +00:00