1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-28 16:43:09 +00:00
freebsd/sys/amd64
Bruce Evans 0f19e631e2 Fixed races accessing the RTC. The races apparently caused
apm_default_resume() to sometimes set a very wrong time.
(1) Accesses to the RTC index and data registers were not atomic enough.
    Interrupts were not masked.  This was only good enough until an
    interrupt handler (rtcintr()) started accessing the RTC in FreeBSD-2.0.
(2) Access to the block of time registers in inittodr() was not atomic
    enough.  inittodr() has 244us to read the time registers.  Interrupts
    were not masked.  This was only good enough until something (apm)
    started calling inittodr() after boot time in FreeBSD-2.0.
The fix for (2) also makes the timecounter update more atomic, although
this is currently unimportant due to the low resolution of the RTC.

Problem reported by:	mckay
1999-12-25 15:30:31 +00:00
..
amd64 Fixed races accessing the RTC. The races apparently caused 1999-12-25 15:30:31 +00:00
conf Fix minor typo in comments about WaveLAN/IEEE driver: 802.1 -> 802.11 1999-12-23 05:32:53 +00:00
include Reclaim UPAGES_HOLE (8k) that was chopped out of process address space. 1999-12-11 10:54:06 +00:00
isa Fixed races accessing the RTC. The races apparently caused 1999-12-25 15:30:31 +00:00
pci Don't use a bogus bus number for Ross host-pci bridges. 1999-12-05 18:41:34 +00:00
Makefile $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00