]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years ago- Avoid calling the copy constructor when it is not necessary.
lulf [Thu, 29 Jul 2010 16:06:40 +0000 (16:06 +0000)]
- Avoid calling the copy constructor when it is not necessary.

13 years ago- Remove unused instance of string.
lulf [Thu, 29 Jul 2010 16:01:10 +0000 (16:01 +0000)]
- Remove unused instance of string.

13 years agoUpdate MIPS _stdint.h for 64 bit. Initial 64 bit changes for profile.h.
jchandra [Thu, 29 Jul 2010 14:04:29 +0000 (14:04 +0000)]
Update MIPS _stdint.h for 64 bit. Initial 64 bit changes for profile.h.

13 years agoFix RQB_FFS for 64 bit, we need to use ffsl() for 64bit.
jchandra [Thu, 29 Jul 2010 13:52:46 +0000 (13:52 +0000)]
Fix RQB_FFS for 64 bit, we need to use ffsl() for 64bit.

Use 'ifdef __mips_n64' instead of 'if defined' to be consistant with other
usage.

13 years agoFix test for double-nul characters that terminate the string table at
jhb [Thu, 29 Jul 2010 13:46:37 +0000 (13:46 +0000)]
Fix test for double-nul characters that terminate the string table at
the end of each SMBIOS/DMI structure.

Submitted by: Dmitrij Tejblum @ yandex.ru
MFC after: 3 days

13 years agoAdapt sparc64 and sun4v timer code for the new event timers infrastructure.
mav [Thu, 29 Jul 2010 12:08:46 +0000 (12:08 +0000)]
Adapt sparc64 and sun4v timer code for the new event timers infrastructure.

Reviewed by: marius@

13 years agoFix the comment block that has the nice
rrs [Thu, 29 Jul 2010 12:01:59 +0000 (12:01 +0000)]
Fix the comment block that has the nice
table to really have the nice table :-)

MFC after: 1 month

13 years agoPR SCTP Bugs. Basically a full sized frame of
rrs [Thu, 29 Jul 2010 11:37:04 +0000 (11:37 +0000)]
PR SCTP Bugs. Basically a full sized frame of
PR SCTP FWD-TSN's would not be sent and thus
cause a stalled connection. Also the rwnd
Calculation was also off on the receiver side for
PR-SCTP.
MFC after: 1 month

13 years agoFix 'pciconf -a' by providing an implementation of PCIOCATTACHED.
neel [Thu, 29 Jul 2010 06:27:41 +0000 (06:27 +0000)]
Fix 'pciconf -a' by providing an implementation of PCIOCATTACHED.

Reviewed by: imp
MFC after: 1 week
Pointed out by: Heymian Wong (heymian at mit.alum.edu)
Sponsored by: NetApp

13 years agoFix build for o32 kernels.
neel [Thu, 29 Jul 2010 05:14:59 +0000 (05:14 +0000)]
Fix build for o32 kernels.

The emulation of 'ld' and 'sd' instructions only works for ABIs that support
64-bit registers and the instructions 'ldl' and 'ldr' that operate on those
registers.

Reviewed by: jmallett

13 years agoo) Subtract 64K from the default userland stack pointer. GCC generate code
jmallett [Thu, 29 Jul 2010 02:32:21 +0000 (02:32 +0000)]
o) Subtract 64K from the default userland stack pointer.  GCC generate code
   that with a 32-bit ABI on a system with 64-bit registers can attempt to
   access an invalid (well, kernel) memory address rather than the intended
   user address for stack-relative loads and stores.  Lowering the stack
   pointer works around this. [1]
o) Make TRAP_DEBUG code conditional on the trap_debug variable.  Make
   trap_debug default to 0 instead of 1 now but make it possible to change it
   at runtime using sysctl.
o) Kill programs that attempt an unaligned access of a kernel address.  Note
   that with some ABIs, calling useracc() is not sufficient since the register
   may be 64-bit but vm_offset_t is 32-bit so a kernel address could be
   truncated to what looks like a valid user address, allowing the user to
   crash the kernel.
o) Clean up unaligned access emulation to support unaligned 16-bit and 64-bit
   accesses.  (For 16-bit accesses it was checking for user access to too much
   memory (4 bytes) and there was no 64-bit support.)  This still lacks support
   for unaligned load-linked and store-conditional.

Reviewed by: [1] gonzo

13 years ago- Add Japanese NLS catalogs
gabor [Thu, 29 Jul 2010 01:15:26 +0000 (01:15 +0000)]
- Add Japanese NLS catalogs

Submitted by: hrs
Approved by: delphij (mentor)

13 years ago- Use the traditional behaviour for filename and directory name inclusion
gabor [Thu, 29 Jul 2010 00:11:14 +0000 (00:11 +0000)]
- Use the traditional behaviour for filename and directory name inclusion
  and exclusion patterns [1]
