Commit Graph

117176 Commits

Author SHA1 Message Date
christos
d0b2ede633 need opt_ibcs2.h 2003-09-10 16:46:15 +00:00
wennmach
cf92bf760d Reimplement s_log1p.S and s_log1pf.S to use the fyl2xp1 instruction
where necessary.

The log1p() function is provided to compute an accurate value of
log(1 + x), even for tiny values of x. The i387 FPU provides the
fyl2xp1 instruction for this purpose.

However, since the range of the fyl2xp1 function is limited to
-(1 - (sqrt(2) / 2)) <= x <= sqrt(2) - 1
          (-0.292893 <= x <= 0.414214)
we need to check if the argument is in the valid range.

In order to reduce the cost for testing the range, we only use
fyl2xp1 if the argument is in the range
               -0.25 <= x <= 0.25
which can be checked with just one conditional branch.

Fixes PR lib/22599 by Ray Brownrigg.
2003-09-10 16:45:43 +00:00
christos
e09c2a122c don't abuse the native sigcode. 2003-09-10 16:44:56 +00:00
christos
61f50ff333 someone forgot to commit code. make this compile again. 2003-09-10 16:44:45 +00:00
christos
cbd4e9f601 Regen 2003-09-10 16:44:12 +00:00
christos
883b4b0369 we don't need sigreturn and sigcode glue if we are not compat_16 anymore. 2003-09-10 16:43:34 +00:00
kleink
5c5edae988 sigaction1(): if SA_SIGINFO is set but not supported, fail early.
As discussed with Christos.
2003-09-10 16:41:26 +00:00
drochner
a1b15f00d2 sigcontext->siginfo 2003-09-10 15:33:08 +00:00
wiz
ea949da1c7 Add a knob to turn off automatic configuration (via rc.d) of
non-auto-configured (via kernel) raid devices. oster says ok.
2003-09-10 14:50:19 +00:00
wiz
fb114e34c8 Add semicolons when enumerating variables (looks more natural);
new sentence, new line; sort SEE ALSO.
2003-09-10 14:27:22 +00:00
wiz
e8080261ea Remove superfluous .Nm arguments; grammar fixes; add semicolons
when enumerating variables (looks more natural).
2003-09-10 14:24:23 +00:00
christos
a3c9529278 Reflect reality after siginfo changes. 2003-09-10 14:13:07 +00:00
christos
0ed7c35b0a Add siginfo man page. 2003-09-10 14:12:23 +00:00
christos
97f5766ac2 New man page for siginfo. 2003-09-10 14:11:27 +00:00
wiz
36916a02d6 Fix problem with multiple issuers in references in a file, noted
by YAMAMOTO Takashi.  Patch from Werner Lemberg (will be in next
groff).
2003-09-10 13:57:46 +00:00
wiz
a4ef1e4169 Fix typo. 2003-09-10 13:54:08 +00:00
enami
a396bb4713 Swap where the vm map's max and min offset are stored so that they can be
used during map traversal.
2003-09-10 13:38:20 +00:00
wiz
8d66b069c8 Use standard section headers, suggested by jmc@openbsd. Sort sections. 2003-09-10 13:30:16 +00:00
uwe
f03574d68b G/c cs4231_round_buffersize and cs4231_round_blocksize. The round_*
mehtods are DMA-specific, so don't belong here in the first place.
SBus and EBus glue already changed to do the right thing.
2003-09-10 11:53:53 +00:00
uwe
a0a4638c6f Get rid of the disgusting struct apc_dma *dma = NULL; hack now that we
have proper definitions for offsets of APM DMA registers.

