freebsd-skq/sys/amd64/isa
iwasaki 787db7a9c1 1. Fix a comment. Locking _is_ needed (but not done).
2. Update a comment.  We now restore much more than RTC updates and
   interrupts.
3. Order change.  Stop interrupts by writing to RTC_STATUSB,
   restore rate bits for the interrupts by writing to RTC_STATUSA,
   then enable interrupts again.
   This seems to be done perfectly backwards in startrtclock().
   Otherwise, the idea for this change was obtained from
   startrtclock().
4. Don't stop the clock (RTCB_HALT).  We only program some control bits
   and don't want to stop the clock.
5. (Not really related.)  Add caveats to the comment about timer_restore().
   The update is non-atomic since locking is not done.

On locking:
6. rtcin() and writertc() are locked() adequately by splhigh() in RELENG_4,
   but this locking is null in -current.
7. Doing things in the correct order in (3) combined with (6) is probably
   enough locking for rtcrestore() in RELENG_4.  In -current, the
   writertc()'s race with rtcintr() unless the BIOS disables RTC interrupts.

Submitted by:	bde (including commit message)
MFC after:	1 week
2002-10-17 13:55:39 +00:00
..
atpic_vector.S Move ICU_* defines into icu.h. 2002-04-06 08:25:05 +00:00
clock.c 1. Fix a comment. Locking _is_ needed (but not done). 2002-10-17 13:55:39 +00:00
icu_ipl.s Move ICU_* defines into icu.h. 2002-04-06 08:25:05 +00:00
icu_ipl.S Move ICU_* defines into icu.h. 2002-04-06 08:25:05 +00:00
icu_vector.s Move ICU_* defines into icu.h. 2002-04-06 08:25:05 +00:00
icu_vector.S Move ICU_* defines into icu.h. 2002-04-06 08:25:05 +00:00
icu.h Move ICU_* defines into icu.h. 2002-04-06 08:25:05 +00:00
intr_machdep.c The clock is already allocated as 'fast' - no need to try and intercept a 2002-07-08 09:12:22 +00:00
intr_machdep.h Revive backed out pmap related changes from Feb 2002. The highlights are: 2002-07-12 07:56:11 +00:00
isa_dma.c Tidy up some loose ends. 2002-04-29 07:43:16 +00:00
isa_dma.h Remove __P. 2002-03-20 07:51:46 +00:00
isa.c - Split the routine to initialize a bus_space_handle into the separate 2002-02-17 09:16:45 +00:00
isa.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
ithread.c Removed unused includes. In particular, don't include <isa/isavar.h> since 2002-01-30 12:23:49 +00:00
nmi.c The clock is already allocated as 'fast' - no need to try and intercept a 2002-07-08 09:12:22 +00:00
npx.c Be consistent about "static" functions: if the function is marked 2002-09-28 17:15:38 +00:00
timerreg.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
vector.s Introduce a standard name for the lock protecting an interrupt controller 2001-12-20 23:48:31 +00:00
vector.S Introduce a standard name for the lock protecting an interrupt controller 2001-12-20 23:48:31 +00:00