- Some improvements on the exiting code, like replacing memcpy with
  strlcpy/strcpy

Approved by: delphij (mentor)
Pointed out by: bf [1], des [1]

13 years agoThe corrected error count field is dependent on CMCI, not TES.
jhb [Wed, 28 Jul 2010 21:52:09 +0000 (21:52 +0000)]
The corrected error count field is dependent on CMCI, not TES.

MFC after: 1 week

13 years agoAdd quirk for Apacer HT202 USB 2.0 Flash Drive.
tijl [Wed, 28 Jul 2010 18:56:01 +0000 (18:56 +0000)]
Add quirk for Apacer HT202 USB 2.0 Flash Drive.

PR: usb/107243
Approved by: kib (mentor)
MFC after: 1 week

13 years agoProvide descriptions for three vendors and four devices in usbdevs. Use
gavin [Wed, 28 Jul 2010 17:38:43 +0000 (17:38 +0000)]
Provide descriptions for three vendors and four devices in usbdevs.  Use
the official vendor listed for 0x076b, rather than Omnikey, as in the PR.

PR: usb/123351
Submitted by: Marcin Cieslak <saper SYSTEM.PL>
MFC after: 1 week

13 years agoAdd myself as a ports committer
bapt [Wed, 28 Jul 2010 16:38:37 +0000 (16:38 +0000)]
Add myself as a ports committer

Approved by: tabthorpe@ (co-mentor)

13 years agoAdd support for the Corega CG-USBRS232R to uplcom(4)
gavin [Wed, 28 Jul 2010 16:29:10 +0000 (16:29 +0000)]
Add support for the Corega CG-USBRS232R to uplcom(4)

PR: usb/129173
Submitted by: SHIMAOKA Shunsuke <shimaoka.shunsuke gmail.com>
MFC after: 1 week

13 years agoFix clang warning on empty statement.
mdf [Wed, 28 Jul 2010 16:24:11 +0000 (16:24 +0000)]
Fix clang warning on empty statement.

Reviewed by:    rdivacky, zml
Approved by:    zml (mentor)

13 years agoFix clang warning on empty statement.
mdf [Wed, 28 Jul 2010 16:24:06 +0000 (16:24 +0000)]
Fix clang warning on empty statement.

Reviewed by:    rdivacky, zml
Approved by:    zml (mentor)

13 years agoRedo fetch_read() using non-blocking sockets. This is necessary to
des [Wed, 28 Jul 2010 16:11:22 +0000 (16:11 +0000)]
Redo fetch_read() using non-blocking sockets.  This is necessary to
avoid a hang in the SSL case if the server sends a close notification
before we are done reading.  In the non-SSL case, it can provide a
minor (but probably not noticeable) performance improvement for small
transfers.

MFC after: 3 weeks

13 years agoBump __FreeBSD_version for multizone malloc(9).
mdf [Wed, 28 Jul 2010 15:47:32 +0000 (15:47 +0000)]
Bump __FreeBSD_version for multizone malloc(9).

Approved by:    zml (mentor)

13 years agoAdd MALLOC_DEBUG_MAXZONES debug malloc(9) option to use multiple uma
mdf [Wed, 28 Jul 2010 15:36:12 +0000 (15:36 +0000)]
Add MALLOC_DEBUG_MAXZONES debug malloc(9) option to use multiple uma
zones for each malloc bucket size.  The purpose is to isolate
different malloc types into hash classes, so that any buffer overruns
or use-after-free will usually only affect memory from malloc types in
that hash class.  This is purely a debugging tool; by varying the hash
function and tracking which hash class was corrupted, the intersection
of the hash classes from each instance will point to a single malloc
type that is being misused.  At this point inspection or memguard(9)
can be used to catch the offending code.

Add MALLOC_DEBUG_MAXZONES=8 to -current GENERIC configuration files.
The suggestion to have this on by default came from Kostik Belousov on
-arch.

This code is based on work by Ron Steinke at Isilon Systems.

Reviewed by:    -arch (mostly silence)
Reviewed by:    zml
Approved by:    zml (mentor)

13 years agoFix a couple of embarrassing mistakes in the previous commit.
des [Wed, 28 Jul 2010 15:29:18 +0000 (15:29 +0000)]
Fix a couple of embarrassing mistakes in the previous commit.

Submitted by: Dimitry Andric <dimitry@andric.com>

13 years agoProtect GNUHASH translation functions with #ifdef; unbreak cross
kaiw [Wed, 28 Jul 2010 11:01:07 +0000 (11:01 +0000)]
Protect GNUHASH translation functions with #ifdef; unbreak cross
toolchain build.

