Commit Graph

161845 Commits

Author SHA1 Message Date
xtraeme
6da6e7a3b7 GENERIC_LAPTOP -> add aps(4) commented out
ALL -> add aps(4)
2007-09-11 21:59:10 +00:00
xtraeme
189cf45ffd Forgot to add aps(4)... sorry phone :-) 2007-09-11 21:54:54 +00:00
xtraeme
3f2361dc7d Mention aps(4). 2007-09-11 21:47:37 +00:00
xtraeme
1dac9ede4d New aps(4) driver for IBM Thinkpad Active Protection System.
Exports some sensors through the envsys(4) framework available
in some Thinkpad laptops.

Ported by Pierre Pronchery from OpenBSD, via PR port-i386/36852.

Tweaks, LKM and misc improvements by me. Added into i386/GENERIC
commented out.
2007-09-11 21:46:52 +00:00
skrll
f7b881990d Terminate the nick-csl-alignment branch.
Note the final base tag.
2007-09-11 21:32:54 +00:00
skrll
2d9c4abfb1 Always provide __cpu_simple_lock_{set,clear}.
Fixes LOCKDEBUG kernel builds.
2007-09-11 21:01:40 +00:00
gdt
9768560fd7 remove SIOCSIFALIFETIME_IN6 (should have been part of previous commit) 2007-09-11 19:59:18 +00:00
gdt
8f7e0bd6a5 Remove SIOCSIFALIFETIME_IN6, which could not possibly have ever worked.
Problem reported in kern/35897 by Robert Elz.
2007-09-11 19:54:51 +00:00
gdt
aebe6f5793 Fix bug in SIOCGIFCONF where the wrong length was calculated for
sockaddrs bigger than struct sockaddr.  Tightly bind decrementing
available space and using it, avoiding incorrect accounting in an
error case.  Document invariants.  Document calling convention for
SIOCGIFCONF.  Simplify by removing code to handle sockaddrs that don't
fit in struct ifreq; with sockaddr_storage this can no longer occur.
Add several KASSERTs.

This commit resolves the problem with racoon failing to list
interfaces.

Proposed on tech-net@ with no objections.
2007-09-11 19:31:22 +00:00
ad
b0efccf4cd Make the new mutexes faster:
- Eliminate mutexattr_private and just set a bit in ptm_owner if the mutex
  is recursive. This forces the slow path to be taken for recursive mutexes.
  Overload an unused field in pthread_mutex_t to record whether or not it's
  an errorcheck mutex.
- Streamline pthread_mutex_lock / pthread_mutex_unlock a bit more. As a
  side effect makes it possible to have assembly stubs for them.
