Commit Graph

162499 Commits

Author SHA1 Message Date
reed
bced21f4e8 Add sysctl.conf.5 manpage.
Thank you, wiz, for the few mandoc suggestions.
I slightly reworded part of the description and removed the
advertising clause from the version I posted to tech-userlevel.
2007-10-05 18:49:43 +00:00
jmcneill
02ef36ec48 Sort IO resources before attempting to attach; resolves issues on ACPI
firmware that reports 0x64,0x60 instead of 0x60,0x64. Patch tested by
Greg A. Woods.
2007-10-05 18:31:46 +00:00
joerg
04512a3ea9 Add re* at cardbus. 2007-10-05 17:58:38 +00:00
sjg
f28827375c Add the ability to .export variables to the environment. 2007-10-05 15:27:45 +00:00
christos
76f3e041b7 don't zero out the wrong pointer. from Anon Ymous 2007-10-05 14:48:10 +00:00
pavel
eb9220515b Add a check for obsolete sendmail in /etc/mailer.conf, installs a
fresh copy of the file if invoked as "fix". Not enabled by default.
2007-10-05 10:28:45 +00:00
pavel
6590c89893 Return exit status 1 for failed chacks/fixes, 2 for errors. Suggested
by hubertf. Use exit status 3 for internal errors (misuse of internal
functions).
2007-10-05 10:17:13 +00:00
pavel
e9045950d7 do not use trap 0, it clobbers the exit status. Instead remove the
scratch directory in err(). Use err() instead of exit in one place to
ensure that the temporary directory is removed.
2007-10-05 10:06:49 +00:00
martin
38e2704180 Add missing include for definition of struct evcnt. 2007-10-05 08:05:37 +00:00
lukem
c9c455bf1d Convert to using raise_default_signal(3). 2007-10-05 07:36:45 +00:00
dogcow
360a5fad96 since ip_gre.c is gone, it's unhelpful to have dependencies on it. 2007-10-05 07:28:24 +00:00
lukem
5d427989ff Convert to raise_default_signal(3). 2007-10-05 07:27:41 +00:00
lukem
db822d2217 Convert to using raise_default_signal(3). 2007-10-05 07:22:23 +00:00
dyoung
32fddb3293 Cosmetic: KNF. Litter the code with fewer #if NBPFILTER > 0. 2007-10-05 05:15:58 +00:00
dyoung
944a024048 Remove a lot of dead code. Move gre_do_send() code into greintr(),
and move gre_do_recv() code into gre_receive().  Get rid of some
unused event counters.
2007-10-05 04:55:10 +00:00
dyoung
60149b1ce8 Work in progress: use a raw socket for GRE in IP encapsulation
instead of adding/subtracting our own IPv4 header.

There are many benefits:  gre(4) needn't grok the outer encapsulation
header any longer, so this simplifies the gre(4) code.  The IP
stack needn't grok GRE, so it is simplified, too.  gre(4) will
benefit from optimizations in the socket code.  Eventually, gre(4)
will gain an IPv6 encapsulation with very few new lines of code.

There is a small performance loss.  A 133 MHz, 486-class AMD Elan
sinks/sources a TCP stream over GRE with about 93% the throughput
of the old code.  TCP throughput on a 266 MHz, 586-class AMD Geode
is about 96% the throughput of the old code.  A 175-MHz ADM5120
(MIPS) only sinks a TCP stream over GRE at about 90% of the old
code; I am still investigating that.

I produced stripped-down versions of sosend() and soreceive() for
gre(4) to use.  They are guaranteed not to block, so they can be
called from a software interrupt and from a socket upcall,
respectively.

A kernel thread is no longer necessary for socket transmit/receive,
but I didn't get around to removing it, yet.

Thanks to Matt Thomas for suggesting the use of stripped-down socket
code and software interrupts, and to Andrew Doran for advice and
answers concerning software interrupts, threads, and performance.
2007-10-05 03:28:12 +00:00
dyoung
c3d21ddcd4 Cosmetic: KNF. Shorten a staircase. Indent a complicated
if-condition.  This code remains hard to read.
2007-10-05 02:40:25 +00:00
dyoung
b7300a687a Use getsombuf(). 2007-10-05 02:34:58 +00:00
oster
b2696d1b9d Note ability to dump kernel cores to RAID 1 sets. 2007-10-05 01:42:07 +00:00
oster
8b11ddb95c Implement dumping kernel cores to RAID 1 sets. The component used
for the dump is selected in this order of preference:
   1) the master
   2) a used_spare of the master
   3) the slave
   4) a used_spare of the slave