Reported by: jchandra
MFC after: 1 month

13 years agoSupport the Pyramid KBS USB LCD under uftdi(4)
gavin [Wed, 28 Jul 2010 08:48:35 +0000 (08:48 +0000)]
Support the Pyramid KBS USB LCD under uftdi(4)

PR: usb/129758
Submitted by: joao lima <jlima visionware.pt>
MFC after: 1 week

13 years agoThe interpreter name should no longer be treated as a buffer that can be
alc [Wed, 28 Jul 2010 04:47:40 +0000 (04:47 +0000)]
The interpreter name should no longer be treated as a buffer that can be
overwritten.  (This change should have been included in r210545.)

Submitted by: kib

13 years agoFix the entry for the Option ICON452 where an underscore was used instead of
thompsa [Tue, 27 Jul 2010 22:55:24 +0000 (22:55 +0000)]
Fix the entry for the Option ICON452 where an underscore was used instead of
whitespace.

Submitted by: Lucius Windschuh

13 years agoAdd a parser for the ACPI SRAT table for amd64 and i386. It sets
jhb [Tue, 27 Jul 2010 20:40:46 +0000 (20:40 +0000)]
Add a parser for the ACPI SRAT table for amd64 and i386.  It sets
PCPU(domain) for each CPU and populates a mem_affinity array suitable
for the NUMA support in the physical memory allocator.

Reviewed by: alc

13 years agoUpdate mlockall(2) to mention that it's superuser-only syscall, just
trasz [Tue, 27 Jul 2010 20:34:37 +0000 (20:34 +0000)]
Update mlockall(2) to mention that it's superuser-only syscall, just
like the mlock(2) manual page says.  Update mlock(2) to say that hitting
RLIMIT_MEMLOCK results in ENOMEM, not EAGAIN.

MFC after: 1 month

13 years agoVery rough first cut at NUMA support for the physical page allocator. For
jhb [Tue, 27 Jul 2010 20:33:50 +0000 (20:33 +0000)]
Very rough first cut at NUMA support for the physical page allocator.  For
now it uses a very dumb first-touch allocation policy.  This will change in
the future.
- Each architecture indicates the maximum number of supported memory domains
  via a new VM_NDOMAIN parameter in <machine/vmparam.h>.
- Each cpu now has a PCPU_GET(domain) member to indicate the memory domain
  a CPU belongs to.  Domain values are dense and numbered from 0.
- When a platform supports multiple domains, the default freelist
  (VM_FREELIST_DEFAULT) is split up into N freelists, one for each domain.
  The MD code is required to populate an array of mem_affinity structures.
  Each entry in the array defines a range of memory (start and end) and a
  domain for the range.  Multiple entries may be present for a single
  domain.  The list is terminated by an entry where all fields are zero.
  This array of structures is used to split up phys_avail[] regions that
  fall in VM_FREELIST_DEFAULT into per-domain freelists.
- Each memory domain has a separate lookup-array of freelists that is
  used when fulfulling a physical memory allocation.  Right now the
  per-domain freelists are listed in a round-robin order for each domain.
  In the future a table such as the ACPI SLIT table may be used to order
  the per-domain lookup lists based on the penalty for each memory domain
  relative to a specific domain.  The lookup lists may be examined via a
  new vm.phys.lookup_lists sysctl.
- The first-touch policy is implemented by using PCPU_GET(domain) to
  pick a lookup list when allocating memory.

Reviewed by: alc

13 years agomips/rmi/bus_space_rmi_pci.c is needed even when PCI is disabled. This
jchandra [Tue, 27 Jul 2010 19:31:10 +0000 (19:31 +0000)]
mips/rmi/bus_space_rmi_pci.c is needed even when PCI is disabled. This
file really provides a bus that does byteswapping, and can be used by
non-PCI components too.

13 years agoFix commented out resource limit check in mlockall(2). It's still racy,
trasz [Tue, 27 Jul 2010 19:26:18 +0000 (19:26 +0000)]
Fix commented out resource limit check in mlockall(2).  It's still racy,
but at least less misleading.

13 years agoThe changes in r210542 moved setting counter_upper and counter_lower_last
jchandra [Tue, 27 Jul 2010 17:33:51 +0000 (17:33 +0000)]
The changes in r210542 moved setting counter_upper and counter_lower_last
outside the critical section - fix that.

Reported by: mav

13 years agoTypo fix: s/ommited/omitted
bcr [Tue, 27 Jul 2010 17:33:02 +0000 (17:33 +0000)]
Typo fix: s/ommited/omitted

MFC after: 4 days

13 years agoIntroduce exec_alloc_args(). The objective being to encapsulate the
alc [Tue, 27 Jul 2010 17:31:03 +0000 (17:31 +0000)]
Introduce exec_alloc_args().  The objective being to encapsulate the
details of the string buffer allocation in one place.

