]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agoPlug memory leakage introduced in r215327.
yongari [Mon, 15 Nov 2010 22:05:08 +0000 (22:05 +0000)]
Plug memory leakage introduced in r215327.

Submitted by: jkim

13 years agoConvert drivers somehow missed in r200874 to multipass probing.
marius [Mon, 15 Nov 2010 21:58:10 +0000 (21:58 +0000)]
Convert drivers somehow missed in r200874 to multipass probing.

13 years agoReturn from mii_attach() after calling bus_generic_attach(9) on the device_t
marius [Mon, 15 Nov 2010 21:41:45 +0000 (21:41 +0000)]
Return from mii_attach() after calling bus_generic_attach(9) on the device_t
of the MAC driver in order to attach miibus(4) on the first pass instead of
falling through to also calling it on the device_t of miibus(4). The latter
code flow was intended to attach the PHY drivers the same way regardless of
whether it's the first or a repeated pass, modulo the bus_generic_attach()
call in miibus_attach() which shouldn't be there. However, it turned out
that these variants cause miibus(4) to be attached twice under certain
conditions when using MAC drivers as modules.

Submitted by: yongari
MFC after: 3 days

13 years agoDon't display option 2 (to toggle ACPI on or off) on x86 machines if the
jhb [Mon, 15 Nov 2010 19:55:19 +0000 (19:55 +0000)]
Don't display option 2 (to toggle ACPI on or off) on x86 machines if the
BIOS does not support ACPI.  The other options in the menu retain their
existing numbers, option 2 is simply blanked out (and '2' is ignored).

MFC after: 1 month

13 years agoWe no longer need the OUTPUT_FORMAT line, so fix the build by removing it.
imp [Mon, 15 Nov 2010 19:05:09 +0000 (19:05 +0000)]
We no longer need the OUTPUT_FORMAT line, so fix the build by removing it.

13 years agoSome style(9) fixes.
netchild [Mon, 15 Nov 2010 13:07:10 +0000 (13:07 +0000)]
Some style(9) fixes.

Submitted by: arundel
MFC after: 1 week

13 years ago- print out the PID and program name of the program trying to use an
netchild [Mon, 15 Nov 2010 13:03:35 +0000 (13:03 +0000)]
- print out the PID and program name of the program trying to use an
  unsupported futex operation
- for those futex operations which are known to be not supported,
  print out which futex operation it is
- shortcut the error return of the unsupported FUTEX_CLOCK_REALTIME in
  some cases:
    FUTEX_CLOCK_REALTIME can be used to tell linux to use
    CLOCK_REALTIME instead of CLOCK_MONOTONIC. FUTEX_CLOCK_REALTIME
    however must only be set, if either FUTEX_WAIT_BITSET or
    FUTEX_WAIT_REQUEUE_PI are set too. If that's not the case
    we can die with ENOSYS right at the beginning.

Submitted by: arundel
Reviewed by: rdivacky (earlier iteration of the patch)
MFC after: 1 week

13 years agoOnly unlock process if a thread is found.
davidxu [Mon, 15 Nov 2010 07:33:54 +0000 (07:33 +0000)]
Only unlock process if a thread is found.

13 years agoRemove unused struct rue_type
kevlo [Mon, 15 Nov 2010 06:04:25 +0000 (06:04 +0000)]
Remove unused struct rue_type

13 years agoRemove references to MAKEDEV(8)
dougb [Mon, 15 Nov 2010 05:25:51 +0000 (05:25 +0000)]
Remove references to MAKEDEV(8)

13 years agoMove timeout.tv_sec initialization outside the loop - sigtimedwait(2) won't
pjd [Mon, 15 Nov 2010 03:07:42 +0000 (03:07 +0000)]
Move timeout.tv_sec initialization outside the loop - sigtimedwait(2) won't
modify it.

Submitted by: Mikolaj Golub <to.my.trociny@gmail.com>
MFC after: 3 days

13 years ago1. Exit when we cannot create incoming connection.
pjd [Mon, 15 Nov 2010 03:05:33 +0000 (03:05 +0000)]
1. Exit when we cannot create incoming connection.
2. Improve logging to inform which connection can't be created.

Submitted by: [1] Mikolaj Golub <to.my.trociny@gmail.com>
MFC after: 3 days

13 years agoAdd the Sierra MC8700.
thompsa [Mon, 15 Nov 2010 02:27:01 +0000 (02:27 +0000)]
Add the Sierra MC8700.

13 years agoAdd flow control for all re(4) controllers. re(4) controllers do
yongari [Mon, 15 Nov 2010 00:06:19 +0000 (00:06 +0000)]
Add flow control for all re(4) controllers. re(4) controllers do
not provide any MAC configuration interface for resolved flow
control parameters. There is even no register that configures water
mark which will control generation of pause frames.
However enabling flow control surely enhanced performance a lot.

