Commit Graph

170558 Commits

Author SHA1 Message Date
dyoung
8f34c216d0 Add printf_tolog(), which writes to the kernel message buffer,
only.  I believe this is the safest way to log serious conditions
indicated by NMI.
2008-05-31 20:27:24 +00:00
ad
4c57df4a3c - Put in place module compatibility check against __NetBSD_Version__,
as discussed on tech-kern.

- Remove unused module_jettison().
2008-05-31 20:14:38 +00:00
dyoung
eeabda7de2 Fix two bugs to make MKMODULAR=yes builds will work again, for the
first time.

share/mk/bsd.kmodule.mk: only set _INST_DIRS if KMODULEDIR is not
    set.  That we we avoid installing some bogus directories in
    the DESTDIR and in $DESTDIR/METALOG.

tests/modules/k_helper/Makefile: add missing .include <bsd.own.mk>,
    and set the KMODULEDIR that the author seems to have intended.
2008-05-31 19:58:35 +00:00
ad
a025b123c2 4.99.64 - kcondvar_t changed 2008-05-31 19:32:33 +00:00
ad
fdce452b03 Turn off DIAGNOSTIC so it builds. 2008-05-31 19:28:36 +00:00
tsutsui
a2180d724d - use 'us' for microsecond rather than 'uS'
- unwrap not so long lines
- some KNF
2008-05-31 18:26:43 +00:00
ad
bda19becba Fix wmesg for !LOCKDEBUG. 2008-05-31 16:25:23 +00:00
enami
6fddba0b06 No comma is necessary for the last .Nm entry. 2008-05-31 16:24:59 +00:00
enami
ed3ed8f740 Refer sigprocmask(2) instead of non existing sigmask(2). Also, xref
sigprocmask(2) and pthread_sigmask(3).
2008-05-31 16:15:07 +00:00
christos
8fd0026c5b add one more dependency. 2008-05-31 16:05:20 +00:00
christos
594a138824 add a complex test. 2008-05-31 15:44:31 +00:00
jmcneill
70b1702726 Remove powerhook_establish calls; this functionality has been broken since
4.99.42 and nobody has complained. Newer systems with ioapic shouldn't
need this, and older non-ioapic systems should properly restore PCI IRQ
routing within their PCI-ISA bridge drivers.
2008-05-31 15:31:05 +00:00
christos
dc05e9ba0d - rewrite, ansify, lint
- ad the ability to remove all entries at once.
2008-05-31 14:27:39 +00:00
isaki
ed939d90ee Fix a typo in previous commit. 2008-05-31 14:24:21 +00:00
jmcneill
ce25e3c5e1 lpt(4): register NULL pmf handler. 2008-05-31 14:07:03 +00:00
ad
506130b087 biodone2: if the buffer is async or has a callback method, assert that
there are no waiters on b_done (threads in biowait()).
2008-05-31 13:41:44 +00:00
ad
7442154bd9 - Give each condition variable its own sleep queue head. Helps the system
to scale more gracefully when there are thousands of active threads.
  Proposed on tech-kern@.

- Use LOCKDEBUG to catch some errors in the use of condition variables:

  freeing an active CV
  re-initializing an active CV
  using multiple distinct mutexes during concurrent waits
  not holding the interlocking mutex when calling cv_broadcast/cv_signal
  waking waiters and destroying the CV before they run and exit it
2008-05-31 13:36:25 +00:00
ad
e10320350c Use __noinline. 2008-05-31 13:31:25 +00:00
ad
07e5e1909a Add a __noinline attribute. Suggested by christos@. 2008-05-31 13:28:43 +00:00
ad
a6f1414cd1 tsleep -> kpause 2008-05-31 13:26:29 +00:00
freza
bb3bf45dbb Change DRVSUSPENDDEV ioctl number. Fixes PR kern/38740. 2008-05-31 13:24:57 +00:00
ad
7b8f512433 LOCKDEBUG:
- Tweak it so it can also catch common errors with condition variables.
  The change to kern_condvar.c is not included in this commit and will
  come later.

- Don't call kmem_alloc() if operating in interrupt context, just fail
  the allocation and disable debugging for the object. Makes it safe
  to do mutex_init/rw_init/cv_init in interrupt context, when running
  a LOCKDEBUG kernel.