Eliminate the portion of the string buffer that was dedicated to storing
the interpreter name.  The pointer to the interpreter name can simply be
made to point to the appropriate argument string.

Reviewed by: kib

13 years agoSmall typo fix: s/ommited/omitted
bcr [Tue, 27 Jul 2010 17:23:40 +0000 (17:23 +0000)]
Small typo fix: s/ommited/omitted

PR:             docs/148977
Submitted by:   Warren Block (wblock at wonkity dot com)
MFC after:      4 days

13 years agoPrevent uhid(4) from attaching to the Liebert PowerSure Personal XT UPS.
gavin [Tue, 27 Jul 2010 17:07:16 +0000 (17:07 +0000)]
Prevent uhid(4) from attaching to the Liebert PowerSure Personal XT UPS.

PR: usb/129251
Submitted by: Andrew D Wiles <adw+gnats avatastic.co.uk>
MFC after: 1 week

13 years agoThe count/compare values have to be tracked per CPU.
jchandra [Tue, 27 Jul 2010 15:10:05 +0000 (15:10 +0000)]
The count/compare values have to be tracked per CPU.

Reviewed by: mav

13 years agoDocument that the "ngtee" action no longer accepts packet, and
glebius [Tue, 27 Jul 2010 14:31:39 +0000 (14:31 +0000)]
Document that the "ngtee" action no longer accepts packet, and
thus don't depend on one_pass flag anymore.

This is a POLA violation, but it is quite difficult to restore
the old behavior with new code. Also, the new behavior matches
behavior of the older "tee" action, and this is more intuitive.

13 years agoAdd an entry to remove the acpi_boost(4) man page.
rpaulo [Tue, 27 Jul 2010 14:26:38 +0000 (14:26 +0000)]
Add an entry to remove the acpi_boost(4) man page.

Submitted by: pluknet <pluknet at gmail.com>

13 years agoFix operation of "netgraph" action in conjunction with the
glebius [Tue, 27 Jul 2010 14:26:34 +0000 (14:26 +0000)]
Fix operation of "netgraph" action in conjunction with the
net.inet.ip.fw.one_pass sysctl.

The "ngtee" action is still broken.

PR: kern/148885
Submitted by: Nickolay Dudorov <nnd mail.nsk.ru>

13 years agoAdd support for the Longcheer WM66 USB HSDPA Modem to u3g(4)
gavin [Tue, 27 Jul 2010 12:29:45 +0000 (12:29 +0000)]
Add support for the Longcheer WM66 USB HSDPA Modem to u3g(4)

This patch is different to that provided in the PR, due to the changes in
this driver since 7.x.

PR: usb/129945
Submitted by: Antonio Hilario <avahilario gmail.com>
MFC after: 1 week

13 years agoDon't check malloc(M_WAITOK) result.
glebius [Tue, 27 Jul 2010 11:56:49 +0000 (11:56 +0000)]
Don't check malloc(M_WAITOK) result.

13 years agoReturn NULL rather than 0 for a pointer.
bz [Tue, 27 Jul 2010 11:54:01 +0000 (11:54 +0000)]
Return NULL rather than 0 for a pointer.

MFC after: 3 days

13 years agoWhen installing a new ARP entry via 'arp -S', lla_lookup() will
glebius [Tue, 27 Jul 2010 10:05:27 +0000 (10:05 +0000)]
When installing a new ARP entry via 'arp -S', lla_lookup() will
either find an existing entry, or allocate a new one. In the latter
case an entry would have flags, that were supplied as argument to
lla_lookup(). In case of an existing entry, flags aren't modified.

This lead to losing LLE_PUB and/or LLE_PROXY flags.

We should apply these flags either in lla_rt_output() or in the
in.c:in_lltable_lookup(). It seems to me that lla_rt_output() is
a more correct choice.

PR: kern/148784, kern/146539
Silence from: qingli, 5 days

13 years agoFixup mips/rmi for the new mips timer code(r210403). This will get XLR
jchandra [Tue, 27 Jul 2010 09:22:41 +0000 (09:22 +0000)]
Fixup mips/rmi for the new mips timer code(r210403). This will get XLR
booting again.

The code is a copy of the mips/mips/tick.c with minor modifications for
XLR interrupt handling. Disable mips/rmi/clock.c for now, the PIC based
timer code will be added later.

13 years agoMissing IFCAP_* macro descriptions in ifnet(9).
simon [Tue, 27 Jul 2010 08:45:29 +0000 (08:45 +0000)]
Missing IFCAP_* macro descriptions in ifnet(9).

PR: docs/148952
Submitted by: Lars Hartmann <lars@chaotika.org>
MFC after: 2 weeks