13 years agoAdd flow control for 3C905B and newer controllers. Note, these
yongari [Sun, 14 Nov 2010 23:53:13 +0000 (23:53 +0000)]
Add flow control for 3C905B and newer controllers. Note, these
controllers support RX pause only.

Reviewed by: marius

13 years agoP5N32-SLI PREMIUM from ASUSTeK is known to have MSI/MSI-X issue
yongari [Sun, 14 Nov 2010 23:37:43 +0000 (23:37 +0000)]
P5N32-SLI PREMIUM from ASUSTeK is known to have MSI/MSI-X issue
such that nfe(4) does not work with MSI-X. When MSI-X support was
introduced, I remember MCP55 controller worked without problems so
the issue could be either PCI bridge or BIOS issue. But I also
noticed snd_hda(4) disabled MSI on all MCP55 chipset so I'm still
not sure this is generic issue of MCP55 chipset. If this was PCI
bridge issue we would have added it to a system wide black-list
table but it's not clear to me at this moment whether it was caused
by either broken BIOS or silicon bug of MCP55 chipset.

To workaround the issue, maintain a MSI/MSI-X black-list table in
driver and lookup base board manufacturer and product name from the
table before attempting to use MSI-X. If driver find an matching
entry, nfe(4) will not use MSI/MSI-X and fall back on traditional
INTx mode. This approach should be the last resort since it relies
on smbios and if another instance of MSI/MSI-X breakage is reported
with different maker/product, we may have to get the PCI bridge
black-listed instead of adding an new entry.

PR: kern/152150

13 years agoAdd a special INIT product ID used by some models of the HUAWEI
dd [Sun, 14 Nov 2010 23:05:57 +0000 (23:05 +0000)]
Add a special INIT product ID used by some models of the HUAWEI
K3765 datacard. After ejecting this device, it reappears using
the normal K3765 ID. It does not switch automatically

Reviewed by: n_hibma
Obtained from: OpenBSD
MFC after: 2 weeks

13 years agoUse the correct variable for determining the verbosity level in mpt_lprtc().
marius [Sun, 14 Nov 2010 22:34:33 +0000 (22:34 +0000)]
Use the correct variable for determining the verbosity level in mpt_lprtc().
While at it, fix the whitespace of that macro.

PR: 149502
Submitted by: Andrew Boyer
MFC after: 1 week

13 years agoDon't use -fno-exceptions or -fno-rtti for .c files, when building
dim [Sun, 14 Nov 2010 22:17:12 +0000 (22:17 +0000)]
Don't use -fno-exceptions or -fno-rtti for .c files, when building
llvm/clang.

13 years agoAdd optional files controlled by WITH_GPIO knob
gonzo [Sun, 14 Nov 2010 22:14:36 +0000 (22:14 +0000)]
Add optional files controlled by WITH_GPIO knob

Submitted by: Alexander Best <arundel@freebsd.org>

13 years agoRegenerate src.conf manpage after adding WITHOUT_GPIO build knob
gonzo [Sun, 14 Nov 2010 22:08:56 +0000 (22:08 +0000)]
Regenerate src.conf manpage after adding WITHOUT_GPIO build knob

13 years agoDo not use __FreeBSD_version prefix for the special osrel version.
kib [Sun, 14 Nov 2010 21:59:11 +0000 (21:59 +0000)]
Do not use __FreeBSD_version prefix for the special osrel version.
The ports/Mk/bsd.port.mk uses sys/param.h to fetch osrel, and cannot
grok several constants with the prefix.

Reported and tested by:     swell.k gmail com
MFC after:   1 week

13 years agoProvide a mutex around the read/modify/write of the IXP425_GPIO_*
thompsa [Sun, 14 Nov 2010 20:41:22 +0000 (20:41 +0000)]
Provide a mutex around the read/modify/write of the IXP425_GPIO_*
registers. Giant was used in some places, but not all.

13 years agoInstead of unconditionally emitting .globl's for the __start_set_xxx and
dim [Sun, 14 Nov 2010 20:40:55 +0000 (20:40 +0000)]
Instead of unconditionally emitting .globl's for the __start_set_xxx and
__stop_set_xxx symbols, only emit them when the set_vnet or set_pcpu
sections are actually defined.

13 years agoApply the STATIC_VNET_DEFINE and STATIC_DPCPU_DEFINE macros throughout
dim [Sun, 14 Nov 2010 20:38:11 +0000 (20:38 +0000)]
Apply the STATIC_VNET_DEFINE and STATIC_DPCPU_DEFINE macros throughout
the tree.

13 years agoAdd macros to define static instances of VNET_DEFINE and DPCPU_DEFINE.
dim [Sun, 14 Nov 2010 20:23:02 +0000 (20:23 +0000)]
Add macros to define static instances of VNET_DEFINE and DPCPU_DEFINE.

13 years agoSimilar to sys/net/vnet.h, define the linker set name for sys/sys/pcpu.h
dim [Sun, 14 Nov 2010 20:14:25 +0000 (20:14 +0000)]
Similar to sys/net/vnet.h, define the linker set name for sys/sys/pcpu.h
as a macro, and use it instead of literal strings.

