freebsd-nq/sys/i386
Bruce Evans 4df0520624 clock.c:
Quick fix for calling DELAY() for ddb input in some (atkbd-based)
console drivers.  ddb must not use any normal locks, but DELAY()
normally calls getit() which needs clock_lock.  One problem with using
normal locks in ddb is that deadlock is possible, but deadlock on
clock_lock is unlikely becaluse clock_lock is bogusly recursive,
apparently just to hide the problem of ddb using it.  The i8254 clock
hardware has mostly write-only registers so it is important for it to
use a lock that gives exclusive access.  (atkbd hardware is also
unfriendly to reentrant software but that problem is more local and
already solved.)  I mostly saw the symptoms of the bug caused by
unlocking in getit() running cpu_unpend().  cpu_unpend() should not
be called while in ddb and Debugger() calls for failing assertions
about this caused a breakpoint within ddb.

ddb must also not call getit() because ddb may be being used to step
through clock initialization code that has stopped or otherwise mangled
the clock.  If the clock is stopped, then getit() always returns the
same value and DELAY() takes forever if it trusts getit().

The quick fix is implement DELAY(n) as (n * timer_freq / 1000000)
inb(0x84)'s if ddb is active.

machdep.c:
Don't permit recursion on clock_lock.
2003-09-07 14:23:08 +00:00
..
acpica Use the ACPICA AcpiEnterSleepStateS4bios instead of rolling our own. This 2003-08-29 04:02:19 +00:00
bios - Use the new resource_disabled() helper function to see if devices are 2003-07-02 16:09:02 +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 Add device ataraid, this is now seperate and not pulled in by atadisk. 2003-08-24 09:30:13 +00:00
i386 clock.c: 2003-09-07 14:23:08 +00:00
ibcs2 Remove a few ushorts I missed in my earlier pass. 2003-08-15 14:55:50 +00:00
include Standardize idempotentcy ifdefs. Consistently use _MACHINE_VARARGS_H_ 2003-09-01 03:01:45 +00:00
isa clock.c: 2003-09-07 14:23:08 +00:00
linux Restored non-egregious casts so that this file compiles on i386's with 2003-09-07 13:23:45 +00:00
pci - Rename PCIx_HEADERTYPE* to PCIx_HDRTYPE* so the constants aren't so long. 2003-08-28 21:22:25 +00:00
svr4 Use __FBSDID(). 2003-06-10 05:05:54 +00:00
Makefile This commit adds basic support for the UFS2 filesystem. The UFS2 2002-06-21 06:18:05 +00:00