13 years ago- Support two devices made by West Mountain Radio in uslcom(4) [1]
gavin [Tue, 27 Jul 2010 07:57:35 +0000 (07:57 +0000)]
- Support two devices made by West Mountain Radio in uslcom(4) [1]

- Bring in several other devices from OpenBSD while here.  Use the
  official manufacturer name over the OpenBSD name in the case of
  GEMALTO.  Reorder list slightly to aid future syncing.

- Remove duplicate SILABS CP2102 define from usbdevs

PR: usb/131912 [1]
Submitted by: Jack Twilley <mathuin gmail.com> [1]
MFC after: 1 week

13 years agoFix an apparent typo.
jkim [Mon, 26 Jul 2010 23:24:42 +0000 (23:24 +0000)]
Fix an apparent typo.

Found by: clang
Reviewed by: davidch, yongari

13 years agoSimplify fldcw() macro. There is no reason to use pointer here. No object
jkim [Mon, 26 Jul 2010 23:20:55 +0000 (23:20 +0000)]
Simplify fldcw() macro.  There is no reason to use pointer here.  No object
file change after this commit (verified with md5).

13 years agoAdd missing ldmxcsr() prototype for lint case.
jkim [Mon, 26 Jul 2010 23:02:18 +0000 (23:02 +0000)]
Add missing ldmxcsr() prototype for lint case.

13 years agoRemove an unused macro since r189418.
jkim [Mon, 26 Jul 2010 22:55:14 +0000 (22:55 +0000)]
Remove an unused macro since r189418.

13 years agoReduce diff against fenv.h:
jkim [Mon, 26 Jul 2010 22:16:36 +0000 (22:16 +0000)]
Reduce diff against fenv.h:

Mark all inline asms as volatile for safety.  No object file change after
this commit (verified with md5).

13 years agoFNSTSW instruction can use AX register as an operand.
jkim [Mon, 26 Jul 2010 21:24:52 +0000 (21:24 +0000)]
FNSTSW instruction can use AX register as an operand.

Obtained from: fenv.h

13 years agoPrevent uhid(4) from attaching to the Gembird Silver Shield remote power
gavin [Mon, 26 Jul 2010 21:22:57 +0000 (21:22 +0000)]
Prevent uhid(4) from attaching to the Gembird Silver Shield remote power
plug.  Note that the Vendor ID 0x04b4 is officially assigned to Cypress,
so use that instead of adding a second vendor with an identical ID, in the
same way other similar cases are treated in usb/usbdevs.

PR: usb/132785
Submitted by: Dirk-Willem van Gulik <dirkx webweaving.org>
MFC after: 1 week

13 years agoPrevent ukbd(4) and uhid(4) from attaching when a WiSPY DBx Spectrum
gavin [Mon, 26 Jul 2010 20:44:29 +0000 (20:44 +0000)]
Prevent ukbd(4) and uhid(4) from attaching when a WiSPY DBx Spectrum
Analyzer is attached.

PR: usb/134631
Submitted by: Jesse Kempf <jkempf davisvision.com>
MFC after: 1 week

13 years agoRe-implement FPU suspend/resume for amd64. This removes superfluous uses
jkim [Mon, 26 Jul 2010 19:53:09 +0000 (19:53 +0000)]
Re-implement FPU suspend/resume for amd64.  This removes superfluous uses
of critical_enter(9) and critical_exit(9) by fpugetregs() and fpusetregs().
Also, we do not touch PCB flags any more.

MFC after: 1 month

13 years agoUse "printf" instead of "echo -n" in an example because it
bcr [Mon, 26 Jul 2010 18:33:33 +0000 (18:33 +0000)]
Use "printf" instead of "echo -n" in an example because it
should be more compatible for most shells that are out there.

I contacted Philip Guenther at OpenBSD about this PR and he
corrected the issue in their tree pretty fast.

PR: docs/142243
Submitted by: Yasir (yasir27 at mail dot ru)
Obtained from: OpenBSD
Discussed with: delphij
MFC after: 7 days

13 years ago- Change the warning about PCI-e links narrower than x8 to only apply to
jhb [Mon, 26 Jul 2010 17:31:15 +0000 (17:31 +0000)]
- Change the warning about PCI-e links narrower than x8 to only apply to
  10G cards.  1G cards are x4 only.
- Use constants from pcireg.h for reading the current link width.
- Use pci_set_max_read_req() rather than implementing it by hand.

Reviewed by: np
MFC after: 1 week

13 years agoConnect the snmp_wlan(3) module to the build.
syrinx [Mon, 26 Jul 2010 16:26:26 +0000 (16:26 +0000)]
Connect the snmp_wlan(3) module to the build.

Sponsored by: The FreeBSD Foundation