13 years agoipv6_enable has been obsoleted in favour of ipv6_activate_all_interfaces.
brucec [Sun, 14 Nov 2010 19:57:56 +0000 (19:57 +0000)]
ipv6_enable has been obsoleted in favour of ipv6_activate_all_interfaces.

13 years agolib32 is installed on powerpc64 too.
brucec [Sun, 14 Nov 2010 19:37:07 +0000 (19:37 +0000)]
lib32 is installed on powerpc64 too.

13 years agoAlways set errno to a sane value when pututxline(3) fails.
ed [Sun, 14 Nov 2010 18:42:39 +0000 (18:42 +0000)]
Always set errno to a sane value when pututxline(3) fails.

For example, it will now return ESRCH when trying to replace a
nonexistent entry with DEAD_PROCESS.

13 years agoUse symbolic names instead of hardcoding values for magic p_osrel constants.
kib [Sun, 14 Nov 2010 18:24:12 +0000 (18:24 +0000)]
Use symbolic names instead of hardcoding values for magic p_osrel constants.

MFC after:   1 week

13 years agoUpdate comment to reflect the removal of libc_r from the tree.
emaste [Sun, 14 Nov 2010 18:05:03 +0000 (18:05 +0000)]
Update comment to reflect the removal of libc_r from the tree.

Submitted by: Alexander Best arundel@

13 years agoImplement a (soft) stack guard page for auto-growing stack mappings.
kib [Sun, 14 Nov 2010 17:53:52 +0000 (17:53 +0000)]
Implement a (soft) stack guard page for auto-growing stack mappings.
The unmapped page separates the tip of the stack and possible adjanced
segment, making some uses of stack overflow harder.  The stack growing
code refuses to expand the segment to the last page of the reseved
region when sysctl security.bsd.stack_guard_page is set to 1. The
default value for sysctl and accompanying tunable is 0.

Please note that mmap(MAP_FIXED) still can place a mapping right up to
the stack, making continuous region.

Reviewed by: alc
MFC after: 1 week

13 years agolibatm_p.a, libkeycap_p.a and libmytinfo_p.a are already in ObsoleteFiles.inc.
brucec [Sun, 14 Nov 2010 17:24:15 +0000 (17:24 +0000)]
libatm_p.a, libkeycap_p.a and libmytinfo_p.a are already in ObsoleteFiles.inc.
liblwres.so.10 has been replaced by liblwres.so.50.

Reported by: arundel

13 years agoTake out special code for disable CRC computations on
tuexen [Sun, 14 Nov 2010 16:44:18 +0000 (16:44 +0000)]
Take out special code for disable CRC computations on
the loopback interface for IPv6. It will be handled
by the loopback interface.

13 years agoFix some more style(9) issues.
brucec [Sun, 14 Nov 2010 16:10:15 +0000 (16:10 +0000)]
Fix some more style(9) issues.

13 years agosh: Add binary buffered output for use by the printf builtin.
jilles [Sun, 14 Nov 2010 15:31:59 +0000 (15:31 +0000)]
sh: Add binary buffered output for use by the printf builtin.

13 years agoMove the limiting of the PHY to 10/100 modes of operation due to limitations
marius [Sun, 14 Nov 2010 15:15:22 +0000 (15:15 +0000)]
Move the limiting of the PHY to 10/100 modes of operation due to limitations
of certain MAC models from brgphy(4) to bge(4) where it belongs. While at it,
update the list of models having that restriction to what OpenBSD uses, which
in turn seems to have obtained that information from the Linux tg3 driver.

13 years agoSimplify sctp_delayed_cksum() a bit.
tuexen [Sun, 14 Nov 2010 14:37:20 +0000 (14:37 +0000)]
Simplify sctp_delayed_cksum() a bit.

MFC after: 3 days.

13 years agoRemove redundant cases and a style(9) bug.
marius [Sun, 14 Nov 2010 14:25:04 +0000 (14:25 +0000)]
Remove redundant cases and a style(9) bug.

13 years agoAdd support for asterisk characters when filling in the GELI password
ed [Sun, 14 Nov 2010 14:12:43 +0000 (14:12 +0000)]
Add support for asterisk characters when filling in the GELI password
during boot.

Change the last argument of gets() to indicate a visibility flag and add
definitions for the numerical constants. Except for the value 2, gets()
will behave exactly the same, so existing consumers shouldn't break. We
only use it in two places, though.

Submitted by: lme (older version)

13 years ago- Change these drivers to take advantage and use the generic IEEE 802.3
marius [Sun, 14 Nov 2010 13:31:01 +0000 (13:31 +0000)]
- Change these drivers to take advantage and use the generic IEEE 802.3
  annex 31B full duplex flow control as well as the IFM_1000_T master
  support committed in r215297. For atphy(4) and jmphy(4) this includes
  changing these PHY drivers to no longer unconditionally advertise
  support for flow control but only if the selected media has IFM_FLOW
  set (or MIIF_FORCEPAUSE is set).
