freebsd-skq/sys/i386
Mitsuru IWASAKI 0ebefa8c4e 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
..
acpica - curproc may be NULL in 4-stable. In that case use the vmspace from 2002-10-16 17:22:03 +00:00
apm Be consistent about functions being static. 2002-10-16 08:57:14 +00:00
bios Be consistent about functions being static. 2002-10-16 08:57:14 +00:00
compile Don't need the .keep_me files. Obrien and I committed past each other. 2001-07-01 23:35:44 +00:00
conf Fixed the quoting of the value of SC_CUT_SEPCHARS. The double quotes 2002-10-17 13:47:31 +00:00
i386 1. Fix a comment. Locking _is_ needed (but not done). 2002-10-17 13:55:39 +00:00
ibcs2 Back our kernel support for reliable signal queues. 2002-10-01 17:15:53 +00:00
include put an #error directive when SMP and CPU_DISABLE_CMPXCHG are set 2002-10-17 05:51:36 +00:00
isa 1. Fix a comment. Locking _is_ needed (but not done). 2002-10-17 13:55:39 +00:00
linux Fixed syntax errors and printf format errors. 2002-10-12 13:48:21 +00:00
pci Use the global pcib devclass instead of our own static copy. 2002-10-16 18:38:35 +00:00
svr4 Include <sys/systm.h> for the definition of offsetof() instead of depending 2002-09-05 13:08:22 +00:00
Makefile This commit adds basic support for the UFS2 filesystem. The UFS2 2002-06-21 06:18:05 +00:00