Marius Strobl
2b6ae84b63
Merge from NetBSD:
...
- Remove clause 3 and 4 from TNF licenses.
- Fix memset usage.
- Various cleanup.
- Kill caddr_t.
2011-10-15 09:29:43 +00:00
David Schultz
e595c01fd8
Remove some unnecessary initializations.
...
Obtained from: DragonFlyBSD
2011-10-15 07:00:28 +00:00
David Schultz
31b4d3aef3
Add some tests for corner cases of log() in unusual rounding modes.
...
I wrote these ages ago, but they've been failing until now.
2011-10-15 05:28:13 +00:00
David Schultz
9c7781b7a3
Add some tests for double-rounding bugs in fma().
2011-10-15 05:26:16 +00:00
David Schultz
b052ec9065
Various changes to improve the accuracy and speed of log{2,10}{,f}.
...
- Rename __kernel_log() to k_log1p().
- Move some of the work that was previously done in the kernel log into
the callers. This enables further refactoring to improve accuracy or
speed, although I don't recall the details.
- Use extra precision when adding the final scaling term, which improves
accuracy.
- Describe and work around compiler problems that break some of the
multiprecision calculations.
A fix for a small bug is also included:
- Add a special case for log*(1). This is needed to ensure that log*(1) == +0
instead of -0, even when the rounding mode is FE_DOWNWARD.
Submitted by: bde
2011-10-15 05:23:28 +00:00
David Schultz
5ebf26f6a1
Style fixes and updates to comments.
...
Submitted by: bde
2011-10-15 05:00:56 +00:00
David Schultz
15d5d9deb1
Don't define FP_FAST_FMA on sparc64; with the recent fixes, fma() is
...
no longer "fast" on sparc64. (It really wasn't to begin with, since
the old implementation was using long doubles, and long doubles are
emulated in software on sparc64.)
2011-10-15 04:24:54 +00:00
David Schultz
3d4dfde48a
Add INSERT_WORD64 and EXTRACT_WORD64 macros for use in s_fma.c.
2011-10-15 04:22:55 +00:00
David Schultz
90a83ac60a
Replace two lines accidentally removed in r226218. Thanks to bde
...
for noticing this.
2011-10-15 04:17:20 +00:00
David Schultz
ec95083025
Fix a double-rounding bug in fma{,f,l}. The bug would occur in
...
round-to-nearest mode when the result, rounded to twice machine
precision, was exactly halfway between two machine-precision
values. The essence of the fix is to simulate a "sticky bit" in
the pathological cases, which is how hardware implementations
break the ties.
MFC after: 1 month
2011-10-15 04:16:58 +00:00
Gleb Smirnoff
2a2e6f0aeb
Never switch directly from INIT to MASTER, since this produces
...
nasty status flaps.
PR: kern/161123
Submitted by: Damien Fleuriot <dam my.gd>
OpenBSD: ip_carp.c, rev. 1.115
2011-10-14 19:05:26 +00:00
John Baldwin
9860134635
Fix a typo in a comment.
2011-10-14 11:48:32 +00:00
John Baldwin
660d55fb88
Regen.
2011-10-14 11:47:14 +00:00
John Baldwin
f940342426
Use PAIR32TO64() for the offset and length parameters to
...
freebsd32_posix_fallocate() to properly handle big-endian platforms.
Reviewed by: mdf
MFC after: 1 week
2011-10-14 11:46:46 +00:00
Ed Schouten
50af444a74
Put parentheses in the right place.
...
Noted by: jilles@
Broken by: me. :-(
2011-10-14 10:43:55 +00:00
Ed Schouten
b7cf00e8d9
Make nl(1) build with WARNS=6.
...
Obtained from: NetBSD
2011-10-14 07:28:39 +00:00
Ed Schouten
51b671f6de
Build last(1) and leave(1) with WARNS=6.
...
These ports were only built with WARNS=1, because they use certain
format extensions. We can use NO_WFORMAT for that instead.
2011-10-14 07:26:20 +00:00
Ed Schouten
b173dd440b
Build tr(1) with WARNS=6.
2011-10-14 07:25:20 +00:00
Ed Schouten
583458543c
Build look(1) with WARNS=6.
2011-10-14 07:24:48 +00:00
Ed Schouten
c5d693c5d0
Build finger(1) with WARNS=6.
2011-10-14 07:24:23 +00:00
Adrian Chadd
cdd36f96b2
ath_pci PCI setup fixes.
...
* Break out the PCI setup override code into a new function.
* Re-apply the PCI overrides on powersave resume. The retry timeout
register isn't currently being saved/resumed by the PCI driver/bus
code.
2011-10-14 03:24:35 +00:00
Warren Block
2d6fb05305
Add mentors and myself to committers-doc.dot.
...
Approved by: gjb (mentor)
2011-10-14 00:34:45 +00:00
Marcel Moolenaar
90fd594a1d
Use PTRIN().
2011-10-13 22:33:03 +00:00
Raphael Kubo da Costa
91a7fc18f0
Add myself to committers-ports.dot and calendar.freebsd.
...
Approved by: avilla (mentor)
2011-10-13 20:36:43 +00:00
Marius Strobl
1e5addb750
Merge from r225950:
...
Set the sense residual properly.
Reviewed by: ken
2011-10-13 20:06:19 +00:00
Marcel Moolenaar
f8244106ab
Wrap mprotect(2) so that we can add execute permissions when read
...
permissions are requested. This is needed on amd64 and ia64 for
JDK 1.4.x
2011-10-13 18:25:10 +00:00
Marcel Moolenaar
eb8afcd36a
Wrap mprotect(2)
2011-10-13 18:21:11 +00:00
Marcel Moolenaar
488a16050c
In freebsd32_mmap() and when compiling for amd64 or ia64, also
...
ask for execute permissions when read permissions are wanted.
This is needed for JDK 1.4.x on i386.
2011-10-13 18:18:42 +00:00
Bernhard Schmidt
a7978bab76
Fix bmiss notifications, events should be sent when NOT scanning.
...
MFC after: 3 days
2011-10-13 18:17:03 +00:00
Dag-Erling Smørgrav
23f39c906b
Make dhclient use a pid file. Modify the rc script accordingly; while
...
there, clean it up and add some error checks.
Glanced at by: brooks@
MFC after: 3 weeks
2011-10-13 17:20:45 +00:00
Dag-Erling Smørgrav
51b6c61f98
Clean up mkioctls a bit, and fix cross-building by checking ${MACHINE}
...
instead of $(uname -m).
Pointed out by: nyan@
2011-10-13 16:29:24 +00:00
Marcel Moolenaar
5f81660285
In sys_obreak() and when compiling for amd64 or ia64, when the process
...
is ILP32 (i.e. i386) grant execute permissions by default. The JDK 1.4.x
depends on being able to execute from the heap on i386.
2011-10-13 16:20:10 +00:00
Marcel Moolenaar
676eda08d0
In elf32_trans_prot() and when compiling for amd64 or ia64, add
...
PROT_EXECUTE when PROT_READ is needed. By default i386 allows
execution when reading is allowed and JDK 1.4.x depends on that.
2011-10-13 16:16:46 +00:00
Ed Schouten
97b48ffc93
Link the demo application against ncursesw to make Unicode work.
2011-10-13 14:20:27 +00:00
Gleb Smirnoff
d5378bb633
Use TAILQ_FOREACH() in the nd6_dad_find() instead of hand-rolled implementation.
2011-10-13 13:33:23 +00:00
Gleb Smirnoff
a0b5928b29
De-spl(9).
2011-10-13 13:30:41 +00:00
Gleb Smirnoff
b590b6ae80
Restore functions in6_ifaddloop() and in6_ifremloop() that were
...
inlined by Qing Li in his big new-ARP commit. I am going to utilize
them in my newcarp work, and also these functions left declared
in in6_var.h for all the time they were absent.
Reviewed by: bz
2011-10-13 13:05:36 +00:00
Dag-Erling Smørgrav
81a3139422
Make kdump compile cleanly at WARNS level 6, with one exception: the
...
ipfilter headers contain a duplicated function declaration. Turn off
-Werror to allow kdump to compile in spite of this.
It would be neat to be able to turn off -Werror on a file-by-file basis...
PR: bin/161478
Submitted by: Garrett Cooper <yanegomi@gmail.com>
2011-10-12 21:45:12 +00:00
Andrew Thompson
3cd6db794c
Name these gpio pins better, they are on an external PLD and not the same as
...
the cpu wired gpio.
2011-10-12 20:58:54 +00:00
Andrew Thompson
bbdb7f2f2e
Dont just set the pin high when turning on output, use the current value. Also
...
let this value be set when in input mode.
2011-10-12 20:57:21 +00:00
Gleb Kurtsou
bfcdfc8b98
Add myself
...
Approved by: mdf (mentor)
2011-10-12 20:18:13 +00:00
Navdeep Parhar
aa4b09c5c7
Make sure the inp wasn't dropped when rexmt let go of the inp and
...
pcbinfo locks.
Reviewed by: andre@
MFC after: 7 days
2011-10-12 19:52:23 +00:00
Gleb Smirnoff
0e775b6d17
Document that memguard(9) now can guard uma(9) allocations.
2011-10-12 18:46:48 +00:00
Gleb Smirnoff
8d689e042f
Make memguard(9) capable to guard uma(9) allocations.
2011-10-12 18:08:28 +00:00
Dimitry Andric
ce4903ad98
Add symlink from clang to clang-cpp, so you can use CPP=clang-cpp in
...
Makefiles. Also add a manpage symlink for it.
MFC after: 3 days
2011-10-12 17:47:15 +00:00
Dimitry Andric
0e19228d25
Add manpage symlink for clang++(1).
...
PR: docs/149051
MFC after: 3 days
2011-10-12 17:25:49 +00:00
Nathan Whitehorn
4a383558ce
Missed file in r225937 (sysinstall removal).
2011-10-12 15:34:25 +00:00
John Baldwin
5d0d779b0e
If an allocation for a specific resource range fails because it is not in
...
a decoded range for an ACPI Host-PCI bridge, try to allocate it from the
ACPI system resource range. If that works, permit the resource allocation
regardless.
MFC after: 1 week
2011-10-12 14:13:32 +00:00
Robert Watson
b160c14194
Correct a bug in export of capability-related information from the sysctls
...
supporting procstat -f: properly provide capability rights information to
userspace. The bug resulted from a merge-o during upstreaming (or rather,
a failure to properly merge FreeBSD-side changed downstream).
Spotted by: des, kibab
MFC after: 3 days
2011-10-12 12:08:03 +00:00
Adrian Chadd
eb29e5f70d
Fix an unused variable warning/error when invariants isn't enabled.
...
Reported by: bz
2011-10-12 10:19:55 +00:00