- Rename {atphy,jmphy}_auto() to {atphy,jmphy}_setmedia() as these handle
  other media types as well.

Reviewed by: yongari (plus additional testing)
Obtained from: NetBSD (partially), OpenBSD (partially)
MFC after: 2 weeks

13 years agoo Flesh out the generic IEEE 802.3 annex 31B full duplex flow control
marius [Sun, 14 Nov 2010 13:26:10 +0000 (13:26 +0000)]
o Flesh out the generic IEEE 802.3 annex 31B full duplex flow control
  support in mii(4):
  - Merge generic flow control advertisement (which can be enabled by
    passing by MIIF_DOPAUSE to mii_attach(9)) and parsing support from
    NetBSD into mii_physubr.c and ukphy_subr.c. Unlike as in NetBSD,
    IFM_FLOW isn't implemented as a global option via the "don't care
    mask" but instead as a media specific option this. This has the
    following advantages:
    o allows flow control advertisement with autonegotiation to be
      turned on and off via ifconfig(8) with the default typically
      being off (though MIIF_FORCEPAUSE has been added causing flow
      control to be always advertised, allowing to easily MFC this
      changes for drivers that previously used home-grown support for
      flow control that behaved that way without breaking POLA)
    o allows to deal with PHY drivers where flow control advertisement
      with manual selection doesn't work or at least isn't implemented,
      like it's the case with brgphy(4), e1000phy(4) and ip1000phy(4),
      by setting MIIF_NOMANPAUSE
    o the available combinations of media options are readily available
      from the `ifconfig -m` output
  - Add IFM_FLOW to IFM_SHARED_OPTION_DESCRIPTIONS and IFM_ETH_RXPAUSE
    and IFM_ETH_TXPAUSE to IFM_SUBTYPE_ETHERNET_OPTION_DESCRIPTIONS so
    these are understood by ifconfig(8).
o Make the master/slave support in mii(4) actually usable:
  - Change IFM_ETH_MASTER from being implemented as a global option via
    the "don't care mask" to a media specific one as it actually is only
    applicable to IFM_1000_T to date.
  - Let mii_phy_setmedia() set GTCR_MAN_MS in IFM_1000_T slave mode to
    actually configure manually selected slave mode (like we also do in
    the PHY specific implementations).
  - Add IFM_ETH_MASTER to IFM_SUBTYPE_ETHERNET_OPTION_DESCRIPTIONS so it
    is understood by ifconfig(8).
o Switch bge(4), bce(4), msk(4), nfe(4) and stge(4) along with brgphy(4),
  e1000phy(4) and ip1000phy(4) to use the generic flow control support
  instead of home-grown solutions via IFM_FLAGs. This includes changing
  these PHY drivers and smcphy(4) to no longer unconditionally advertise
  support for flow control but only if the selected media has IFM_FLOW
  set (or MIIF_FORCEPAUSE is set) and implemented for these media variants,
  i.e. typically only for copper.
o Switch brgphy(4), ciphy(4), e1000phy(4) and ip1000phy(4) to report and
  set IFM_1000_T master mode via IFM_ETH_MASTER instead of via IFF_LINK0
  and some IFM_FLAGn.
o Switch brgphy(4) to add at least the the supported copper media based on
  the contents of the BMSR via mii_phy_add_media() instead of hardcoding
  them. The latter approach seems to have developed historically, besides
  causing unnecessary code duplication it was also undesirable because
  brgphy_mii_phy_auto() already based the capability advertisement on the
  contents of the BMSR though.
o Let brgphy(4) set IFM_1000_T master mode on all supported PHY and not
  just BCM5701. Apparently this was a misinterpretation of a workaround
  in the Linux tg3 driver; BCM5701 seem to require RGPHY_1000CTL_MSE and
  BRGPHY_1000CTL_MSC to be set when configuring autonegotiation but
  this doesn't mean we can't set these as well on other PHYs for manual
  media selection.
o Let ukphy_status() report IFM_1000_T master mode via IFM_ETH_MASTER so
  IFM_1000_T master mode support now is generally available with all PHY
  drivers.
o Don't let e1000phy(4) set master/slave bits for IFM_1000_SX as it's
  not applicable there.

Reviewed by: yongari (plus additional testing)
Obtained from: NetBSD (partially), OpenBSD (partially)
MFC after: 2 weeks

13 years agoFix use of CD_VERSION=any in cdrom.inf by calling strcmp instead of
brucec [Sun, 14 Nov 2010 13:25:01 +0000 (13:25 +0000)]
Fix use of CD_VERSION=any in cdrom.inf by calling strcmp instead of
variable_cmp.

PR: bin/142960
Submitted by: G. Paul Ziemba <p-fbsd-bugs at ziemba.us>
MFC after: 1 week