NULL out round_buffersize and round_blocksize in audio_hw_if.  We
don't seem to have any special requirements and audio(9) already
provides enough rounding.
2003-09-10 11:45:45 +00:00
drochner
8bedb90edc in cpu_setmcontext(), check where we go, not where we are coming from,
and line-terminate a diagnostic message which was caused by that bug
2003-09-10 11:39:09 +00:00
uwe
725f80b71c Define APC DMA registers as offsets for bus space ops, so that we can
avoid linear mapping.  Actually, cs4231_sbus.c is already converted to
not use linear mapping of DMA registers, but it uses quick and
disgusting hack.
2003-09-10 11:37:13 +00:00
yamt
f80b24474d g/c CHECK_COPYIN. 2003-09-10 11:09:11 +00:00
yamt
50401b2019 use curcpu() rather than curlwp->l_cpu. 2003-09-10 10:55:50 +00:00
uwe
b3935a6934 Use EBDMA_BURST_SIZE_16. Introduce EBus specific round_blocksize to
make block size multiple of 16 words.  No point in using
round_buffersize that returns the argument unchanged, so just NULL it
in audio_hw_if.
2003-09-10 10:40:40 +00:00
itojun
d963f70264 check before deref kfs_kt 2003-09-10 10:22:45 +00:00
dan
d12b78f6df Make /kern/. have linkcount 2 in non-IPSEC case, 4 in IPSEC case.
Thanks to Valeriy E. Ushakov.
2003-09-10 09:59:47 +00:00
wiz
9e4a539564 Pull over some improvements from OpenBSD's v1.26 of this file, including
SEE ALSO and RETURN VALUES sections.
2003-09-10 09:35:41 +00:00
wiz
0e9a92473d Fix Nd; use In instead of Fd; grammar fixes. 2003-09-10 09:16:45 +00:00
jmmv
328ce86893 Document the '-d f' flag. 2003-09-10 08:44:31 +00:00
tls
ef0a2c06dc Another gcc3 problem: "exp" shadows a builtin. Rename it to "expo". 2003-09-10 07:20:13 +00:00
martin
313b12e0cc Remove rnd here and add a prominent note at the top of the file -
this config includes GENERIC32, only additional stuff goes in here.
2003-09-10 07:14:25 +00:00
tls
732fa344d5 This didn't build with gcc3 because it was missing <string.h> for memset. 2003-09-10 07:12:33 +00:00
augustss
efbfbb9402 Regen. 2003-09-10 06:54:40 +00:00
augustss
83c306df7e Add a couple of devices. 2003-09-10 06:52:27 +00:00
mycroft
2b919cb36a Mostly stylistic change, making comments and printf()s similar between BBB
and CBI.
2003-09-10 06:38:28 +00:00
wiz
89d02ff30e Use In instead of Fd for header files. 2003-09-10 05:51:06 +00:00
mycroft
78435d869d Copyright maintenance. 2003-09-10 05:42:18 +00:00
mycroft
5118c3e1e9 Set up the blank fields in the INQUIRY buffer *before* executing the command --
because we can't really rely on the "additional length" being correct (any
more?).  Fixes some problems with devices showing up as "<, , >".
2003-09-10 05:35:50 +00:00
mycroft
ff7d94f5ec Er, missed one thing. 2003-09-10 05:30:15 +00:00
mycroft
9c39f1d6a5 Exorcise UMASS_QUIRK_FORCE_SHORT_INQUIRY. 2003-09-10 05:25:44 +00:00
briggs
7f9445d14a It is best to allow a little time for the reset to settle in before
we start polling the BMCR again.  Greg Woods noted on tech-net@
that the DP83840A manual states that there should be a 500us delay
between asserting software reset and attempting MII serial operations.

I've also noted that a DP83815 can get into a bad state on cable
removal and reinsertion if we do not delay here.

This may well address PR/16346, and I seem to recall occasional
reports of auto-negotiation and flaky kinds of errors that this
might also alleviate.
2003-09-10 05:25:22 +00:00
mycroft
2fe6c4d834 On a Bulk-In data stall, make sure we copy back the data received, per the
spec.  This is the real problem behind FORCE_SHORT_INQUIRY.
2003-09-10 05:20:21 +00:00
tls
ab54d7e94f Add support for jumbo (9K) frames. Add support for larger receive
descriptor sizes if larger mbuf clusters are in use -- currently
commented out because, for some reason, transmit doesn't work at
all with large mbuf cluster sizes.

Note that using actual 9K frames is a _lot_ less efficient than
using frames that are a little smaller than 8K so that they fit
in one or two pages (instead of two or three) and avoid the extra
chained descriptor with only 1K of data in it, too.  TCP will
segment things just fine for an 8K total packet size, just as it
does for 1500-byte packets.

On my system, using "mtu 8000" with ifconfig, I get an almost 50%
performance boost for TCP (930Mbit/sec instead of 660Mbit/sec) over
1500-byte frames.  "mtu 9000" yields only 770Mbit/sec.
2003-09-10 04:02:17 +00:00
itojun
836dd0e3ef check if rootdev/rrootdev actually exists. 2003-09-10 03:56:33 +00:00
itojun
e0517a16a6 fix permission of /kern/hostname to 0644 2003-09-10 03:42:07 +00:00
jschauma
88744fcbcc Add MUA and MTA. 2003-09-10 03:34:58 +00:00
dan
843d91726f test against kt to get the right node of the given type, from enami@ 2003-09-10 03:31:29 +00:00
simonb
6ab489653d 8 spaces is evil, convert to tab. 2003-09-10 03:24:38 +00:00
mycroft
7bb5db4e3e The Sony camera reports itself as a "disk", not a "simplified direct access"
device -- ergo, it is "SCSI", not "RBC".
2003-09-10 03:13:53 +00:00