freebsd-dev/sys/i386
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
..
apm - This code adds some backwards compatability hacks for buggy APM BIOS 1996-04-23 19:59:14 +00:00
bios - This code adds some backwards compatability hacks for buggy APM BIOS 1996-04-23 19:59:14 +00:00
boot Fixed timeouts. I broke them in rev.1.17 for the FORCE_COMCONSOLE and 1996-04-30 23:43:25 +00:00
conf Oops, restored existent option LINUX. It is used at config-time. 1996-05-01 05:04:38 +00:00
eisa Turn on SCB paging for aic7770 chips rev E or greater. 1996-04-20 21:21:50 +00:00
i386 Added calibration the i8254 and the i586 clocks agains the RTC at boot 1996-05-01 08:39:02 +00:00
ibcs2 Removed unnecessary #includes from <sys/imgact.h> so that it is 1996-05-01 02:43:13 +00:00
include Added calibration the i8254 and the i586 clocks agains the RTC at boot 1996-05-01 08:39:02 +00:00
isa Added calibration the i8254 and the i586 clocks agains the RTC at boot 1996-05-01 08:39:02 +00:00
linux Include <sys/buf.h> so that this does't blow up with B_WRITE undefined. 1996-05-01 06:31:18 +00:00
pci Make pcibus_check() ignore Device/Vendor IDs of all 0. 1996-04-30 21:37:21 +00:00
scsi Fix the abort code in the BUS DEVICE RESET case. Needed to set cmdlen to 0. 1996-04-28 19:21:20 +00:00
Makefile