13 years agoLet cryptosoft(4) add its pseudo-device with a specific unit number and its
marius [Sun, 14 Nov 2010 13:09:32 +0000 (13:09 +0000)]
Let cryptosoft(4) add its pseudo-device with a specific unit number and its
probe method return BUS_PROBE_NOWILDCARD so it doesn't get attached to real
devices hanging off of nexus(4) with no specific devclass set. Actually, the
more desirable fix for this would be to get rid of the newbus interface of
cryptosoft(4) altogether but apparently crypto(9) was written with support
for cryptographic hardware in mind so that approach would require some KPI
breaking changes which don't seem worth it.

MFC after: 1 week

13 years agoAdd the cddl/ directory.
joel [Sun, 14 Nov 2010 11:32:56 +0000 (11:32 +0000)]
Add the cddl/ directory.

13 years agoAdd missing '/'.
nyan [Sun, 14 Nov 2010 11:09:16 +0000 (11:09 +0000)]
Add missing '/'.

13 years agoRemove support for cpioVerbose=medium because bsdcpio doesn't support the
brucec [Sun, 14 Nov 2010 10:22:09 +0000 (10:22 +0000)]
Remove support for cpioVerbose=medium because bsdcpio doesn't support the
"-V" flag.

PR: bin/151821
Submitted by: Devin Teske <dteske at vicor.com>
MFC after: 1 week

13 years agontpdate(8) hosts are now configured in rc.conf via ntpdate_hosts.
brucec [Sun, 14 Nov 2010 10:04:48 +0000 (10:04 +0000)]
ntpdate(8) hosts are now configured in rc.conf via ntpdate_hosts.

PR: bin/148350
Submitted by: Joel FAEDI <joel.faedi at gmail.com>
MFC after: 1 week

13 years agoThe ni_rctls checks are used to verify that a ratectl algo has set up
bschmidt [Sun, 14 Nov 2010 09:59:52 +0000 (09:59 +0000)]
The ni_rctls checks are used to verify that a ratectl algo has set up
its internal data. This has been used to bypass missing calls in drivers
which do not use the ratectl framework correctly. Issue is, not all algos
use that variable, or even have internal data, therefore valid calls are
not done. Fix this by removing the checks, all driver issues should be
resolved.

MFC after: 1 week

13 years agoFix double-free in OpenSSL's SSL ECDH code.
simon [Sun, 14 Nov 2010 09:33:47 +0000 (09:33 +0000)]
Fix double-free in OpenSSL's SSL ECDH code.

It has yet to be determined if this warrants a FreeBSD Security
Advisory, but we might as well get it fixed in the normal branches.

Obtained from: OpenSSL CVS
Security: CVE-2010-2939
X-MFC after: Not long...

13 years ago"Web" should not be all upper-case because it's not an acronym.
brucec [Sun, 14 Nov 2010 09:14:17 +0000 (09:14 +0000)]
"Web" should not be all upper-case because it's not an acronym.

PR: bin/130366
Submitted by: Royce Williams <royce at alaska.net>
MFC after: 1 week

13 years agoConnect to ftp2.tr.freebsd.org when the Turkey #2 mirror is selected.
brucec [Sun, 14 Nov 2010 09:03:42 +0000 (09:03 +0000)]
Connect to ftp2.tr.freebsd.org when the Turkey #2 mirror is selected.

PR: bin/128587
Submitted by: Mehmet Kose <mehmet.kose at gmail.com>
MFC after: 1 week

13 years agoFix the jump location.
brucec [Sun, 14 Nov 2010 08:31:02 +0000 (08:31 +0000)]
Fix the jump location.

13 years agoWhen rebooting the machine jump to 0xf000:fff0 instead of 0xffff:0x0.
brucec [Sun, 14 Nov 2010 08:25:27 +0000 (08:25 +0000)]
When rebooting the machine jump to 0xf000:fff0 instead of 0xffff:0x0.
This is the same change that was made in rev 1.33 of boot/i386/btx/btx/btx.S

PR: i386/91871
Submitted by: Bjorn Konig <bkoenig at cs.tu-berlin.de>
MFC after: 1 week

13 years agoFix style(9) issues from r215281 and r215282.
brucec [Sun, 14 Nov 2010 08:06:29 +0000 (08:06 +0000)]
Fix style(9) issues from r215281 and r215282.

MFC after: 1 week

13 years agoAdd descriptions to some more sysctls.
brucec [Sun, 14 Nov 2010 07:38:42 +0000 (07:38 +0000)]
Add descriptions to some more sysctls.

PR: kern/148510
MFC after: 1 week

13 years agoAdd some descriptions to sys/kern sysctls.
brucec [Sun, 14 Nov 2010 06:09:50 +0000 (06:09 +0000)]
Add some descriptions to sys/kern sysctls.

PR: kern/148710
Tested by: Chip Camden <sterling at camdensoftware.com>
MFC after: 1 week

