]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
10 years agoMFC rr258501, r258507;
pfg [Sun, 15 Dec 2013 03:48:54 +0000 (03:48 +0000)]
MFC rr258501, r258507;
gcc: Bring updates from Google's enhanced gcc-4.2.1.

Google released and enhanced version of gcc-4.2.1 plus their local
patches for Android[1].

The patches are owned by Google and the license hasn't been changed
from  the original GPLv2. We are only bringing a subset of the
available patches that may be helpful in FreeBSD, in other words,
changes specific to android are not included.

From the README.google file[1].

Patches applied to google_vendor_src_branch/gcc/gcc-4.2.1:

gcc/Makefile.in
gcc/c-common.c
gcc/c-common.h
gcc/c-opts.c
gcc/c-typeck.c
gcc/cp/typeck.c
gcc/doc/invoke.texi
gcc/flags.h
gcc/opts.c
gcc/tree-flow.h
gcc/tree-ssa-alias-warnings.c
gcc/tree-ssa-alias.c

 Backport of -Wstrict-aliasing from mainline.
  Silvius Rus <rus@google.com>

gcc/coverage.c:
  Patch coverage_checksum_string for PR 25351.
  Seongbae Park <spark@google.com>
  Not yet submitted to FSF.

gcc/c-opts.c
gcc/c-ppoutput.c
gcc/c.opt
gcc/doc/cppopts.texi
libcpp/Makefile.in
libcpp/directives-only.c
libcpp/directives.c
libcpp/files.c
libcpp/include/cpplib.h
libcpp/init.c
libcpp/internal.h
libcpp/macro.c
  Support for -fdirectives-only.
  Ollie Wild <aaw@google.com>.
  Submitted to FSF but not yet approved.

libstdc++-v3/include/ext/hashtable.h
  http://b/742065
  http://b/629994
  Reduce min size of hashtable for hash_map, hash_set from 53 to 5

libstdc++-v3/include/ext/hashtable.h
  http://b/629994
  Do not iterate over buckets if hashtable is empty.

gcc/common.opt
gcc/doc/invoke.texi
gcc/flags.h
gcc/gimplify.c
gcc/opts.c
  Add Saito's patch for -finstrument-functions-exclude-* options.

gcc/common.opt
gcc/doc/invoke.texi
gcc/final.c
gcc/flags.h
gcc/opts.c
gcc/testsuite/gcc.dg/Wframe-larger-than.c
  Add a new flag -Wframe-larger-than- which enables a new warning
  when a frame size of a function is larger than specified.
  This patch hasn't been integrated into gcc mainline yet.

gcc/tree-vrp.c
  Add a hack to avoid using ivopts information for pointers starting
  at constant values.

Reference:

[1]
https://android.googlesource.com/toolchain/gcc/+/master/gcc-4.2.1/

Obtained from: Google Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/9@259406 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r257987:
ae [Sat, 14 Dec 2013 04:27:28 +0000 (04:27 +0000)]
MFC r257987:
  Initialize prot variable.

  PR: 177417

git-svn-id: svn://svn.freebsd.org/base/stable/9@259387 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r257965:
ae [Sat, 14 Dec 2013 04:16:47 +0000 (04:16 +0000)]
MFC r257965:
  Add missing line breaks.

  PR: 181900

git-svn-id: svn://svn.freebsd.org/base/stable/9@259384 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFV r258571:
pfg [Fri, 13 Dec 2013 19:38:05 +0000 (19:38 +0000)]
MFV r258571:

Removes strict-aliasing warnings from newer GCC in tcpdump.

Corresponds to MFC r258573, but for some reason our new pre-commit
hooks will not let us merge it from there.

git-svn-id: svn://svn.freebsd.org/base/stable/9@259327 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258115 (partial);
pfg [Fri, 13 Dec 2013 18:24:36 +0000 (18:24 +0000)]
MFC r258115 (partial);

gperf: bring a small update from Apple Developers tools 4.4

From [1]

offset.patch
Makes use the C offsetof() macro.

We are not merging the size_type.patch as it raises some
(apparently) bogus warnings and is not really used.

[1] http://opensource.apple.com/source/gperf/gperf-9/patches/

git-svn-id: svn://svn.freebsd.org/base/stable/9@259321 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258367:
kib [Fri, 13 Dec 2013 06:29:02 +0000 (06:29 +0000)]
MFC r258367:
Verify for zero-length requests and act as if it is always successfull
without performing any action on the address space.

git-svn-id: svn://svn.freebsd.org/base/stable/9@259300 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258366:
kib [Fri, 13 Dec 2013 06:25:43 +0000 (06:25 +0000)]
MFC r258366:
Add assertions to cover all places in the wiring and unwiring code
where MAP_ENTRY_IN_TRANSITION is set or cleared.

git-svn-id: svn://svn.freebsd.org/base/stable/9@259298 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259044:
kib [Fri, 13 Dec 2013 06:06:25 +0000 (06:06 +0000)]
MFC r259044:
For variant II static TLS, properly align tls segments.

MFC r259072:
Cast Elf_Addr to void * to match the free_aligned() argument type.

git-svn-id: svn://svn.freebsd.org/base/stable/9@259293 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259043:
kib [Fri, 13 Dec 2013 06:01:21 +0000 (06:01 +0000)]
MFC r259043:
Build an allocator for the aligned memory on top of the rtld-private
malloc.

git-svn-id: svn://svn.freebsd.org/base/stable/9@259291 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259042:
kib [Fri, 13 Dec 2013 05:54:58 +0000 (05:54 +0000)]
MFC r259042:
Do not force to run atexit handlers, which text comes from a dso owning
the handle passed to __cxa_finalize() but which are registered by other
dso, when the process is inside exit(3).

git-svn-id: svn://svn.freebsd.org/base/stable/9@259289 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r244673:
pfg [Fri, 13 Dec 2013 02:21:32 +0000 (02:21 +0000)]
MFC r244673:

Fix the __glibcxx_min and __glibcxx_max macros for a signed wchar_t.

This seems to be needed by newer compilers.

git-svn-id: svn://svn.freebsd.org/base/stable/9@259283 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agomtest(8): use correct macro in mdoc
eadler [Fri, 13 Dec 2013 01:35:31 +0000 (01:35 +0000)]
mtest(8): use correct macro in mdoc

The An macros is used for authors while the Ar macro is used for arguments.
AFAIK mcast-addr and ifname are not authors.

PR: docs/184649

git-svn-id: svn://svn.freebsd.org/base/stable/9@259282 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258712;
pfg [Thu, 12 Dec 2013 19:02:18 +0000 (19:02 +0000)]
MFC r258712;

libcpp: fix an underflow.

Similar fix seen in Apple's gcc42.

Obtained from: OpenBSD (Rev 1.2)
MFC after: 2 weeks

git-svn-id: svn://svn.freebsd.org/base/stable/9@259272 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258081, r258138, r258143, r258179, r258157, r258204, 258205,
pfg [Thu, 12 Dec 2013 18:16:46 +0000 (18:16 +0000)]
MFC r258081, r258138, r258143, r258179, r258157, r258204, 258205,
r258206, r258207, r258321

This is a series of commits inspired on Google's gcc-4.2.1 for
Android that were taken from the gcc pre-4.3 under the GPLv2.

gcc: Backport fixes for -W parentheses in C++
This fixes GCC 19564.
gcc: merge rs6000 change from FSF pre-gcc43
Don't set MASK_PPC_GFXOPT for 8540 or 8548.
Merge vrp-tree fix from gcc-4.3
Fix missed conversion from / to >> (GCC PR32521)
Merge in GCCr120505 to include definition of TREE_OVERFLOW_P
gcc: warn about integer overflow in constant expressions in the C++ frontend.
gcc: Add a new option -Wvla to warn variable length array.
libcpp: preprocessor speedup patches from upstream gcc.
gcc: add femit-struct-debug support to reduce Reduce dwarf debug size
gcc: Fix postreload-gcse treatment of call-clobbered registers.
gcc: Record some previous commits in the ChangeLog.gcc43 file.

git-svn-id: svn://svn.freebsd.org/base/stable/9@259269 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r226422, r227241, r228063, r228697, r228698, r228701, r234310, r234850,
tijl [Thu, 12 Dec 2013 15:04:59 +0000 (15:04 +0000)]
MFC r226422, r227241, r228063, r228697, r228698, r228701, r234310, r234850,
r250226, r250926.

This brings m4 up to date with the version in head and fixes the eval
command when called with a 2nd and 3rd argument.  The only differences
remaining are related to the updated flex and byacc in head.

PR: bin/166994

git-svn-id: svn://svn.freebsd.org/base/stable/9@259262 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258658:
mdf [Thu, 12 Dec 2013 02:04:59 +0000 (02:04 +0000)]
MFC r258658:

Fix a segfault / internal compiler error.

Among other causes, when gcc throws a warning before parsing any tokens,
the cur_token pointer is at the beginning of malloc'd memory.
Dereferencing cur_token[-1] can cause a segfault.

Code taken from OpenBSD
http://www.openbsd.org/cgi-bin/cvsweb/src/gnu/gcc/libcpp/errors.c
which was a more complete fix than the one I originally coded.

git-svn-id: svn://svn.freebsd.org/base/stable/9@259243 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r256448, r257029;
pfg [Wed, 11 Dec 2013 19:25:38 +0000 (19:25 +0000)]
MFC r256448, r257029;

Make di_blocks unsigned in UFS1 as is the case already for UFS2.
 Most of the code between UFS1 and UFS2 is shared so this change
 is pretty safe. Not only this makes UFS1 and 2 consistent but it
 also matches what NetBSD and MacOS X have for some years now.

UFS2: make di_extsize unsigned.
 di_extsize is the EA size and as such it should be unsigned.
 Adjust related types for consistency.

Reviewed by: mckusick

git-svn-id: svn://svn.freebsd.org/base/stable/9@259224 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259111:
dim [Wed, 11 Dec 2013 07:43:30 +0000 (07:43 +0000)]
MFC r259111:

Use correct casts in gcc's emmintrin.h for the first arguments of the
following builtin functions:

* __builtin_ia32_pslldi128() takes __v4si instead of __v8hi
* __builtin_ia32_psllqi128() takes __v2di instead of __v8hi
* __builtin_ia32_psradi128() takes __v4si instead of __v8hi

This should fix the following errors when building the LINT kernel with
gcc:

sys/crypto/aesni/aesni_wrap.c:191: error: incompatible type for argument 1 of
'__builtin_ia32_psradi128'
sys/crypto/aesni/aesni_wrap.c:195: error: incompatible type for argument 1 of
'__builtin_ia32_pslldi128'

git-svn-id: svn://svn.freebsd.org/base/stable/9@259216 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259100:
dim [Wed, 11 Dec 2013 07:34:34 +0000 (07:34 +0000)]
MFC r259100:

Pull in r196658 from upstream clang trunk:

  CodeGen: Don't emit linkage on thunks that aren't emitted because they're
  vararg.

  This can happen when we're trying to emit a thunk with available_externally
  linkage with optimization enabled but bail because it doesn't make sense for
  vararg functions.

  [LLVM] PR18098.

This should fix clang "Broken module found, compilation aborted" errors when
building the qt4-based dvbcut port.

Reported by: se

git-svn-id: svn://svn.freebsd.org/base/stable/9@259214 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r257598
rmacklem [Tue, 10 Dec 2013 22:03:59 +0000 (22:03 +0000)]
MFC: r257598
During code inspection, I spotted that there was a code path where
CLNT_CONTROL() would be called on "client" after it was
released via CLNT_RELEASE(). It was unlikely that this
code path gets executed and I have not heard of any problem
report caused by this bug. This patch fixes the code so that
this cannot happen.

