Commit Graph

166888 Commits

Author SHA1 Message Date
simonb 8b21752dcd KNF previous change. 2008-02-13 04:17:26 +00:00
dogcow 26a84bff72 add missing %. (hi matt!) 2008-02-13 03:55:54 +00:00
dogcow 40aa5193f8 make it compile. 2008-02-13 02:11:42 +00:00
smb 585d42043e Patch from Jared McNeill to prevent USB interrupt storms on resume on
Thinkpad T61.  (Note: to prevent a very similar-seeming problem, T61
users should also install firmware 2.06 or later, according to thinkwiki.)
2008-02-13 00:52:44 +00:00
mlelstv 20eb004e2e Add some initialization magic from FreeBSD. This makes it work with
the more recent PL2303 revision 4.
2008-02-12 22:29:54 +00:00
joerg 6d51094880 Add missing assym.h dependency. 2008-02-12 22:27:27 +00:00
uwe 33c3cdcb5b Minor cosmetic - add blank like so that "if" is not visually jammed
into preceding "else if".  Correct #endif comment.
2008-02-12 21:47:46 +00:00
joerg dd20faf2af Convert to device_find_by_driver_unit. 2008-02-12 19:53:46 +00:00
drochner b399335799 add NULL power handler, so that this device doesn't block suspension 2008-02-12 19:37:51 +00:00
drochner 58cba952a0 remove a stale __weak_alias (code went into the compat section) 2008-02-12 19:36:06 +00:00
ad 2d0314d313 Always enable memory barriers in userspace, otherwise libpthread won't
work correctly on MP systems.
2008-02-12 18:40:28 +00:00
ad b86eac67c4 Correct a dodgy alias. 2008-02-12 18:35:38 +00:00
joerg 3e26d48f15 Use device_find_by_xname and device_find_by_driver_unit. 2008-02-12 18:29:22 +00:00
joerg 3b139e1f2b Add a bunch of missing assym.h dependencies. 2008-02-12 18:26:48 +00:00
joerg 4d4af868ab Garbage collect the remaining parts of COMPAT_OLDBOOT. The boot loader
support has been removed at least 4 years ago and NetBSD 1.3 is ancient.
2008-02-12 18:22:39 +00:00
dyoung d7eb80c17b Use device_is_active(). 2008-02-12 18:03:43 +00:00
joerg 11cd27a036 Don't sleep for 0.5s before powering down the machine with ACPI. 2008-02-12 17:52:18 +00:00
joerg e69482d49d Introduce device_find_by_xname and device_find_by_driver_unit to replace
alldevs iterations all over src.

Patch discussed with and improved on suggestioned from cube@.
2008-02-12 17:30:57 +00:00
joerg 862a285bde Explicitly predict panic conditions as false. 2008-02-12 13:05:55 +00:00
joerg db0043926a Provide a simplified inplace version of in6_cksum.
Tested by is@ on amd64.
2008-02-12 13:02:24 +00:00
elad 274b48425f Default deny and explicit allow policy in all listeners.
No objections on tech-security@ and tech-kern@.
2008-02-12 12:05:27 +00:00
he 301a1d2d21 Need to include <sys/fstypes.h> before <sys/vfs_syscalls.h> to get
fhandle_t defined, which is used in a function prototype in the latter.
2008-02-12 10:59:57 +00:00
yamt 137ed4c3f9 nfs_kqfilter: fix lock/unlock mismatch. PR/38003 from Geoff C. Wing. 2008-02-12 08:55:27 +00:00
matt 360e0475e3 Use %rN as all new code is supposed to. 2008-02-12 07:58:01 +00:00
matt 131790b421 Fix pthread problem. (export membar* to userland) 2008-02-12 07:35:04 +00:00
ober 9a6d88bf44 Update to reflect iwn(4) checkin. 2008-02-12 05:27:43 +00:00
garbled ddf7aaf7e5 Add a very quick and simple hack to allow ofwboot to be compiled into a
program that dumps the entire ofw device tree automatically.  I needed
this functionality to collect ofw dumps from users, and it doesn't hurt
to just commit it, as it's all protected inside a #ifdef OFWDUMP.
2008-02-12 04:27:46 +00:00
oster ce72acea08 rf_debugMem.c: remove unused 'rc' variable for RF_DEBUG_MEM.
rf_driver.c: minor comment tweak.  Improve debugging output in
             RF_DEBUG_QUIESCE.