13 years agoWorkaround build for PAE case for now - revert the PHYS
delphij [Sun, 14 Nov 2010 05:05:41 +0000 (05:05 +0000)]
Workaround build for PAE case for now - revert the PHYS
case to previous panic behavior.

I have a real fix that changes the sg dma tag allocation
to be limited to the under 4GB address space but would
prefer to have review before committing.

13 years agoadd / to the translation of TARGET_ARCH to TARGET
imp [Sun, 14 Nov 2010 05:01:40 +0000 (05:01 +0000)]
add / to the translation of TARGET_ARCH to TARGET

13 years agoWe need to add powerpc64->powerpc translations (I knew I hated copying
imp [Sun, 14 Nov 2010 01:52:19 +0000 (01:52 +0000)]
We need to add powerpc64->powerpc translations (I knew I hated copying
this code in the first place).

Also MACHINE_ARCH powerpc is 32-bit, not MACHINE_CPUARCH == powerpc.

Submitted by: nathanw

13 years agoThese two cases should be different...
imp [Sun, 14 Nov 2010 01:50:40 +0000 (01:50 +0000)]
These two cases should be different...

Submitted by: nathanw@

13 years agoThis case is actually powerpc specific, and doesn't apply to powerpc64.
imp [Sun, 14 Nov 2010 01:37:08 +0000 (01:37 +0000)]
This case is actually powerpc specific, and doesn't apply to powerpc64.

Submitted by: nathanw@

13 years agoWhen setting a media with no sub-type specified also reset the type
marius [Sat, 13 Nov 2010 22:40:37 +0000 (22:40 +0000)]
When setting a media with no sub-type specified also reset the type
specific options along with the global ones so these options don't
stick when f.e. switching to IFM_AUTO.

MFC after: 2 weeks

13 years agoAdd mips back to universe
imp [Sat, 13 Nov 2010 22:38:33 +0000 (22:38 +0000)]
Add mips back to universe

13 years agoRemove the 'machine mips' from DEFAULTS. Put the proper 'machine mips
imp [Sat, 13 Nov 2010 22:34:12 +0000 (22:34 +0000)]
Remove the 'machine mips' from DEFAULTS.  Put the proper 'machine mips
mipsel' or 'machine mips mipseb' into the config file (with a few 64's
tossed in for good measure).  This will let us build the proper
kernels with different worlds as part of make universe.

13 years agoRemove libc_r threading library. It has been disconnected from the build
emaste [Sat, 13 Nov 2010 22:22:18 +0000 (22:22 +0000)]
Remove libc_r threading library.  It has been disconnected from the build
for four years (since r162846).

Submitted by: Alexander Best arundel@

13 years agosh: Update the suspend example for the change of the job control flag
jilles [Sat, 13 Nov 2010 22:20:46 +0000 (22:20 +0000)]
sh: Update the suspend example for the change of the job control flag
from -j to -m, many years ago.

Due to r215266, this function now actually works.

13 years agosh: Do the additional actions if 'local -' restore changes -i/-m/-E/-V.
jilles [Sat, 13 Nov 2010 22:10:26 +0000 (22:10 +0000)]
sh: Do the additional actions if 'local -' restore changes -i/-m/-E/-V.

Example:
  f() { local -; set +m; }; f
caused failure to execute external programs because the job control tty fd
was not opened.

13 years agoAdd ftp4.se.freebsd.org to the set of mirrors.
brucec [Sat, 13 Nov 2010 21:48:32 +0000 (21:48 +0000)]
Add ftp4.se.freebsd.org to the set of mirrors.

PR: bin/150552
Submitted by: Niclas Zeising <zeising at lysator.liu.se>
MFC after: 3 days

13 years agoDisable VFS_HOLD placed on mnt_vnodecovered during the mount of a snapshot
mm [Sat, 13 Nov 2010 21:09:18 +0000 (21:09 +0000)]
Disable VFS_HOLD placed on mnt_vnodecovered during the mount of a snapshot
and VFS_RELE on a non-existing hold on snapshot parent's z_vfs.

This disables the changes from OpenSolaris onnv-revision 9234:bffdc4fc05c4
(bug IDs: 67921396794830) - not applicable to FreeBSD.

This fixes the process hang if umounting a manually mounted snapshot.

Reported by: Alexander Zagrebin <alexz@visp.ru>
Approved by: delphij (mentor)
MFC after: 1 week

13 years agoWhen printing media with more than one media option set aggregate these
marius [Sat, 13 Nov 2010 21:03:19 +0000 (21:03 +0000)]
When printing media with more than one media option set aggregate these
in a comma delimited list instead of repeating "mediaopt" for each one.
This matches how the options of the active media are printed with
print_media_word() and brings us in line what NetBSD does.

MFC after: 2 weeks

13 years agoAdd the switch config for the XS Stick.
n_hibma [Sat, 13 Nov 2010 20:45:16 +0000 (20:45 +0000)]
Add the switch config for the XS Stick.

It speaks AT commands on 2 out of 3 serial ports, but it has not been
verified to work at all speaking PPP yet.