13 years agoAdd a (disabled) configuration line to enable the snmp_wlan(3) module.
syrinx [Mon, 26 Jul 2010 16:20:52 +0000 (16:20 +0000)]
Add a (disabled) configuration line to enable the snmp_wlan(3) module.

Sponsored by: The FreeBSD Foundation

13 years agoBring in a SNMP module to support monitoring cloned wireless interfaces
syrinx [Mon, 26 Jul 2010 16:16:39 +0000 (16:16 +0000)]
Bring in a SNMP module to support monitoring cloned wireless interfaces
via bsnmpd(1). The module implements a private BEGEMOT-WIRELESS-MIB.

Sponsored by: The FreeBSD Foundation
Reviewed by: philip@
Approved by: philip@

13 years agoRemove unneeded includes.
kib [Mon, 26 Jul 2010 14:38:51 +0000 (14:38 +0000)]
Remove unneeded includes.

Submitted by: alc
MFC after: 1 week

13 years agoZero padding fields of netflow records. This helps to reduce
glebius [Mon, 26 Jul 2010 13:48:35 +0000 (13:48 +0000)]
Zero padding fields of netflow records. This helps to reduce
size of compressed export logs.

Requested by: Alexey Illarionov <littlesavage orionet.ru>

13 years agoRevert r210451, and the similar part of the r210431. The forward-declaration
kib [Mon, 26 Jul 2010 12:52:44 +0000 (12:52 +0000)]
Revert r210451, and the similar part of the r210431. The forward-declaration
for the enum tag when enum definition is not complete is not allowed by
C99, and is gcc extension.

Requested by: stefanf
MFC after: 28 days

13 years ago- Remove some extra white space.
jh [Mon, 26 Jul 2010 10:37:14 +0000 (10:37 +0000)]
- Remove some extra white space.
- Wrap g_md_dumpconf() prototype to 80 columns.

13 years agoFix a bug where the length of a FORWARD-TSN chunk was set incorrectly in
tuexen [Mon, 26 Jul 2010 09:26:55 +0000 (09:26 +0000)]
Fix a bug where the length of a FORWARD-TSN chunk was set incorrectly in
the chunk. This resulted in malformed frames.
Remove a duplicate assignment.

MFC after: 2 weeks

13 years agoMake sure that we report chunks if a socket
rrs [Mon, 26 Jul 2010 09:22:52 +0000 (09:22 +0000)]
Make sure that we report chunks if a socket
still exists that were not sent. In either
case carefully remove the data if it does not
get taken by the reporting routines.

MFC after: 2 weeks

13 years agoWhen counting the number of chunks in the
rrs [Mon, 26 Jul 2010 09:20:55 +0000 (09:20 +0000)]
When counting the number of chunks in the
retransmission queue to validate the retran count, we
need to include the chunks in the control send queue
too. Otherwise the count will not match and you will get
the invarient warning if invarients are on.

MFC after: 2 weeks

13 years agosh: Fix crash due to uninitialized here-document.
jilles [Sun, 25 Jul 2010 22:25:52 +0000 (22:25 +0000)]
sh: Fix crash due to uninitialized here-document.

If an ; or & token was followed by an EOF token, pending here-documents were
left uninitialized. Execution would crash, either in the main shell process
for literal here-documents or in a child process for expanded
here-documents. In the latter case the problem is hard to detect apart from
the core dumps and log messages.

Side effect: slightly different retries on inputs where EOF is not
persistent.

Note that tools/regression/bin/sh/parser/heredoc6.0 still causes a similar
crash in a child process. The text passed to eval is malformed and should be
rejected.

13 years agoCorrect a Cecil Beaton quote
dougb [Sun, 25 Jul 2010 21:35:56 +0000 (21:35 +0000)]
Correct a Cecil Beaton quote

PR: docs/148916
Submitted by: Rob Farmer <rfarmer@predatorlabs.net>

13 years agoAdd an example to encourage people to have a look at either
bcr [Sun, 25 Jul 2010 20:21:32 +0000 (20:21 +0000)]
Add an example to encourage people to have a look at either
make(1) or /usr/ports/ports-mgmt/portconf for port-specific
variables/options to compile a port.

PR: docs/145655
Submitted by: Armin Pirkovitsch (armin at frozen dash zone dot org)
Discussed with: dougb
MFC after: 7 days

13 years ago- Fix -l and -L by really surpressing output and just showing filenames
gabor [Sun, 25 Jul 2010 18:57:48 +0000 (18:57 +0000)]
- Fix -l and -L by really surpressing output and just showing filenames

Submitted by: swell.k@gmail.com
Approved by: delphij (mentor)

13 years agoMention the removal of acpi_aiboost.
rpaulo [Sun, 25 Jul 2010 18:32:59 +0000 (18:32 +0000)]
Mention the removal of acpi_aiboost.