2007-09-11 18:11:29 +00:00
ad
4042b7d22a Put new threads on the tail of pthread__allqueue, for the debugger. 2007-09-11 18:08:10 +00:00
briggs
06c4139448 If !_HAVE_TIMECOUNTER, initialize 'time' instead of 'time_second.' 2007-09-11 16:33:19 +00:00
briggs
bf243579ed Define splclock() so that this will at least compile on architectures
without _HAVE_TIMECOUNTER.
2007-09-11 16:31:01 +00:00
ad
7db40473e2 Fix a dodgy bit of assembly. 2007-09-11 16:07:15 +00:00
martin
913f43886d Cleanup cpu_info: get rid of ci_number and ci_upaid, use ci_index
and ci_cpuid instead.
2007-09-11 16:00:05 +00:00
ginsbach
1f1c7f87ed - remove extraneous \n in err(3) message
- minor KNF whitespace nit
2007-09-11 15:46:56 +00:00
degroote
640e23d7c9 In some FAST_IPSEC, spl level is not restored correctly. Fix that.
Spotted by Wolfgang Stukenbrock in pr/36800
2007-09-11 14:18:09 +00:00
ad
ee3459ca7b Fix broken pthread_mutex_trylock(). 2007-09-11 11:30:15 +00:00
ad
baebee83d5 Fix inverted test after merge of nick-csl-alignment. 2007-09-11 10:27:44 +00:00
xtraeme
d9144c32f2 Do not LKM_ISA_IO_PORT to 0x290 by default, some drivers try to guess it
and there's no much sense in adding it.
2007-09-11 07:41:26 +00:00
xtraeme
0dd9b7dc5f Cosmetic: use the last enum member for max sensors number. 2007-09-11 07:36:22 +00:00
macallan
a53919d5b0 clean up a little bit, while there let userland mmap the whole glint video
memory.
Note: this needs changes in the XF86 driver committed a few minutes ago.
2007-09-11 00:46:12 +00:00
pooka
4c671e79c7 descend into rump 2007-09-11 00:44:04 +00:00
pooka
dffee5c423 fix ukfs_readlink() to be of type ssize_t 2007-09-11 00:42:16 +00:00
pooka
850349a3c2 create generated files before running makedepend 2007-09-11 00:41:46 +00:00
pooka
b2c6279cb7 include sys/mount.h for export_args30 2007-09-10 23:47:23 +00:00
pooka
99dbf2bb34 manadatory TODO-list.
Makes project appear less dead when there's something TODO.
2007-09-10 21:18:55 +00:00
pooka
ccd777c8fa Provide errno from rumpuser_{gettimeofday,close}() to be consistent. 2007-09-10 19:11:44 +00:00
wiz
8747215ce0 heimdal-1.0.1 and texinfo-4.11 out. 2007-09-10 19:09:28 +00:00
xtraeme
e4ac7a291b Another typo in a comment. 2007-09-10 17:41:26 +00:00
xtraeme
6f1f4d144f Fix a comment. 2007-09-10 17:40:44 +00:00
xtraeme
5316ee99b1 Check argc before calling open(2), and use the out label in another
error case.
2007-09-10 17:39:14 +00:00
pooka
cc370e5dc5 no need to include param.c twice in the source list 2007-09-10 16:11:43 +00:00
xtraeme
fc321f6650 Fix a lint(1) warning and remove oldsize in print_sensors(), it's
not used.
2007-09-10 14:25:17 +00:00
xtraeme
25be892bac Don't forget to check if -s was specified without -d, and add a macro
to check it in two places.
2007-09-10 14:15:11 +00:00
xtraeme
16f28d90fc Redo how the arguments are processed, so that arguments not allowed
will call usage(). Also remove an extra free().
2007-09-10 13:58:50 +00:00
skrll
9fdaf800d9 Merge nick-csl-alignment. 2007-09-10 11:34:05 +00:00
cube
7a185660d8 Some more licence clean up. 2007-09-10 10:54:20 +00:00
cube
c725329722 Remove 3rd clause and my name from all the licences which were only in my
name.
2007-09-10 10:35:51 +00:00
martti
61078fef5f Revert to previous, it was not working for me correctly... 2007-09-10 06:28:38 +00:00
martti
fcbc8c046f Fixed IPF bug #1767831
ipflog() & ipmon ignore IPv6 extension headers

Patch fetched from the SourceForge bug report.
2007-09-10 06:12:02 +00:00
martti
20df8bbd24 Fixed IPF bug #1785199
fr_natderef causes lock contention and performance slowdown

Patch fetched from the SourceForge bug report.
2007-09-10 06:07:01 +00:00
martti
2021a17984 Fixed IPF bug #1791241 ("keep frag does not work with keep state for fragments")
Patch fetched from the SourceForge bug report.
2007-09-10 06:03:21 +00:00
martin
e680b6ed1a Make cpufrequency and friends per cpu values.
Prepare a hz tick interrupt on secondary CPUs via %tick, but do not
enable it yet, as it breaks ddb.
2007-09-09 22:37:39 +00:00
ad
e2c2fa5d09 Fix recursive mutexes to work again in non-threaded applications. 2007-09-09 20:13:23 +00:00
christos
b1749a12b7 PR/36957: sm: whois does not follow AfriNIC referral 2007-09-09 18:31:45 +00:00
gson
a74fd1b8dc Fix typo in comment 2007-09-09 16:35:13 +00:00
martin
0b1fe292ea Do not ACK IPIs before we finished loading all arguments. 2007-09-09 16:29:55 +00:00
wiz
f4a91b1899 Fix Dd argument (use full month names).
Use more markup.
Comment out references to safte(4) and softraid(4), which don't exist in
NetBSD.
Remove trailing whitespace.
Use macros instead of characters for HTML output (replace ">", "<"
with \*[Gt], \*[Lt]).
Sort sections.
2007-09-09 16:13:19 +00:00
xtraeme
ae9c37793d Reorganize the code and add two ENVSYS_BATTERY_STATE sensors. 2007-09-09 16:09:37 +00:00