13 years agoThe fixes for mips/mips arm/arm compat hacks broke if TARGET or
imp [Sat, 13 Nov 2010 20:41:47 +0000 (20:41 +0000)]
The fixes for mips/mips arm/arm compat hacks broke if TARGET or
TARGET_ARCH wasn't defined.  Fix it for that case.

Submitted by: Garrett Cooper

13 years agoDefault to little endian output when building for little endian. This
imp [Sat, 13 Nov 2010 20:30:24 +0000 (20:30 +0000)]
Default to little endian output when building for little endian.  This
got lost as a result of a mismerge a few months back and I didn't
notice until I collapsed tbemd into -head.

Submitted by: similar patch by kan@

13 years agoCorrect mips/arm elimination of sym
imp [Sat, 13 Nov 2010 20:28:06 +0000 (20:28 +0000)]
Correct mips/arm elimination of sym

13 years agoFix compiler warnings.
hselasky [Sat, 13 Nov 2010 19:26:45 +0000 (19:26 +0000)]
Fix compiler warnings.

Submitted by: Alexander Best (arundel)
Approved by: thompsa (mentor)

13 years agoFix LibUSB v1.0 compliancy.
hselasky [Sat, 13 Nov 2010 19:25:11 +0000 (19:25 +0000)]
Fix LibUSB v1.0 compliancy.

1) We need to allow the USB callback to free the USB transfer itself.
2) The USB transfer buffer should only be automatically freed when
freeing the USB transfer.

Fixed by: hselasky
Submitted by: Gustau Perez i Querol
Approved by: thompsa (mentor)

13 years agoAdd legacy names for mips:mips and arm with TARGET_BIG_ENDIAN, for the moment.
imp [Sat, 13 Nov 2010 18:39:24 +0000 (18:39 +0000)]
Add legacy names for mips:mips and arm with TARGET_BIG_ENDIAN, for the moment.

13 years agoLet the linker pick the right output format automatically
imp [Sat, 13 Nov 2010 18:38:35 +0000 (18:38 +0000)]
Let the linker pick the right output format automatically

13 years agoRemove references to the long-gone ramdisk
dougb [Sat, 13 Nov 2010 18:10:44 +0000 (18:10 +0000)]
Remove references to the long-gone ramdisk

Submitted by: Garrett Cooper <yanegomi@gmail.com>

13 years agoAdd for existing protocol entries the missing SCTP port allocations
tuexen [Sat, 13 Nov 2010 17:52:04 +0000 (17:52 +0000)]
Add for existing protocol entries the missing SCTP port allocations
and add protocol entries for protocols which have SCTP port allocations.
These entries are according to
http://www.iana.org/assignments/port-numbers
as of today. Also add SCTP port allocation entires for the
echo, daytime, and chargen service.
Discussed with rwatson@

MFC after: 3 days.

13 years agoIn printfile(), exit the process instead of only printing the warning.
kib [Sat, 13 Nov 2010 16:49:07 +0000 (16:49 +0000)]
In printfile(), exit the process instead of only printing the warning.
This fixes verbose mode when either -i specified non-existent kldfile
id, or the file was unloaded between two kldnext(2) calls.

While there, fix printfile() definition to be style(9)-compliant.

Submitted by: arundel
MFC after: 1 week

13 years agoUse "cylinder" instead of "cyl" for consistency.
joel [Sat, 13 Nov 2010 15:28:44 +0000 (15:28 +0000)]
Use "cylinder" instead of "cyl" for consistency.

Reviewed by: phk

13 years agoNow there is no functional difference from i386 version.
nyan [Sat, 13 Nov 2010 15:24:56 +0000 (15:24 +0000)]
Now there is no functional difference from i386 version.
So use i386 version.

13 years agoRemove unused includes.
nyan [Sat, 13 Nov 2010 15:23:20 +0000 (15:23 +0000)]
Remove unused includes.

13 years agoSome device drivers calculate various timing related things based on
bschmidt [Sat, 13 Nov 2010 14:59:54 +0000 (14:59 +0000)]
Some device drivers calculate various timing related things based on
the currently selected rate. The calculations of course need a valid
rate. To make that possible before any call to node_rate() is done,
initialize ni_txrate on none_node_init() calls.

MFC after: 1 week

13 years agoFix a locking issue reported by brucec@ affecting
tuexen [Sat, 13 Nov 2010 12:52:44 +0000 (12:52 +0000)]
Fix a locking issue reported by brucec@ affecting
1-to-1 style sockets which have not yet been
accepted.

MFC after: 3 days.

13 years agoRemove unused variables.
trasz [Sat, 13 Nov 2010 11:54:04 +0000 (11:54 +0000)]
Remove unused variables.

13 years agoMemory stats are reported in bytes, not pages.
brucec [Sat, 13 Nov 2010 11:43:20 +0000 (11:43 +0000)]
Memory stats are reported in bytes, not pages.