13 years agoRemove the acpi_aiboost driver. It has been replaced by aibs(4).
rpaulo [Sun, 25 Jul 2010 17:55:57 +0000 (17:55 +0000)]
Remove the acpi_aiboost driver. It has been replaced by aibs(4).

13 years agoChange the order in which the file name, arguments, environment, and
alc [Sun, 25 Jul 2010 17:43:38 +0000 (17:43 +0000)]
Change the order in which the file name, arguments, environment, and
shell command are stored in exec*()'s demand-paged string buffer.  For
a "buildworld" on an 8GB amd64 multiprocessor, the new order reduces
the number of global TLB shootdowns by 31%.  It also eliminates about
330k page faults on the kernel address space.

Change exec_shell_imgact() to use "args->begin_argv" consistently as
the start of the argument and environment strings.  Previously, it
would sometimes use "args->buf", which is the start of the overall
buffer, but no longer the start of the argument and environment
strings.  While I'm here, eliminate unnecessary passing of "&length"
to copystr(), where we don't actually care about the length of the
copied string.

Clean up the initialization of the exec map.  In particular, use the
correct size for an entry, and express that size in the same way that
is used when an entry is allocated.  The old size was one page too
large.  (This discrepancy originated in 2004 when I rewrote
exec_map_first_page() to use sf_buf_alloc() instead of the exec map
for mapping the first page of the executable.)

Reviewed by: kib

13 years agoExport PCI IDs of ATA/SATA controllers through CAM and ata(4) layers to
mav [Sun, 25 Jul 2010 15:43:52 +0000 (15:43 +0000)]
Export PCI IDs of ATA/SATA controllers through CAM and ata(4) layers to
GEOM. This information needed for proper soft-RAID's on-disk metadata
reading and writing.

13 years agoImport two changesets from OpenSolaris to make future updates easier.
mm [Sun, 25 Jul 2010 15:17:24 +0000 (15:17 +0000)]
Import two changesets from OpenSolaris to make future updates easier.

The changes do not affect FreeBSD code because
zfs_znode_move(), cleanlocks() and cleanshares() are not used.

OpenSolaris onnv changeset: 9788:f660bc44f2e8, 9909:aa280f585a3e

Approved by: pjd, delphij (mentor)
Obtained from: OpenSolaris (Bug ID 68437006790232)
MFC after: 7 weeks

13 years agoGive a name to the HTC Wizard Smartphone
gavin [Sun, 25 Jul 2010 15:14:42 +0000 (15:14 +0000)]
Give a name to the HTC Wizard Smartphone

PR: usb/135575
Submitted by: lioux

13 years agoApply a small grammar fix to {toupper,tolower}(3).
bcr [Sun, 25 Jul 2010 13:32:19 +0000 (13:32 +0000)]
Apply a small grammar fix to {toupper,tolower}(3).

PR: docs/140458
Submitted by: Jeremy Huddleston (Jeremyhu at apple dot com)
MFC after: 5 days

13 years agoMerge r210464 from vendor/ncurses/dist:
rafan [Sun, 25 Jul 2010 11:48:27 +0000 (11:48 +0000)]
Merge r210464 from vendor/ncurses/dist:

 - Fix wrong manpage title for keybound.3X

 PR: docs/148864
 Obtained from: ncurses-5.7-20081213 snapshot

13 years agoClarify that the "number of bytes per sector"-range in the
bcr [Sun, 25 Jul 2010 11:31:29 +0000 (11:31 +0000)]
Clarify that the "number of bytes per sector"-range in the
-S option is meant to be "inclusive".

The original issue of the PR was already fixed.

PR:                 docs/142418
Submitted by:       David Naylor (naylor dot b dot david at gmail dot com)
No objection from:  kib
MFC after:          5 days

13 years ago- Fix --color behaviour to only output color sequences if stdout is a tty
gabor [Sun, 25 Jul 2010 08:42:18 +0000 (08:42 +0000)]
- Fix --color behaviour to only output color sequences if stdout is a tty
  or if forced mode is specified [1]
- While here, add some alternative names for the options and make then
  case-insensitive
- Fix -q and -l behaviour [2]
- Some small changes to make the code easier to review

Submitted by:   swell.k@gmail.com [1],
                dougb [2]
Approved by:    delphij (mentor)

13 years agoGet N64 building by defining VM_FREELIST_DIRECT to be
imp [Sun, 25 Jul 2010 04:19:05 +0000 (04:19 +0000)]
Get N64 building by defining VM_FREELIST_DIRECT to be
VM_FREELIST_DEFAULT.  I believe this is correct, since KX is set in
n64, and thus all RAM can be direct mapped.