rf_states.c: fix argument to rf_PrintDAGList() in the
             RF_DEBUG_VALIDATE_DAG case.


Changes from Olivier Cherrier.  Thanks!!
2008-02-12 03:12:41 +00:00
dyoung df7679436b #include <sys/evcnt.h> for event counters. 2008-02-12 00:53:06 +00:00
yamt 29e0fd1c9e sprinkle KERNEL_LOCK for socket.
a little different version was tested by Matthias Drochner.
2008-02-11 23:53:32 +00:00
ad eff625dc0e Put back a __predict_false removed during testing and fix atomic_cas_mp(). 2008-02-11 23:48:23 +00:00
dyoung d4f4828ee0 Do not #include <sys/device.h> from userland. 2008-02-11 22:43:39 +00:00
dyoung 49220e280f Only #include <sys/device.h> if we are #included from the kernel---that
is, if defined(_KERNEL).
2008-02-11 22:40:14 +00:00
dyoung cf2b2c7c4b Re-implement the net80211 locks using mutex(9) instead of splnet(9)
shenanigans.  This matches the FreeBSD implementation much more
closely, but performance may suffer.
2008-02-11 22:38:51 +00:00
dyoung b1480edbc5 Do not needlessly #include <sys/device.h>. 2008-02-11 22:32:48 +00:00
dyoung 7afb2e620f Use LIST_FOREACH(). Join lines. 2008-02-11 22:20:11 +00:00
dyoung f776107987 Use TAILQ_FOREACH(). 2008-02-11 22:11:27 +00:00
dyoung ab81f0ffe6 Constify ahc_set_name(), ahc_name(). Do not free(9) memory that
may not belong to us.
2008-02-11 21:43:46 +00:00
dyoung a34525837f Do not #include <sys/device.h> from userland. 2008-02-11 20:29:15 +00:00
dyoung dae2e11ac8 Use device_t and accessors. Use aprint_*(). 2008-02-11 20:27:01 +00:00
elad c61569c8b3 Add Christos to the AUTHORS section. 2008-02-11 18:05:58 +00:00
elad bdcc6c320e There's no use for the '-l' flag, so don't document it. Viewing PaX flags
is done by issuing "paxctl file" with no flags, so note that it the
man-page instead.

From Michal Spacek, thanks!
2008-02-11 18:03:14 +00:00
garbled 55804a6f72 Use model_init to clean up how we decide the ranges for
PCI_NETBSD_CONFIGURE.  Add some code to hopefully better handle the
firepower and powerstackII, based on the OFW dumps from those machines.
Untested on those machines, but doesn't break anything on pegasos/7044.
2008-02-11 17:32:18 +00:00
mjf 0294141b16 Typo fix 2008-02-11 15:49:00 +00:00
ad 64da32e634 Don't decode union vnodes or f_usecount. XXX A lot of this belongs to gdb. 2008-02-11 15:22:43 +00:00
ad dfbf3a255f Correct a comment. 2008-02-11 15:20:41 +00:00
ad a3fb849dfc Clarify what membar_enter/membar_exit provide. 2008-02-11 15:12:07 +00:00
ad 1b2aff1f03 Note many of the restrictions, and clarify the section on global
visibility.
2008-02-11 15:01:24 +00:00
ad b3193dc791 Only build atomic ops for libkern/libc. 2008-02-11 14:21:11 +00:00
mlelstv 7d949cc4cd Can't do math on void * 2008-02-11 13:51:35 +00:00