PR: docs/151283
Submitted by: Bas Smeelen <b.smeelen at ose.nl>
MFC after: 3 days

13 years agoUse 'z' modifier for size_t printing.
kib [Sat, 13 Nov 2010 11:11:51 +0000 (11:11 +0000)]
Use 'z' modifier for size_t printing.

13 years agoFix bug in jn(3) and jnf(3) that led to -inf results
uqs [Sat, 13 Nov 2010 10:54:10 +0000 (10:54 +0000)]
Fix bug in jn(3) and jnf(3) that led to -inf results

Explanation by Steve:
jn[f](n,x) for certain ranges of x uses downward recursion to compute
the value of the function.  The recursion sequence that is generated is
proportional to the actual desired value, so a normalization step is
taken.  This normalization is j0[f](x) divided by the zeroth sequence
member.  As Bruce notes, near the zeros of j0[f](x) the computed value
can have giga-ULP inaccuracy. I found for the 1st zero of j0f(x) only
the leading decimal digit is correct.  The solution to the issue is
fairly straight forward.  The zeros of j0(x) and j1(x) never coincide,
so as j0(x) approaches a zero, the normalization constant switches to
j1[f](x) divided by the 2nd sequence member.  The expectation is that
j1[f](x) is a more accurately computed value.

PR: bin/144306
Submitted by: Steven G. Kargl <kargl@troutmask.apl.washington.edu>
Reviewed by: bde
MFC after: 7 days

13 years agoSync with OpenBSD, primarily better signal and terminal handling.
delphij [Sat, 13 Nov 2010 10:38:06 +0000 (10:38 +0000)]
Sync with OpenBSD, primarily better signal and terminal handling.

Obtained from: OpenBSD
MFC after: 2 weeks

13 years agoSet FD_CLOEXEC for the output file only when the file has been specified
jh [Sat, 13 Nov 2010 09:28:49 +0000 (09:28 +0000)]
Set FD_CLOEXEC for the output file only when the file has been specified
with the -o option. Setting the flag for stderr (the default) could
cause the traced process to redirect stderr to a random file.

PR: bin/152151
Submitted by: ashish
MFC after: 5 days

13 years agoUpdate to vendor release 1.20.00.19.
delphij [Sat, 13 Nov 2010 08:58:36 +0000 (08:58 +0000)]
Update to vendor release 1.20.00.19.

Bug fixes:
  * Fixed "inquiry data fails comparion at DV1 step"
  * Fixed bad range input in bus_alloc_resource for ADAPTER_TYPE_B
  * Fixed arcmsr driver prevent arcsas support for Areca SAS HBA ARC13x0

Many thanks to Areca for continuing to support FreeBSD.

This commit is intended for MFC before 8.2-RELEASE.

Submitted by:   Ching-Lung Huang <ching2048 areca com tw>

13 years agoBreak out the rules which generate crunchgen'ed binaries into a separate
adrian [Sat, 13 Nov 2010 03:11:27 +0000 (03:11 +0000)]
Break out the rules which generate crunchgen'ed binaries into a separate
.mk file so they can be reused.

Introduce a new option, CRUNCH_BUILDTOOLS, which lists the binaries that
require tools built in the local architecture. sh and csh both require this.
It was previously hardcoded in rescue/rescue/Makefile .

Introduce a new option, CRUNCH_SHLIBS, which lists the shared libraries
to link against. These override the static libraries listed in CRUNCH_LIBS.
Some build environments may wish to use a handful of shared libraries
(eg libc.so) so other small, dynamic binaries can be run in the environment.

Remove the now-shared code from rescue/rescue/Makefile and introduce the
CRUNCH_BUILDTOOLS option for the above shells.

13 years agoWe still support PLIP devices, so mention them in addition to ethernet.
brucec [Sat, 13 Nov 2010 01:21:55 +0000 (01:21 +0000)]
We still support PLIP devices, so mention them in addition to ethernet.

13 years agoAdd an (off by default) check for negative permissions (where the
brooks [Sat, 13 Nov 2010 00:40:43 +0000 (00:40 +0000)]
Add an (off by default) check for negative permissions (where the
group on a object has less permissions that everyone).  These
permissions will not work reliably over NFS if you have more than
14 supplemental groups and are usually not what you mean.

MFC after: 1 week

13 years agoSimilar to r212647, remove the workaround in sys/net/vnet.h for an ld
dim [Fri, 12 Nov 2010 22:59:50 +0000 (22:59 +0000)]
Similar to r212647, remove the workaround in sys/net/vnet.h for an ld
bug (incorrect placement of __start_SECNAME in some cases) that was
fixed in r210245.

There is already an UPDATING entry about needing a recent ld.

MFC after: 1 month

13 years agoecho(1): Clarify portability and mention literal "--" handling.
jilles [Fri, 12 Nov 2010 22:43:40 +0000 (22:43 +0000)]
echo(1): Clarify portability and mention literal "--" handling.

MFC after: 1 week