2008-05-31 13:15:21 +00:00
ad
10d96b47b0 shmrealloc: destroy condition variables before freeing them. 2008-05-31 13:11:14 +00:00
ad
deda5b9d55 Hold proc_lock when sleeping on p_waitcv, not proc::p_lock. 2008-05-31 13:04:14 +00:00
ad
8350e2a9e8 Missing cv_destroy(). 2008-05-31 13:00:03 +00:00
christos
b7748ce1d5 change HUMAN_NUMBER back to 5 2008-05-31 12:48:41 +00:00
ad
5b4d14b9f1 Add a comment to turnstile_block:
* NOTE: if you get a panic in this code block, it is likely that
        * a lock has been destroyed or corrupted while still in use.  Try
        * compiling a kernel with LOCKDEBUG to pinpoint the problem.
2008-05-31 12:03:15 +00:00
lukem
826cacff27 entry for MKPRIVATELIB rename to LIBISPRIVATE 2008-05-31 09:47:23 +00:00
nakayama
4b71a66d0f Change my license to 2 clause. 2008-05-31 08:08:54 +00:00
nakayama
14f4cae1dc No need to wait on primary CPU in sparc64_ipi_halt_thiscpu with recent
openfirmware_exit changes.
2008-05-31 08:00:34 +00:00
nakayama
8b672b3568 openfirmware_exit:
- disable interrupts with %pstate.
- prepare 64-bit stack and enable 64-bit addresses for 32-bit SMP kernels.
2008-05-31 07:54:03 +00:00
taca
01e7a44f4a Kill license clause 3 of original license part, behalf of the original
license holder.
2008-05-31 07:30:45 +00:00
kiyohara
20ae2d4c31 Obsolete elf2pef. 2008-05-31 02:18:24 +00:00
nisimura
53a4931ada - add two more PCI NICs to code heap; SMsC LAN9420 (sme.c) and
Micrel KSZ8841/8842 (kse.c).
2008-05-31 01:43:57 +00:00
christos
c2a7e74ac0 remove stray ` 2008-05-30 21:53:21 +00:00
christos
fc39241e29 don't undef __CI_TBL before we use it :-) 2008-05-30 21:53:00 +00:00
tsutsui
6b0322861b Add options COMPAT_40 to files which have options COMPAT_30. 2008-05-30 20:10:01 +00:00
macallan
55bd0f3dd6 remove test for VGA subclass, also match PCI_PRODUCT_ATI_RAGE3AGP4XT
this makes r128fb work on 2nd generation iMacs
From Brett Slager
2008-05-30 19:56:14 +00:00
dyoung
cd2143c845 Add pci* at elansc? bus ?. Should fix Jasper's PR, port-i386/38800. 2008-05-30 19:51:00 +00:00
ad
48ced055d4 pci_intr_setattr(), allows PCI interrupts to be marked MPSAFE on x86, and
other platforms if the code is added.

pci_intr_map(...)
pci_intr_setattr(pc, ih, PCI_INTR_MPSAFE, 1);
pci_intr_establish(...)
2008-05-30 19:26:35 +00:00
ad
2839301d21 Add a 'known_mpsafe' argument to intr_establish(). 2008-05-30 19:03:10 +00:00
christos
6cb1513d20 - fix an amd cache entry.
- merge tables
- support phenom
from Paul Goyette
2008-05-30 18:49:03 +00:00
gdt
f7d5c4db3f Document the C99-required and already implemented hh modifier (pointer
is to a char, vs. h for short).  Bump date.
2008-05-30 17:29:54 +00:00
cegger
785a84e999 build fix: add missing prototype 2008-05-30 16:22:51 +00:00
kiyohara
9e26ff7373 Renewal GENERIC and files.bebox. 2008-05-30 16:03:01 +00:00
kiyohara
f34810b383 Remove unused prototype for function. 2008-05-30 15:56:32 +00:00
kiyohara
99539a09bc Support genfb console. 2008-05-30 15:54:50 +00:00
freza
1531f6d32e Any time we remove event from the queue make sure we 1. release the
event plist and 2. free the drvctl_event struct.

Discussed with jmcneill@.
2008-05-30 15:30:37 +00:00
christos
a81b2a4e6c Restore functionality lost during the libcpp conversion: cpp -CC should convert
// comments to /* comments */ not only during macro definition, but also
macro argument collection. Otherwise the following:

    #define b(a) a
    main {
	b(
	// 1);
	0);
    }

gets expanded to:

    main()
    {
	    return //          1); 0;
    }

instead of:

    main()
    {
	    return /*          1);*/ 0;
    }
2008-05-30 15:12:24 +00:00
nisimura
ad5b6b45cd - add brdsetup.c left uncomitted over half month.
- fixes on tlp.c; more cautious about TCH/TER/RCH/RER usage and
avoid self-pointing TER.
- stylize structs and #define order to highlight similarities and
differences.
2008-05-30 14:54:16 +00:00