2007-10-05 01:40:04 +00:00
pooka
c8c5d830fc SEE ALSO paper 2007-10-05 00:04:59 +00:00
pooka
a6bfd0bd84 g/c the "sizeop" code previous used for ioctl/fcntl. It was already
commented out and has bitrotted beyond all recognition, so it needs
complete rethinking.
2007-10-04 21:20:47 +00:00
ad
507f1ca139 Compile pthread_getspecific / pthread_setspecific with -fomit-frame-pointer
-falign-functions=32, since these two really get hammered on. To make them
faster needs a threadreg or TLS, unless there is a way to tell gcc that a
library-local (pthread__threadmask) variable does not need to be PIC.
2007-10-04 21:08:35 +00:00
ad
5059087834 Drop PTHREAD__NSPINS back from 1000 to 64. Setting the waiters bits and
preparing to sleep on a mutex are slow in relative terms, so this allows
us to recover from short lock holds without blocking, while not wasting
too much time on longer holds.
2007-10-04 21:04:32 +00:00
alc
366f52110b Sync with code in src/sys/sys/device.h:
- remove the `submatch' argument of config_found_ia()
 - precise that config_found_ia() callis config_found_sm_loc() with both
`locs' and `submatch' set to NULL
2007-10-04 17:28:48 +00:00
alc
36bb949541 fix unbalanced double quote 2007-10-04 17:16:01 +00:00
christos
790ed387b2 Use warnx(3) not warn(3); timegm(3) does not set errno. Use the
unconverted time if the date is invalid. (from Anon Ymous)
2007-10-04 17:05:01 +00:00
kiyohara
97cc00811e Fix some bugs.
* Cast to integer the 2nd args of m_adj().
  * Move test/set flag BTF_XMIT to bcsp_start().
  * The initialization of the array was clarified.
2007-10-04 14:43:06 +00:00
christos
f704726942 Fix reversed test (from Anon Ymous) 2007-10-04 14:05:45 +00:00
xtraeme
63467beed0 AMD CS5536 Companion Device is able to work in Ultra DMA Mode 5,
patch from Andreas Wrede in PR kern/37059.
2007-10-04 13:30:59 +00:00
ad
2222038772 G/C the HIGHBALL stuff. 2007-10-04 12:55:48 +00:00
ad
a4b475cd22 Fix a thinko. 2007-10-04 01:46:49 +00:00
christos
18bad5abba busfunc depends on assym.h 2007-10-04 00:00:42 +00:00
christos
03095013ed add an smbus controller. 2007-10-04 00:00:01 +00:00
ad
8338d4a584 Fix the ifdefs to match i386. 2007-10-03 20:19:47 +00:00
christos
03687f1fb0 remove null test; it is not necessary as we always look at the next element.
from Anon Ymous
2007-10-03 19:07:43 +00:00
christos
0bfe3e6189 - int -> size_t
- off by one in \n printing [Anon Ymous]
- return when the end of the array is reached.
2007-10-03 17:45:47 +00:00
veego
d7415fbd43 Add support to ignore hid attachments for some devices, right now MGE and
APC UPS devices.
No objections on tech-kern at the end of June 2007
Patch is from PR kern/31884
2007-10-03 15:01:28 +00:00
veego
0a0c1ae8c2 Add a debug printf (aprint_debug) when a erratum was patched. 2007-10-03 14:51:47 +00:00
ad
bf299679c7 Make kaputt code compile. 2007-10-03 14:49:24 +00:00
ad
0a4c80e2c7 Protect ksiginfo_pool with splvm to be on the safe side. 2007-10-03 13:21:22 +00:00
ad
5939a3f4b8 Make the atomics inline unless !__GNUC__. 2007-10-03 12:24:48 +00:00
ad
14b1d38f4d Back out the ALIGNBYTES change. There are structures used in userspace
that depend on the constant.
2007-10-03 12:23:44 +00:00
ad
b30dffc0e4 - sched_yield: When yielding, drop the priority to MAXPRI ensuring that the
calling thread really does yield. The scheduler will adjust it back to a
  reasonable level within 1 second. This contradicts POSIX, which specifies
  that sched_yield() put the thread onto the back of its current runqueue.
  However, POSIX doesn't really have any business specifying what should
  happen for SCHED_OTHER (i.e.  a timesharing scheduler like ours), and
  Java, MySQL and libpthread rely on sched_yield() doing something useful.

- mi_switch: adjust spc_curpriority and newl->l_priority if we avoided
  the runqueues and are doing a direct switch. Since nothing currently
  does that, there should be no functional change.
2007-10-03 11:20:09 +00:00
ad
b4bc650271 Fix a dodgy bit of code in the PERFCTRS case. 2007-10-03 11:05:58 +00:00
ad
74dc12ed8b fxsave() is a function, don't re-use the name. 2007-10-03 10:54:16 +00:00
dyoung
d07b0a69f6 Delete the unused second argument to ip_stripoptions(), move it
closer to its single caller in if_eon.c, try to move fewer bytes
by moving the IP header forward instead of moving the tail of the
mbuf backward, and use m_adj(9) instead of fiddling directly with
mbuf data members.
2007-10-02 20:35:04 +00:00
skrll
20d370f9df Make want_resched a member of cpu_info. 2007-10-02 13:49:45 +00:00
pooka
0e5d568d01 minor updates/clarifications 2007-10-02 13:41:44 +00:00
ad
f10a4e3b61 Fix assertion that broke debug kernels. 2007-10-02 13:17:16 +00:00