git-svn-id: svn://svn.freebsd.org/base/stable/9@259201 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoHand merge from current r235717:
imp [Tue, 10 Dec 2013 19:48:48 +0000 (19:48 +0000)]
Hand merge from current r235717:
Implement pmap_mincore for arm.  Now programs using it don't cause a
flood of console messages.

Reviewed by: alc@

git-svn-id: svn://svn.freebsd.org/base/stable/9@259190 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259083:
dim [Tue, 10 Dec 2013 07:28:26 +0000 (07:28 +0000)]
MFC r259083:

For WARNS <= 3, change the clang warning flag -Wno-conversion to
-Wno-enum-conversion.  In earlier clang versions (before 3.2), the
latter did not exist, and suppressing enum conversion warnings was
really the goal of this warning suppression flag.

This should enable the same kind of warning again as was fixed by
r259072 ("incompatible integer to pointer conversion passing 'Elf_Addr'
(aka 'unsigned int') to parameter of type 'void *'"), and which was only
emitted by gcc.

Noticed by: kib

git-svn-id: svn://svn.freebsd.org/base/stable/9@259158 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259053:
dim [Tue, 10 Dec 2013 07:25:25 +0000 (07:25 +0000)]
MFC r259053:

Pull in r196590 from upstream clang trunk (by rdivacky):

  Move the body of GCCInstallationDetector ctor into an init() function
  and call it from its only user. The linux toolchain. This saves quite
  a lot of directory searching on other platforms.

See http://docs.freebsd.org/cgi/mid.cgi?51E6FAF5.3080802 for the
original discussion.  With this fix, the search for gcc installations is
completely eliminated on FreeBSD.

Reported by: Kurt Lidl <lidl@pix.net>

git-svn-id: svn://svn.freebsd.org/base/stable/9@259157 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC:
imp [Sun, 8 Dec 2013 03:49:45 +0000 (03:49 +0000)]
MFC:

r246881 | ian | 2013-02-16 13:43:16 -0700 (Sat, 16 Feb 2013) | 4 lines

In _bus_dmamap_addseg(), the return value must be zero for error, or the size
actually added to the segment (possibly smaller than the requested size if
boundary crossings had to be avoided).

This fixes NFS root on Atmel platforms, and likely others.

git-svn-id: svn://svn.freebsd.org/base/stable/9@259093 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years ago4096 is 4MB, and macb doesn't even come close to working, so don't say
imp [Sun, 8 Dec 2013 02:48:06 +0000 (02:48 +0000)]
4096 is 4MB, and macb doesn't even come close to working, so don't say
it is an altenative. It hasn't worked in quite some time. The die
hards can still try to use macb in the tree if they want...

git-svn-id: svn://svn.freebsd.org/base/stable/9@259090 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoBump the maximum VM space from 3 * memory size to a fixed
imp [Fri, 6 Dec 2013 18:32:03 +0000 (18:32 +0000)]
Bump the maximum VM space from 3 * memory size to a fixed
256MB. That's all we have room for since we map the hardware registers
starting at 0xd0000000. This allows my 64MB AT91SAM9G20 to boot again
after the unmmaped I/O changes were MFC'd at r251897. Other
subplatforms may need similar treatment.

git-svn-id: svn://svn.freebsd.org/base/stable/9@259038 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r257109:
dim [Thu, 5 Dec 2013 21:51:53 +0000 (21:51 +0000)]
MFC r257109:

Add clang-CC and CC to list of hints allowing clang to identify its operating
mode as c++ instead of defaulting to c for the binary names CC and clang-CC.

This fixes builds that use cmake, which automatically sets CXX to
/usr/bin/CC by default.

PR: bin/182442
Reviewed by: dwhite, wca

git-svn-id: svn://svn.freebsd.org/base/stable/9@259012 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r255076:
dim [Thu, 5 Dec 2013 21:49:41 +0000 (21:49 +0000)]
MFC r255076:

Pull in r189672 from upstream llvm trunk:

  InstCombine: Check for zero shift amounts before subtracting one
  causing integer overflow.

  PR17026. Also avoid undefined shifts and shift amounts larger than 64
  bits (those are always undef because we can't represent integer types
  that large).

This should fix assertion failures when building the emulators/xmame
port.

Reported by: bapt

git-svn-id: svn://svn.freebsd.org/base/stable/9@259011 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r253802:
dim [Thu, 5 Dec 2013 21:46:29 +0000 (21:46 +0000)]
MFC r253802:

Pull in r186696 from upstream clang trunk:

  This patch implements __get_cpuid_max() as an inline and __cpuid()
  and __cpuid_count() as macros to be compatible with GCC's cpuid.h.
  It also adds bit_<foo> constants for the various feature bits as
  described in version 039 (May 2011) of Intel's SDM Volume 2 in the
  description of the CPUID instruction.  The list of bit_<foo>
  constants is a bit exhaustive (GCC doesn't do near this many).  More
  bits could be added from a newer version of SDM if desired.

  Patch by John Baldwin!

This should fix several ports which depend on this functionality being
available.

git-svn-id: svn://svn.freebsd.org/base/stable/9@259009 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r256082 (by decke)
dim [Thu, 5 Dec 2013 20:25:44 +0000 (20:25 +0000)]
MFC r256082 (by decke)

Rename internal function test() to avoid name clashes with common
macros. This fixes ports like mysql 5.6 which has an internal macro
called test.

Discussed with: theraven

git-svn-id: svn://svn.freebsd.org/base/stable/9@259004 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r244280 (by pjd):
mav [Thu, 5 Dec 2013 20:12:02 +0000 (20:12 +0000)]
MFC r244280 (by pjd):
sbuf_trim() cannot be used on sbuf with drain function set.
This fixes panic when listing sysctls on INVARIANTS-enabled kernel while
having wbwd loaded.

This panic was not fatal, at worst one additional space was printed.

Also sbuf_trim() makes some sense even if drain function is set. The drain
function is called only when buffer is to be expanded. So we could still trim
existing buffer before drain is called. In this case it worked just fine - the
trailing space was correctly trimmed.

git-svn-id: svn://svn.freebsd.org/base/stable/9@259002 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258830:
yongari [Thu, 5 Dec 2013 07:32:54 +0000 (07:32 +0000)]
MFC r258830:
  Add support for BCM57764, BCM57767, BCM57782, BCM57786 and BCM57787.
  PR: 184304

git-svn-id: svn://svn.freebsd.org/base/stable/9@258967 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r253540:
yongari [Thu, 5 Dec 2013 07:31:01 +0000 (07:31 +0000)]
MFC r253540:
  5725 family of devices corrupts TSO packets when TSO DMA buffers
  cross into regions which are within MSS bytes of a 4GB boundary.
  If we encounter the condition, drop the packet.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258966 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r253483:
yongari [Thu, 5 Dec 2013 07:29:25 +0000 (07:29 +0000)]
MFC r253483:
  Add support for upcoming BCM5725 (ASIC 5762) controller.  This is a
  new 1Gb server controller chip that will be going into production
  soon.
  BCM5725 combines MAC with triple-speed PHY, a Network Controller
  Sideband Interface (NC-SI) and on-chip memory buffer in a single
  device.  BCM5725 has an Application Processing Engine (APE) that is
  capable of on-chip management and offloading features.  BCM5725
  supports high-precision clock, time stamp registers for
  receive/transmit packets and programmable trigger inputs and
  watchdog timeouts. These new features are not yet supported by
  bge(4).
  Many thanks to Broadcom for continuing to support FreeBSD!

git-svn-id: svn://svn.freebsd.org/base/stable/9@258965 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r253481:
yongari [Thu, 5 Dec 2013 07:27:48 +0000 (07:27 +0000)]
MFC r253481:
  Recognize BCM5725C PHY.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258964 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r253480:
yongari [Thu, 5 Dec 2013 07:20:03 +0000 (07:20 +0000)]
MFC r253480:
  Setup the PCIE Fast Training Sequence (FTS) value to prevent
  transmit hangs for 57766 and non Ax versions of 57765.
  While here, correct definition of BGE_CHIPREV_57765_AX.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258963 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r253408:
yongari [Thu, 5 Dec 2013 07:18:32 +0000 (07:18 +0000)]
MFC r253408:
  Implement workaround for BCM5719/BCM5720 TX hang.
  The read DMA request logic operation is based on having sufficient
  available space in the transmit data buffer (TXMBUF) before a read
  DMA can be requested.  There are four read DMA channels that use
  the TXMBUF, and the logic checks if the available free space in the
  TXMBUF is large enough for all the data in the four Send Buffers
  for which buffer descriptors have been fetched.  The Enable_Request
  signal is asserted only if the free TXMBUF space is larger than the
  sum of the four DMA length registers.  The power-up default value
  of BGE_RDMA_LSO_CRPTEN_CTRL register bit 25 (bit 21 on BCM5720) is
  zero, which selects the DMA length registers to connect to the
  input of the adder block.  The DMA length registers are
  asynchronously reset following BCM5719/BCM5720 power-up, and due to
  the lack of synchronous deassertion of the length registers reset
  signal these resisters may contain uninitialized values following
  the reset deassertion.
  In the case of the failure the uninitialized DMA length register
  values added up to more than the TXMBUF size, which prevented the
  assertion of the Enable_Request signal and any subsequent read DMA
  to start.  This lockup condition is the root cause of failing to
  generate any transmit traffic.

  To workaround the issue, select alternate output of multiplexers
  and transmit the first four Ethernet frames. This overwrites the
  DMA length registers with valid values.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258962 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r253406:
yongari [Thu, 5 Dec 2013 07:16:24 +0000 (07:16 +0000)]
MFC r253406:
  Avoid magic constant.
  No functional change.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258960 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: 252206,258156
davidcs [Wed, 4 Dec 2013 20:05:20 +0000 (20:05 +0000)]
MFC: 252206,258156
port dev/qlxge from head

git-svn-id: svn://svn.freebsd.org/base/stable/9@258936 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 250661,251076,251605,252580,254976,255003,258155
davidcs [Tue, 3 Dec 2013 22:31:08 +0000 (22:31 +0000)]
MFC 250661,251076,251605,252580,254976,255003,258155
port dev/qlxgbe from HEAD

git-svn-id: svn://svn.freebsd.org/base/stable/9@258898 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258663:
kib [Tue, 3 Dec 2013 20:06:58 +0000 (20:06 +0000)]
MFC r258663:
Use sysctl KERN_PROC_SIGTRAMP to retrieve the signal trampoline
location for the native amd64 ABI.  This fixes unwinding over the
signal frame after trampoline was moved to the shared page.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258889 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258661:
kib [Tue, 3 Dec 2013 19:55:49 +0000 (19:55 +0000)]
MFC r258661:
Add sysctl KERN_PROC_SIGTRAMP to retrieve signal trampoline location for the
given process.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258888 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 253471,253620,254430,254538:
jhb [Tue, 3 Dec 2013 16:07:56 +0000 (16:07 +0000)]
MFC 253471,253620,254430,254538:
Change mmap() to more optimally use superpages and provide support for
tweaking alignment of virtual mappings.
- Add a new address space allocation method (VMFS_OPTIMAL_SPACE) for
  vm_map_find() that will try to alter the alignment of a mapping to match
  any existing superpage mappings of the object being mapped.  If no
  suitable address range is found with the necessary alignment,
  vm_map_find() will fall back to using the simple first-fit strategy
  (VMFS_ANY_SPACE).
- Change mmap() without MAP_FIXED, shmat(), shm_map(), and the GEM mapping
  ioctl to use VMFS_OPTIMAL_SPACE instead of VMFS_ANY_SPACE.
- MAP_ALIGNED(n) requests a mapping aligned on a boundary of (1 << n).
  Requests for n >= number of bits in a pointer or less than the size of
  a page fail with EINVAL.  This matches the API provided by NetBSD.
- MAP_ALIGNED_SUPER is a special case of MAP_ALIGNED.  It can be used
  to optimize the chances of using large pages.  By default it will align
  the mapping on a large page boundary (the system is free to choose any
  large page size to align to that seems best for the mapping request).
  However, if the object being mapped is already using large pages, then
  it will align the virtual mapping to match the existing large pages in
  the object instead.
- Internally, VMFS_ALIGNED_SPACE is now renamed to VMFS_SUPER_SPACE, and
  VMFS_ALIGNED_SPACE(n) is repurposed for specifying a specific alignment.
  MAP_ALIGNED(n) maps to using VMFS_ALIGNED_SPACE(n), while
  MAP_ALIGNED_SUPER maps to VMFS_SUPER_SPACE.
- mmap() of a device object now uses VMFS_OPTIMAL_SPACE rather than
  explicitly using VMFS_SUPER_SPACE.  All device objects are forced to
  use a specific color on creation, so VMFS_OPTIMAL_SPACE is effectively
  equivalent.

PR: ports/184173 (exp-run)

git-svn-id: svn://svn.freebsd.org/base/stable/9@258870 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258737
rodrigc [Mon, 2 Dec 2013 18:20:07 +0000 (18:20 +0000)]
MFC r258737

In keg_dtor(), print out the keg name in the "Freed UMA keg was not empty"
message printed to the console.  This makes it easier to track down
the source of certain memory leaks.

Suggested by: adrian

git-svn-id: svn://svn.freebsd.org/base/stable/9@258852 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258347,r258349:
bdrewery [Mon, 2 Dec 2013 10:59:41 +0000 (10:59 +0000)]
MFC r258347,r258349:

  Support SNI in libfetch

  SNI is Server Name Indentification which is a protocol for TLS that
  indicates the host that is being connected to at the start of the
  handshake. It allows to use Virtual Hosts on HTTPS.

PR: kern/183583
Approved by: bapt (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/9@258844 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r256557 - kernel and userland osreldate helpers.
peter [Sun, 1 Dec 2013 22:43:14 +0000 (22:43 +0000)]
MFC r256557 - kernel and userland osreldate helpers.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258818 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r258718: fix emulated jail_v0 byte order
peter [Sat, 30 Nov 2013 23:08:32 +0000 (23:08 +0000)]
MFC: r258718: fix emulated jail_v0 byte order

git-svn-id: svn://svn.freebsd.org/base/stable/9@258784 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258499:
kib [Sat, 30 Nov 2013 14:39:56 +0000 (14:39 +0000)]
MFC r258499:
Fix for the spurious signal handler call with zero signo in the threaded
process.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258767 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258664:
delphij [Sat, 30 Nov 2013 07:04:35 +0000 (07:04 +0000)]
MFC r258664:

Create /var/cache with mode 0755 instead of 0750.

This directory is used by many third party applications and having
permission 0750 makes it impossible to drop group privileges.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258763 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258620:
dim [Fri, 29 Nov 2013 18:51:54 +0000 (18:51 +0000)]
MFC r258620:

Pull in r195558 from upstream clang trunk:

  Fix a SSE2 intrinsics typo

  Full discourse at:

   http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20131104/092514.html
   http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-November/068124.html

  Patch by Dimitry Andric and Alexey Dokuchaev!

Reported by: danfe

git-svn-id: svn://svn.freebsd.org/base/stable/9@258749 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r257879:
delphij [Thu, 28 Nov 2013 22:08:41 +0000 (22:08 +0000)]
MFC r257879:

Fix typo in r256646: We want to generate lists of directories in
INDEX-OLD and INDEX-NEW and compare them, not generate the same
list of directories from INDEX-OLD twice...

Pointy hats to: cperciva & everybody who didn't proofread
EN-13:04 enough
Errata Notice: FreeBSD-EN-13:05.freebsd-update

git-svn-id: svn://svn.freebsd.org/base/stable/9@258724 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258135: x86: Allow users to change PSL_RF via ptrace(PT_SETREGS...)
emaste [Wed, 27 Nov 2013 16:08:33 +0000 (16:08 +0000)]
MFC r258135: x86: Allow users to change PSL_RF via ptrace(PT_SETREGS...)

  Debuggers may need to change PSL_RF. Note that tf_eflags is already stored
  in the signal context during signal handling and PSL_RF previously could
  be modified via sigreturn, so this change should not provide any new
  ability to userspace.

  For background see the thread at:
  http://lists.freebsd.org/pipermail/freebsd-i386/2007-September/005910.html

  Reviewed by: jhb, kib

Sponsored by: DARPA, AFRL

git-svn-id: svn://svn.freebsd.org/base/stable/9@258685 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r229663: Allow to change vfs.zfs.arc_meta_limit at runtime.
avg [Tue, 26 Nov 2013 10:22:24 +0000 (10:22 +0000)]
MFC r229663: Allow to change vfs.zfs.arc_meta_limit at runtime.

- Change vfs.zfs.arc_meta_used from CTLFLAG_RDTUN to CTLFLAG_RD,
as it is not a tunable.

MFC slacker: pjd

git-svn-id: svn://svn.freebsd.org/base/stable/9@258635 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258350:
dim [Mon, 25 Nov 2013 22:58:12 +0000 (22:58 +0000)]
MFC r258350:

Pull in r191896 from upstream llvm trunk:

  CaptureTracking: Plug a loophole in the "too many uses" heuristic.

  The heuristic was added to avoid spending too much compile time in a
  specially crafted test case (PR17461, PR16474) with many uses on a
  select or bitcast instruction can still trigger the slow case. Add a
  check for that case.

  This only affects compile time, don't have a good way to test it.

This fixes the excessive compile time spent on a specific file of the
graphics/rawtherapee port.

Reported by: mandree

git-svn-id: svn://svn.freebsd.org/base/stable/9@258608 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r257007,258140:
delphij [Mon, 25 Nov 2013 20:05:23 +0000 (20:05 +0000)]
MFC r257007,258140:

Update driver to version 10.0.664.0.

Many thanks to Emulex for their continued support of FreeBSD.

Submitted by: Venkata Duvvuru <VenkatKumar.Duvvuru Emulex Com>

git-svn-id: svn://svn.freebsd.org/base/stable/9@258586 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r246482 (rrs) + r246581:
delphij [Mon, 25 Nov 2013 20:01:34 +0000 (20:01 +0000)]
MFC r246482 (rrs) + r246581:

This fixes a out-of-order problem with several of the newer
drivers. The basic problem was that the driver was pulling
the mbuf off the drbr ring and then when sending with xmit(),
encounting a full transmit ring. Thus the lower layer xmit()
function would return an error, and the drivers would then
append the data back on to the ring.  For TCP this is a
horrible scenario sure to bring on a fast-retransmit.

The fix is to use drbr_peek() to pull the data pointer but
not remove it from the ring. If it fails then we either call
the new drbr_putback or drbr_advance method. Advance moves
it forward (we do this sometimes when the xmit() function
frees the mbuf). When we succeed we always call advance.
The putback will always copy the mbuf back to the top of the
ring. Note that the putback *cannot* be used with a
drbr_dequeue() only with drbr_peek(). We most of the time,
in putback, would not need to copy it back since most likey
the mbuf is still the same, but sometimes xmit() functions
will change the mbuf via a pullup or other call. So the
optimial case for the single consumer is to always copy it
back.  If we ever do a multiple_consumer (for lagg?) we
will need a test and atomic in the put back possibly a
seperate putback_mc() in the ring buf.

Reviewed by: jhb@freebsd.org, jlv@freebsd.org

git-svn-id: svn://svn.freebsd.org/base/stable/9@258584 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r240834: Add rounddown2() macro similar to the roundup2() macro.
avg [Mon, 25 Nov 2013 18:51:25 +0000 (18:51 +0000)]
MFC r240834: Add rounddown2() macro similar to the roundup2() macro.

MFC slacker: pjd

git-svn-id: svn://svn.freebsd.org/base/stable/9@258575 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFV r258377: 4088 use after free in arc_release()
avg [Mon, 25 Nov 2013 16:06:07 +0000 (16:06 +0000)]
MFV r258377: 4088 use after free in arc_release()

illumos/illumos-gate@ccc22e130479b5bd7c0002267fee1e0602d3f772

git-svn-id: svn://svn.freebsd.org/base/stable/9@258560 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258389: MFV r258378: 4089 NULL pointer dereference in arc_read()
avg [Mon, 25 Nov 2013 15:53:08 +0000 (15:53 +0000)]
MFC r258389: MFV r258378: 4089 NULL pointer dereference in arc_read()

illumos/illumos-gate@57815f6b95a743697e148327725b7f568e75e6ea

git-svn-id: svn://svn.freebsd.org/base/stable/9@258557 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258353: zfs page_busy: fix the boundaries of the cleared range
avg [Mon, 25 Nov 2013 15:39:50 +0000 (15:39 +0000)]
MFC r258353: zfs page_busy: fix the boundaries of the cleared range

This is a fix for a regression introduced in r246293.

vm_page_clear_dirty expects the range to have DEV_BSIZE aligned boundaries,
otherwise it extends them.  Thus it can happen that the whole page is
marked clean while actually having some small dirty region(s).
This commit makes the range properly aligned and ensures that only
the clean data is marked as such.

It would interesting to evaluate how much benefit clearing with DEV_BSIZE
granularity produces.  Perhaps instead we should clear the whole page
when it is completely overwritten and don't bother clearing any bits
if only a portion a page is written.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258555 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoRevert r258528: wrong tree
pfg [Sun, 24 Nov 2013 20:53:48 +0000 (20:53 +0000)]
Revert r258528: wrong tree

Inofensive as it is, this was meant for current. It will be re-merged
along with related changes in 3 weeks.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258529 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agolibcpp: Keep a record of changes from upstream GCC (pre-43).
pfg [Sun, 24 Nov 2013 20:41:35 +0000 (20:41 +0000)]
libcpp: Keep a record of changes from upstream GCC (pre-43).

This makes it easier to track the changes in the rare event of the code
being distributed without access to version control.

MFC after: 3 weeks

git-svn-id: svn://svn.freebsd.org/base/stable/9@258528 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 226145,226147,226148,226150,226151,226153,226157,226158,226164,226246,
jhb [Thu, 21 Nov 2013 20:09:44 +0000 (20:09 +0000)]
MFC 226145,226147,226148,226150,226151,226153,226157,226158,226164,226246,
226262,226329,226344,226608:
Merge most "infrastructure" changes to kdump to make other MFC's to add
new decodings, etc. easier:
- Some of the #defines or enums for which we auto-generate naming
  functions may be wider than int, so use intmax_t throughout.
- Auto-generate kdump_subr.h.
- Use a switch statement instead of a giant if-else.
- Remove a lot of (void) casts.
- Bring ioctlname() in line with all the other *name() functions, which
  actually print the name (or the numeric value, if they can't figure out
  the correct name) instead of just returning a pointer to it.  Also, since
  ioctl numbers are not and probably never will be unique, drop support for
  using a switch statement instead of an if/else chain.
- Mostly WARNS=6 clean.
- Update mkioctls to still work with both kdump and truss.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258442 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r257874:
pluknet [Tue, 19 Nov 2013 11:11:51 +0000 (11:11 +0000)]
MFC r257874:

Fix extattr(2) MLINKS.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258341 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r257942, r258101:
gjb [Mon, 18 Nov 2013 17:06:33 +0000 (17:06 +0000)]
MFC r257942, r258101:

r257942:
  Fix a few style nits.

r258101:
  Since the doc/ toolchain conversion to docbook 5.0, JADETEX
  is no longer a valid option, so remove 'WITHOUT_JADETEX=yes'
  from PBUILD_FLAGS.

  While here, also remove 'WITHOUT_X11=yes', since it will
  cause a dependency conflict by requiring both print/ghostscript9
  and print/ghostscript9-nox11.

  Switch to OPTIONSNG format (WITHOUT_* -> OPTIONS_UNSET='FOO'),
  and unset the FOP option, which requires Java (although it is
  disabled by default).  Also unset the 'IGOR' option, since
  textproc/igor is a validation tool, not necessarily a dependency
  of the doc/ build itself.

  While here, reduce the line length of PBUILD_FLAGS.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/9@258313 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r257805, r257806, r257807:
gjb [Mon, 18 Nov 2013 17:03:11 +0000 (17:03 +0000)]
MFC r257805, r257806, r257807:

r257805:
  Add a 'mini-memstick.img' release target, which will use the
  'bootonly.iso' components to create a smaller memory stick image.

  This is useful for system recovery, where a full memstick.img image
  is not necessarily needed (or wanted).  In addition, it is possible to
  do bootonly-style installation, where the base.txz, kernel.txz, etc.
  are fetched from a remote source.

  Provide backwards-compatible target (mini-memstick), to keep in sync
  with the targets documented in release/Makefile.

r257806:
  Remove extra target from 'memstick' in r257805.

r257807:
  Update release(7) to include 'mini-memstick' target.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/9@258312 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r246087 (by glebius):
mav [Mon, 18 Nov 2013 13:20:20 +0000 (13:20 +0000)]
MFC r246087 (by glebius):
Fix typo in debug printf.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258302 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r240676 (by glebius):
mav [Mon, 18 Nov 2013 13:17:56 +0000 (13:17 +0000)]
MFC r240676 (by glebius):
If caller specifies UMA_ZONE_OFFPAGE explicitly, then do not waste memory
in an allocation for a slab.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258301 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r239710 (by glebius):
mav [Mon, 18 Nov 2013 13:12:45 +0000 (13:12 +0000)]
MFC r239710 (by glebius):
Fix function name in keg_cachespread_init() assert.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258300 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r254787:
mav [Sat, 16 Nov 2013 15:41:54 +0000 (15:41 +0000)]
MFC r254787:
Remove locking from taskqueue_member().  The list of threads is static
during the taskqueue life cycle, so there is no need to protect it,
taking quite congested lock several more times for each ZFS I/O.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258225 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r254378 (by trasz):
mav [Sat, 16 Nov 2013 15:34:11 +0000 (15:34 +0000)]
MFC r254378 (by trasz):
Turn comments about locking into actual lock assertions.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258223 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r249065 (by trasz):
mav [Sat, 16 Nov 2013 15:26:56 +0000 (15:26 +0000)]
MFC r249065 (by trasz):
Fix locking problem in ctl_maintenance_in() - one cannot use M_WAITOK or call
ctl_done() with mutex held.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258222 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r253644:
mav [Sat, 16 Nov 2013 10:49:02 +0000 (10:49 +0000)]
MFC r253644:
Add missing NULL check after malloc(M_NOWAIT).

git-svn-id: svn://svn.freebsd.org/base/stable/9@258219 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r250576 (by eadler):
mav [Sat, 16 Nov 2013 10:47:58 +0000 (10:47 +0000)]
MFC r250576 (by eadler):
Fix several typos

PR: kern/176054

git-svn-id: svn://svn.freebsd.org/base/stable/9@258218 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r254987 (by gavin):
mav [Sat, 16 Nov 2013 10:44:17 +0000 (10:44 +0000)]
MFC r254987 (by gavin):
Support the PCI-Express SSD in the new MacBook Air (model A1465)

git-svn-id: svn://svn.freebsd.org/base/stable/9@258217 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r253647:
mav [Sat, 16 Nov 2013 10:43:02 +0000 (10:43 +0000)]
MFC r253647:
Decode some bits defined in AHCI 1.3.1 Device Sleep Technical Proposal.
For now this is only conmetics to report HBA capabilities (Haswell?).

git-svn-id: svn://svn.freebsd.org/base/stable/9@258216 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r253475 (by jfv):
mav [Sat, 16 Nov 2013 10:41:49 +0000 (10:41 +0000)]
MFC r253475 (by jfv):
Add new Coleto Creek device support: SATA, SMBus, and Watchdog devices.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258215 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r244981 (by jfv)
mav [Sat, 16 Nov 2013 10:40:43 +0000 (10:40 +0000)]
MFC r244981 (by jfv)
Add Intel Lynx Point PCH SMBus Device IDs

git-svn-id: svn://svn.freebsd.org/base/stable/9@258214 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r249622:
mav [Sat, 16 Nov 2013 10:34:16 +0000 (10:34 +0000)]
MFC r249622:
Make siis(4) and mvs(4) send bus_get_dma_tag() requests to parent buses
passing real bus' child pointers instead of grandchilds.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258213 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 257006
asomers [Fri, 15 Nov 2013 20:23:52 +0000 (20:23 +0000)]
MFC 257006

sbin/geom/class/part/geom_part.c
        Always validate the return of find_geomcfg().  It could be NULL, for
        example when the geom is withering.

Approved by: ken(mentor)
Sponsored by: Spectra Logic Corporation

git-svn-id: svn://svn.freebsd.org/base/stable/9@258186 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 256274:
jhb [Fri, 15 Nov 2013 19:58:26 +0000 (19:58 +0000)]
MFC 256274:
Ignore attempts to set the nmbcluster sysctls to their current value
rather than failing with an error.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258183 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 256293:
jhb [Fri, 15 Nov 2013 15:08:53 +0000 (15:08 +0000)]
MFC 256293:
Sanitize the %eflags returned by BIOS routines.  Some BIOS routines enter
protected mode and may leave protected-mode-specific flags like PSL_NT set
when they return to real mode.  This can cause a fault when BTX re-enters
protected mode after the BIOS mode returns.

PR: amd64/182740

git-svn-id: svn://svn.freebsd.org/base/stable/9@258171 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r257856:
kib [Fri, 15 Nov 2013 07:26:50 +0000 (07:26 +0000)]
MFC r257856:
Add bits for the AMD features from CPUID function 0x80000001 ECX,
described in the rev. 3.0 of the Kabini BKDG, document 48751.pdf.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258161 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r257858:
kib [Fri, 15 Nov 2013 07:14:01 +0000 (07:14 +0000)]
MFC r257858:
Fix signal delivery for the iBCS2 binaries.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258160 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 255498:
jhb [Thu, 14 Nov 2013 21:31:58 +0000 (21:31 +0000)]
MFC 255498:
- Document the UQUAD sysctl variants.
- Clarify that exactly one of the "access" flags is required and
  list the optional flags in a separate list.  Prefer bundling
  CTLFLAG_TUN into the access flag by not documenting it as an
  optional flag to set.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258146 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 255497:
jhb [Thu, 14 Nov 2013 21:27:13 +0000 (21:27 +0000)]
MFC 255497:
Fix an off-by-one error when populating mincore(2) entries for
skipped entries.  lastvecindex references the last valid byte,
so the new bytes should come after it.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258144 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoRegen.
jhb [Wed, 13 Nov 2013 22:32:35 +0000 (22:32 +0000)]
Regen.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258107 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 255490,255491:
jhb [Wed, 13 Nov 2013 22:31:56 +0000 (22:31 +0000)]
MFC 255490,255491:
Fix the type of the idtype argument to wait6() in syscalls.master.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258106 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 255248:
jhb [Wed, 13 Nov 2013 18:33:14 +0000 (18:33 +0000)]
MFC 255248:
Use an unsigned long when indexing into mfchashtbl[] and mf6ctable[].  This
matches the types used when computing hash indices and the type of the
maximum size of mfchashtbl[].

PR: kern/181821

git-svn-id: svn://svn.freebsd.org/base/stable/9@258102 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 254699,255030:
jhb [Wed, 13 Nov 2013 17:08:37 +0000 (17:08 +0000)]
MFC 254699,255030:
Use tvtohz() to convert a socket buffer timeout to a tick value rather
than using a home-rolled version.  The home-rolled version could result
in shorter-than-requested sleeps.

PR: kern/181416

git-svn-id: svn://svn.freebsd.org/base/stable/9@258099 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 254576: Stop an ipoib interface before detaching it.
jhb [Tue, 12 Nov 2013 21:33:01 +0000 (21:33 +0000)]
MFC 254576: Stop an ipoib interface before detaching it.

PR: kern/181225

git-svn-id: svn://svn.freebsd.org/base/stable/9@258072 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r253917:
dim [Tue, 12 Nov 2013 18:43:35 +0000 (18:43 +0000)]
MFC r253917:

After r253839, which modifies ld's behaviour to not automatically pull
in needed libraries, change libc++.so into a linker script, so it can
automatically pull in libcxxrt.so.

[Note to stable/9 users: the above statement about ld's behaviour is not
(yet) applicable to the version of ld in 9.x, but this change will help
when building C++ programs with libc++, in combination with the ports
version of ld.]

git-svn-id: svn://svn.freebsd.org/base/stable/9@258060 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r257859:
dim [Mon, 11 Nov 2013 20:51:01 +0000 (20:51 +0000)]
MFC r257859:

Fix typo in include guard, found by clang 3.4.

git-svn-id: svn://svn.freebsd.org/base/stable/9@258010 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r257084:
ae [Mon, 11 Nov 2013 10:43:55 +0000 (10:43 +0000)]
MFC r257084:
  Initialize inc_fibnum for properly handling ICMP6_PACKET_TOO_BIG
  errors in multifib environment.

  PR: 183265

git-svn-id: svn://svn.freebsd.org/base/stable/9@257962 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r256689:
ae [Mon, 11 Nov 2013 10:09:52 +0000 (10:09 +0000)]
MFC r256689:
  Use the same actor key for media types of the same speed.

  PR: 176097

MFC r256832:
  Add a note that lacp_compose_key() should be updated, when new media
  types will be added.

  Submitted by: melifaro

git-svn-id: svn://svn.freebsd.org/base/stable/9@257959 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r256430:
gjb [Fri, 8 Nov 2013 03:02:42 +0000 (03:02 +0000)]
MFC r256430:
  Reduce disc1.iso image size by installing the userland with
  the WITHOUT_PROFILE=1 option set, trimming 56MB from the image.

Sponsored by:  The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/9@257837 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r257641:
gjb [Fri, 8 Nov 2013 03:00:40 +0000 (03:00 +0000)]
MFC r257641:
 When building the textproc/docproj port, the ports-mgmt/pkg port
 needs /var/run/ld-elf*.so.hints, which is not automatically created.

 Fix reldoc build by running the ldconfig(8) startup script in the
 chroot directory before starting the port build phase.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/9@257836 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoRegenerate MINIMALDOCPORTS after the doc/ toolchain update to
gjb [Fri, 8 Nov 2013 02:46:46 +0000 (02:46 +0000)]
Regenerate MINIMALDOCPORTS after the doc/ toolchain update to
docbook 5.0.

This is a direct commit to stable/9, as this file does not exist
in higher branches.

(Although, I do not think that this variable is actually used
now, since we check out the full doc/ tree from svn.)

Sponsored by:  The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/9@257835 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoRemove evaluation of OSVERSION < 500000.
gjb [Fri, 8 Nov 2013 02:31:37 +0000 (02:31 +0000)]
Remove evaluation of OSVERSION < 500000.
I hope to never have to build a release from a stable/5 machine.

While here, remove hard-coded lang/perl5.10, which is better
evaluated during compile-time (especially since lang/perl5.10 does
not exist in the ports/ tree).

This is a direct commit to stable/9, as this file does not exist in
higher branches.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/9@257834 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoFix comment.
gjb [Fri, 8 Nov 2013 02:27:10 +0000 (02:27 +0000)]
Fix comment.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/9@257833 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f