13 years agoMFi386: revision 210387
nyan [Sun, 25 Jul 2010 02:22:32 +0000 (02:22 +0000)]
MFi386: revision 210387

  Correctly setup LDADD with regards to libstand.

13 years agoAllow external interrupts.
andrew [Sat, 24 Jul 2010 23:41:09 +0000 (23:41 +0000)]
Allow external interrupts.

- Set the external pin to interrupt in bus_setup_intr
- Implement bus_config_intr for external interrupts
- Extend arm_{,un}mask_irq to work with external interrupts

Approved by: imp (mentor)

13 years agoConsider snapshots as descendants via zfs allow -d
mm [Sat, 24 Jul 2010 22:28:29 +0000 (22:28 +0000)]
Consider snapshots as descendants via zfs allow -d

OpenSolaris onnv changeset: 9847:2f3ba86e857a

Approved by: pjd, delphij (mentor)
Obtained from: OpenSolaris (Bug ID 6809340)
MFC after: 1 week

13 years agoFix the include path for nfs_lock.h.
rmacklem [Sat, 24 Jul 2010 22:16:14 +0000 (22:16 +0000)]
Fix the include path for nfs_lock.h.

MFC after: 2 weeks

13 years agoMove sys/nfsclient/nfs_lock.c into sys/nfs and build it as a separate
rmacklem [Sat, 24 Jul 2010 22:11:11 +0000 (22:11 +0000)]
Move sys/nfsclient/nfs_lock.c into sys/nfs and build it as a separate
module that can be used by both the regular and experimental nfs
clients. This fixes the problem reported by jh@ where /dev/nfslock
would be registered twice when both nfs clients were used.
I also defined the size of the lm_fh field to be the correct value,
as it should be the maximum size of an NFSv3 file handle.

Reviewed by: jh
MFC after: 2 weeks

13 years agoichwd: correct range check for timeout value
avg [Sat, 24 Jul 2010 19:40:16 +0000 (19:40 +0000)]
ichwd: correct range check for timeout value

This is similar to a fix in r189305 but for earlier ICH versions (<= 5).

Reported by: someone via attilio
Discussed with: des, attilio
MFC after: 1 week

13 years agostyle(9) fix
gnn [Sat, 24 Jul 2010 18:53:46 +0000 (18:53 +0000)]
style(9) fix

MFC after: 1 week

13 years agoUse forward declartion for enum uio_seg in imgact.h. This allows to remove
kib [Sat, 24 Jul 2010 18:14:34 +0000 (18:14 +0000)]
Use forward declartion for enum uio_seg in imgact.h. This allows to remove
inclusion of sys/uio.h from the header.

Proposed by: alc
MFC after: 1 week

13 years agoFix alignment for the 'flags' label, and make more room for 'tdev'.
trasz [Sat, 24 Jul 2010 15:37:36 +0000 (15:37 +0000)]
Fix alignment for the 'flags' label, and make more room for 'tdev'.

MFC after: 1 month

13 years agoAdd P_HASTHREADS flag description.
trasz [Sat, 24 Jul 2010 15:24:12 +0000 (15:24 +0000)]
Add P_HASTHREADS flag description.

13 years agoReword the comment, fixing typo.
kib [Sat, 24 Jul 2010 14:23:06 +0000 (14:23 +0000)]
Reword the comment, fixing typo.

MFC after: 3 days

13 years agoIncrement td->td_intr_nesting_level for LAPIC timer interrupts. Among other
mav [Sat, 24 Jul 2010 10:49:59 +0000 (10:49 +0000)]
Increment td->td_intr_nesting_level for LAPIC timer interrupts. Among other
things it hints SCHED_ULE to run clock swi handlers on their native CPUs,
avoiding many unneeded IPI_PREEMPT calls.

13 years agoRemove extra commas from KTR_EVENT4() macro to match number of CTR6() args.
mav [Sat, 24 Jul 2010 10:07:17 +0000 (10:07 +0000)]
Remove extra commas from KTR_EVENT4() macro to match number of CTR6() args.
Comparing to other macros there should be strings concatenation, not a
separate arguments.

13 years agoMake failed open of /dev/mdctl in the bsnmpd hostres module non-fatal.
simon [Sat, 24 Jul 2010 10:04:35 +0000 (10:04 +0000)]
Make failed open of /dev/mdctl in the bsnmpd hostres module non-fatal.
This makes it possible to use the hostres module when bsnmpd is not
running as root.

MFC after: 1 week

13 years agoCatch up with r210324. d_buf will be NULL for SHT_NOBITS sections, do not
np [Fri, 23 Jul 2010 22:24:25 +0000 (22:24 +0000)]
Catch up with r210324.  d_buf will be NULL for SHT_NOBITS sections, do not
attempt to copy from it in that case.

MFC after: 1 month