]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
11 years agoFix logic error in explicitly specified dtb versions spotted by gavin.
theraven [Tue, 22 Jan 2013 18:12:31 +0000 (18:12 +0000)]
Fix logic error in explicitly specified dtb versions spotted by gavin.

11 years agoUse pluralies() for "entry"/"entries".
glebius [Tue, 22 Jan 2013 18:07:59 +0000 (18:07 +0000)]
Use pluralies() for "entry"/"entries".

11 years agoAdd FILES section.
joel [Tue, 22 Jan 2013 18:02:58 +0000 (18:02 +0000)]
Add FILES section.

Discussed with: jilles

11 years agoRestore Python 2.6+ compatibility
emaste [Tue, 22 Jan 2013 18:02:48 +0000 (18:02 +0000)]
Restore Python 2.6+ compatibility

SVN r245536 ported this to Python 3.  The major change was the use of the
print function.  Unfortunately this is incompatible with Python 2, which
is still the default version in the ports tree.

Use a __future__ import to make this compatible with Python 2.6 and later.

11 years agoImport new (BSDL) device tree compiler. Now built by default, so that it can't
theraven [Tue, 22 Jan 2013 17:49:51 +0000 (17:49 +0000)]
Import new (BSDL) device tree compiler.  Now built by default, so that it can't
be used on the host system (and not installed on the device, if required).  The
GPL'd one is still available if there are any devices that need it (make
universe passes with it, including kernels that use fdt, but there may be some
out-of-tree ones).  WITH_GPL_DTC can be used to select the old one, for now.

Probably won't be MFC'd, but we'll remove the GPL'd version in head after the
new one has had a lot more testing and ship it in 10.0.

11 years agoImprove error handling and remove an unnecessary check on geom provider
nwhitehorn [Tue, 22 Jan 2013 17:06:28 +0000 (17:06 +0000)]
Improve error handling and remove an unnecessary check on geom provider
type. GEOM provider names can't duplicate (or shouldn't -- devfs will either
break or only use the first one if they do) so using the first provider
by that name is a sufficient check. This also lets the scripted partitioner
install onto gmirror and geli and such things.

11 years agoMake "install -l s[ar]" act like "ln -sfh" as intended. This fixes
brooks [Tue, 22 Jan 2013 16:23:08 +0000 (16:23 +0000)]
Make "install -l s[ar]" act like "ln -sfh" as intended. This fixes
installation of symbolic links where the target is a link is to an
existing directory.

11 years agoImprove documentation of BSDINSTALL_DISTSITE and mdoc.
nwhitehorn [Tue, 22 Jan 2013 15:26:19 +0000 (15:26 +0000)]
Improve documentation of BSDINSTALL_DISTSITE and mdoc.

11 years agoSimplify and fix a bug in cc_ack_received()'s "are we congestion window limited"
lstewart [Tue, 22 Jan 2013 09:44:21 +0000 (09:44 +0000)]
Simplify and fix a bug in cc_ack_received()'s "are we congestion window limited"
logic (refer to [1] for associated discussion). snd_cwnd and snd_wnd are
unsigned long and on 64 bit hosts, min() will truncate them to 32 bits and could
therefore potentially corrupt the result (although under normal operation,
neither variable should legitmately exceed 32 bits).

[1] http://lists.freebsd.org/pipermail/freebsd-net/2013-January/034297.html

Submitted by: jhb
MFC after: 1 week

11 years ago - Don't include date and time the driver is built, this is useful for
delphij [Tue, 22 Jan 2013 05:41:34 +0000 (05:41 +0000)]
 - Don't include date and time the driver is built, this is useful for
   generating binary diffs.
 - Constify a few strings used in the driver.
 - Style changes to make the driver compile with default clang settings.

Approved by: HighPoint Technologies
MFC after: 3 days

11 years agoWhen copying the complement of the string loop to WINT_MAX as we are dealing
andrew [Tue, 22 Jan 2013 05:39:34 +0000 (05:39 +0000)]
When copying the complement of the string loop to WINT_MAX as we are dealing
with a wint_t. WINT_MAX and WCHAR_MAX are the same on most architectures
except ARM EABI where wint_t is signed and wchar_t is unsigned.

11 years agoFix linking of loader.efi.
benno [Tue, 22 Jan 2013 04:14:27 +0000 (04:14 +0000)]
Fix linking of loader.efi.

gcc handles -symbolic by passing -Bsymbolic through to ld. clang ignores
-symbolic and thus invokes ld without -Bsymbolic which leads to some symbols
not being properly linked in loader.efi. Fix this by using -Wl,-Bsymbolic which
passes -Bsymbolic to ld in both the gcc and clang cases.

Approved by: rpaulo

11 years agoMake "-D skip" option work with FIFO by opening file in non-blocking mode.
davidxu [Tue, 22 Jan 2013 03:23:14 +0000 (03:23 +0000)]
Make "-D skip" option work with FIFO by opening file in non-blocking mode.

Reviewed by: jhb
Tested by: delphij

11 years agoClarify that the setup script is optional.
nwhitehorn [Tue, 22 Jan 2013 02:57:53 +0000 (02:57 +0000)]
Clarify that the setup script is optional.

11 years agoUpdate change date.
nwhitehorn [Tue, 22 Jan 2013 02:47:08 +0000 (02:47 +0000)]
Update change date.

11 years agoDocument bsdinstall scripting as it currently operates. It may change in
nwhitehorn [Tue, 22 Jan 2013 02:40:06 +0000 (02:40 +0000)]
Document bsdinstall scripting as it currently operates. It may change in
the future depending on feedback from people using it to do unattended
system setup.

11 years agoChase r245756 of make.conf(5):
gjb [Tue, 22 Jan 2013 01:18:49 +0000 (01:18 +0000)]
Chase r245756 of make.conf(5):

- If update method is SUP_UPDATE or CVS, warn that those
  update methods are deprecated.

- While here, remove bogus NO_WWWUPDATE.

MFC after: 3 days
X-MFC-with: r245756

11 years ago- Mark SUP_UPDATE as deprecated in make.conf(5), providing
gjb [Tue, 22 Jan 2013 01:10:47 +0000 (01:10 +0000)]
- Mark SUP_UPDATE as deprecated in make.conf(5), providing
  instructions to use SVN_UPDATE or freebsd-update(8).

- While here, remove bogus NO_WWWUPDATE.

MFC after: 3 days

11 years agoFix highest voltage detection
gonzo [Mon, 21 Jan 2013 23:24:16 +0000 (23:24 +0000)]
Fix highest voltage detection

Submitted by: Daisuke Aoyama <aoyama at peach.ne.jp>
Approved by: imp@

11 years agoAlways bootstrap nmtree if it is not available on the host. It is fairly
brooks [Mon, 21 Jan 2013 23:12:50 +0000 (23:12 +0000)]
Always bootstrap nmtree if it is not available on the host. It is fairly
small and it is quite annoying to get all the way through buildworld
only to discover that you forgot the DB_FROM_SRC (or soon NO_ROOT)
option.

11 years agoInstall the template info directory with mode 644 instead of 444 to
brooks [Mon, 21 Jan 2013 22:54:43 +0000 (22:54 +0000)]
Install the template info directory with mode 644 instead of 444 to
allow it to be updated by its owner without resorting to privilege.

This is required by upcoming changes to allow installworld to work as
a non-root user.

Sponsored by: DARPA, AFRL
Reviewed by: ian, ray, rpaulo

11 years agoReplace all known uses of ln in the build process with appropriate
brooks [Mon, 21 Jan 2013 22:40:39 +0000 (22:40 +0000)]
Replace all known uses of ln in the build process with appropriate
install -l invocations via new INSTALL_LINK and INSTALL_SYMLINK
variables.

Sponsored by: DARPA, AFRL
Reviewed by: ian, ray, rpaulo

11 years agoImplement the -l option using ln(1) to facilitate boostrapping.
brooks [Mon, 21 Jan 2013 22:32:00 +0000 (22:32 +0000)]
Implement the -l option using ln(1) to facilitate boostrapping.

Ignore the new options -D, -h, -T, and -U.  Adjust -M support to ignore
an argument.

Sponsored by: DARPA, AFRL
Reviewed by: ian, ray, rpaulo

11 years agoNote that SIGCHLD is special and if ignored, won't be recorded by the filter.
pjd [Mon, 21 Jan 2013 22:07:34 +0000 (22:07 +0000)]
Note that SIGCHLD is special and if ignored, won't be recorded by the filter.

11 years agoAllocate the memory for the MSI-X table dynamically instead of allocating 32KB
neel [Mon, 21 Jan 2013 22:07:05 +0000 (22:07 +0000)]
Allocate the memory for the MSI-X table dynamically instead of allocating 32KB
statically. In most cases the number of table entries will be far less than
the maximum of 2048 allowed by the PCI specification.

Reuse macros from pcireg.h to interpret the MSI-X capability instead of rolling
our own.

Obtained from: NetApp

11 years agoFix another build breakage for ia64.
jkim [Mon, 21 Jan 2013 21:26:42 +0000 (21:26 +0000)]
Fix another build breakage for ia64.

11 years agoUse C99 sparse initialization for struct vfsops in pseudocode.
pluknet [Mon, 21 Jan 2013 20:15:35 +0000 (20:15 +0000)]
Use C99 sparse initialization for struct vfsops in pseudocode.
Where here, use conventional fsname.

11 years agoImport new fix from libcxxrt. This fixes the case where you attempt to rethrow
theraven [Mon, 21 Jan 2013 17:37:23 +0000 (17:37 +0000)]
Import new fix from libcxxrt.  This fixes the case where you attempt to rethrow
an exception when you haven't caught one.  This is largely a cosmetic fix, as
(unless you have a very unusual terminate handler installed) it will print a
nice error and then abort, rather than just aborting.

MFC after:     7 days

11 years agoFix typo and simplify condition.
nwhitehorn [Mon, 21 Jan 2013 14:06:33 +0000 (14:06 +0000)]
Fix typo and simplify condition.

Submitted by: Christoph Mallon <christoph dot mallon at gmx dot de>

11 years agoIf lagg(4) can't forward a packet due to underlying port problems,
glebius [Mon, 21 Jan 2013 08:59:31 +0000 (08:59 +0000)]
If lagg(4) can't forward a packet due to underlying port problems,
return much more meaningful ENETDOWN to the stack, instead of EBUSY.

11 years agoGet rid of redundant 'table_size' field in struct pi_msix. If needed it can
neel [Mon, 21 Jan 2013 08:12:59 +0000 (08:12 +0000)]
Get rid of redundant 'table_size' field in struct pi_msix. If needed it can
always be calculated from the number of entries in the MSI-X table.

Obtained from: NetApp

11 years agoFix this routine to acutally break out and not set clrdmask if any
adrian [Mon, 21 Jan 2013 07:50:38 +0000 (07:50 +0000)]
Fix this routine to acutally break out and not set clrdmask if any
of the TIDs are currently marked as "filtered."

11 years agoAdd new quirk and correct old one.
hselasky [Mon, 21 Jan 2013 07:02:41 +0000 (07:02 +0000)]
Add new quirk and correct old one.

PR: usb/175454
MFC after: 1 week

11 years agoFix packet reception and other issues arising from incorrect ASX clock
jmallett [Mon, 21 Jan 2013 06:47:06 +0000 (06:47 +0000)]
Fix packet reception and other issues arising from incorrect ASX clock
configuration on the physical ports of the Ubiquiti EdgeRouter Lite.

11 years agoMigrate CLRDMASK to be a per-node flag, rather than a per-TID flag.
adrian [Mon, 21 Jan 2013 04:06:04 +0000 (04:06 +0000)]
Migrate CLRDMASK to be a per-node flag, rather than a per-TID flag.

This is easily possible now that the TX is protected by a single
lock, rather than a per-TXQ (and thus per-TID) lock.

Only set CLRDMASK if none of the destinations are filtered.
This likely will need some tuning when it comes time to do UASPD/PS-POLL
TX, however at that point it should be manually set anyway.

Tested:

* AR9280, STA mode

TODO:

* More thorough testing in AP mode
* test other chipsets, just to be safe/sure.

11 years agoRemove some debugging code that snuck in.
nwhitehorn [Mon, 21 Jan 2013 02:47:14 +0000 (02:47 +0000)]
Remove some debugging code that snuck in.

11 years agoMore automated install support: if a script exists at /etc/installerconfig,
nwhitehorn [Mon, 21 Jan 2013 01:55:54 +0000 (01:55 +0000)]
More automated install support: if a script exists at /etc/installerconfig,
point the installer there and then reboot without asking questions. This
design subject to future change.

11 years agoAdd command-line support to kgdb to allow the baudrate to be set.
adrian [Mon, 21 Jan 2013 01:46:36 +0000 (01:46 +0000)]
Add command-line support to kgdb to allow the baudrate to be set.

This allows a remote session to be specified with '-r' as well as a
non-default baudrate setting using '-b'.

TODO: add to the kgdb manpage.

MFC after: 2 weeks

11 years agoPostpone vmm module initialization until after SMP is initialized - particularly
neel [Mon, 21 Jan 2013 01:33:10 +0000 (01:33 +0000)]
Postpone vmm module initialization until after SMP is initialized - particularly
that 'smp_started != 0'.

This is required because the VT-x initialization calls smp_rendezvous()
to set the CR4_VMXE bit on all the cpus.

With this change we can preload vmm.ko from the loader.

Reported by: alfred@, sbruno@
Obtained from: NetApp

11 years agoUse correct size for AM335x CPSW memory window.
kientzle [Mon, 21 Jan 2013 01:02:49 +0000 (01:02 +0000)]
Use correct size for AM335x CPSW memory window.

11 years agoAdd a scripting frontend. Documentation and release(7) support coming later.
nwhitehorn [Mon, 21 Jan 2013 01:01:32 +0000 (01:01 +0000)]
Add a scripting frontend. Documentation and release(7) support coming later.

Scripts take the form:

------------------------------------
PARTITIONS=ada0
DISTRIBUTIONS="kernel.txz base.txz ports.txz"

#!/bin/sh
echo "sshd_enable=YES" >> /etc/rc.conf
pkg add puppet
echo "System setup complete"
------------------------------------

The second part of the script (beginning with #!) is run in the newly
installed system after the installation onto ada0 (with default partitioning,
see scriptedpart for more complicated scenarios) is complete.

11 years agoIf no partition configuration is specified in {}, use the automatic setup
nwhitehorn [Sun, 20 Jan 2013 23:04:21 +0000 (23:04 +0000)]
If no partition configuration is specified in {}, use the automatic setup
the interactive installer uses.

Example: bsdinstall scriptedpart ada0
Result: Use entire disk for a FreeBSD system with default partition layout

11 years agoAdd a simple scripted partitioner. Documentation and more scripting support
nwhitehorn [Sun, 20 Jan 2013 22:25:58 +0000 (22:25 +0000)]
Add a simple scripted partitioner. Documentation and more scripting support
will come soon. This lets the install process have a line like:

bsdinstall scriptedpart 'ada0 GPT {1.5G freebsd-ufs /, 10G freebsd-swap,
    auto freebsd-ufs /usr}'

to set up a system with a 1.5GB /, some swap space, and a /usr using the
rest of ada0.

MFC after: 1 month

11 years agoChange the $ENV example to use .shrc instead of .shinit. This is consistent
joel [Sun, 20 Jan 2013 22:25:25 +0000 (22:25 +0000)]
Change the $ENV example to use .shrc instead of .shinit. This is consistent
with what we use in /usr/share/skel/dot.profile.

Discussed with: jilles

11 years agosh: Move some stackmarks to fix high memory usage in some loops.
jilles [Sun, 20 Jan 2013 21:28:05 +0000 (21:28 +0000)]
sh: Move some stackmarks to fix high memory usage in some loops.

If a loop contained certain commands (such as redirected compound commands),
the temporary memory for the redirection was not freed between iterations of
the loop but only after the loop.

Put a stackmark in evaltree(), freeing memory whenever a node has been
evaluated. Some other stackmarks are then redundant; remove them.

Example:
  while :; do { :; } </dev/null; done

11 years agozfs/sparc64 boot: fix booting after r242230
avg [Sun, 20 Jan 2013 19:55:49 +0000 (19:55 +0000)]
zfs/sparc64 boot: fix booting after r242230

arch_zfs_probe method is supposed to only probe for ZFS vdevs, but it can
not expect that ZFS data is in a ready state yet.
So, move some code from sparc64_zfs_probe to main to meet the constraints.

Reported by: Chris Ross <cross+freebsd@distal.com>
Tested by: Chris Ross <cross+freebsd@distal.com>
MFC after: 4 days

11 years ago- Force inetd to have listen queue size to be set to the value of
zont [Sun, 20 Jan 2013 19:44:33 +0000 (19:44 +0000)]
- Force inetd to have listen queue size to be set to the value of
  kern.ipc.somaxconn instead of hardcoded value 64.

Submitted by: Andrey Ignatov <rdna@rdna.ru>
MFC after: 2 weeks

11 years agoBackward compatibility fix: treat cmds loaded as a script as nonInteractive
dteske [Sun, 20 Jan 2013 17:48:56 +0000 (17:48 +0000)]
Backward compatibility fix: treat cmds loaded as a script as nonInteractive

11 years agosh: Remove mkinit's initialization routine.
jilles [Sun, 20 Jan 2013 12:44:50 +0000 (12:44 +0000)]
sh: Remove mkinit's initialization routine.

Instead, call the only init function left directly from main().

11 years ago- Avoid unnecessary strdup()
gabor [Sun, 20 Jan 2013 11:58:49 +0000 (11:58 +0000)]
- Avoid unnecessary strdup()

Submitted by: ache
MFC after: 5 days

11 years agoFix minor nit in usage output.
joel [Sun, 20 Jan 2013 08:18:56 +0000 (08:18 +0000)]
Fix minor nit in usage output.

Reviewed by: neel

11 years agoLink the bhyve(4) man page to the build so the man page is actually installed.
neel [Sun, 20 Jan 2013 04:04:37 +0000 (04:04 +0000)]
Link the bhyve(4) man page to the build so the man page is actually installed.

Pointed out by: wxs@

11 years agoMake "Finish" the default choice in the partition editor. This lets you
nwhitehorn [Sun, 20 Jan 2013 03:55:08 +0000 (03:55 +0000)]
Make "Finish" the default choice in the partition editor. This lets you
successfully complete an installation with all defaults by pressing
Enter repeatedly until your machine reboots.

MFC after: 3 weeks

11 years agoUse <vmname> in a consistent manner in usage messages output by 'bhyve',
neel [Sun, 20 Jan 2013 03:47:13 +0000 (03:47 +0000)]
Use <vmname> in a consistent manner in usage messages output by 'bhyve',
'bhyveload' and 'bhyvectl'.

Pointed out by: joel@

11 years agoAdd svn properties to the recently merged bhyve source files.
neel [Sun, 20 Jan 2013 03:42:49 +0000 (03:42 +0000)]
Add svn properties to the recently merged bhyve source files.

The pre-commit hook will not allow any commits without the svn:keywords
property in head.

11 years agoLink against compiler-rt to pull in the required __aeabi_* functions
andrew [Sat, 19 Jan 2013 22:12:57 +0000 (22:12 +0000)]
Link against compiler-rt to pull in the required __aeabi_* functions

11 years agosh: Replace an mkinit use with an initialization.
jilles [Sat, 19 Jan 2013 22:12:08 +0000 (22:12 +0000)]
sh: Replace an mkinit use with an initialization.

11 years agoWhen DDB is enabled and we are building for the ARM EABI include the unwind
andrew [Sat, 19 Jan 2013 22:08:16 +0000 (22:08 +0000)]
When DDB is enabled and we are building for the ARM EABI include the unwind
tables in the kernel.

11 years agoUse correct GPIO interrupt lines.
kientzle [Sat, 19 Jan 2013 17:22:12 +0000 (17:22 +0000)]
Use correct GPIO interrupt lines.

11 years agoClarify the error messages for unrecognized pins and muxtypes.
kientzle [Sat, 19 Jan 2013 17:12:23 +0000 (17:12 +0000)]
Clarify the error messages for unrecognized pins and muxtypes.

11 years agoRemove EOL whitespace.
joel [Sat, 19 Jan 2013 07:07:05 +0000 (07:07 +0000)]
Remove EOL whitespace.

11 years agoMinor mdoc fixes.
joel [Sat, 19 Jan 2013 07:04:30 +0000 (07:04 +0000)]
Minor mdoc fixes.

11 years agoAdd the required __aeabi_* functions to libc.
andrew [Sat, 19 Jan 2013 05:33:55 +0000 (05:33 +0000)]
Add the required __aeabi_* functions to libc.

The floating point functions are here rather than compiler-rt because the
libc softfloat code allows us to set the rounding mode.

11 years agoWhen building for ARM EABI link against libgcc for the __aeabi_* functions.
andrew [Sat, 19 Jan 2013 04:34:33 +0000 (04:34 +0000)]
When building for ARM EABI link against libgcc for the __aeabi_* functions.

11 years agoMerge projects/bhyve to head.
neel [Sat, 19 Jan 2013 04:18:52 +0000 (04:18 +0000)]
Merge projects/bhyve to head.

'bhyve' was developed by grehan@ and myself at NetApp (thanks!).

Special thanks to Peter Snyder, Joe Caradonna and Michael Dexter for their
support and encouragement.

Obtained from: NetApp

11 years agoUse the compiler-rt version __{u,}divsi3 and __{u,}modsi3 on ARM EABI
andrew [Sat, 19 Jan 2013 04:11:45 +0000 (04:11 +0000)]
Use the compiler-rt version __{u,}divsi3 and __{u,}modsi3 on ARM EABI

11 years agoUpdate the syscall calling convention for ARM EABI. We store the syscall
andrew [Sat, 19 Jan 2013 04:03:18 +0000 (04:03 +0000)]
Update the syscall calling convention for ARM EABI. We store the syscall
in r7 and use ip to store the old version of r7 as it is not guaranteed to
be kept when calling a subroutine. The kernel will preserve the register
across system calls.

11 years agoThere should have been a tab after SRCS+=
andrew [Sat, 19 Jan 2013 03:47:18 +0000 (03:47 +0000)]
There should have been a tab after SRCS+=

11 years agonewfs_msdos: cosmetical cleanups
pfg [Sat, 19 Jan 2013 03:34:02 +0000 (03:34 +0000)]
newfs_msdos: cosmetical cleanups

- Simplify diagnostic messages.
- Adopt lowercase first letters to make the messages
  more canonical.

PR: bin/175404
Submitted by: Christoph Mallon
Reviewed by: bde
MFC after: 3 days

11 years agoDo not pretend to have autosense data when no such data is available.
kan [Sat, 19 Jan 2013 03:19:39 +0000 (03:19 +0000)]
Do not pretend to have autosense data when no such data is available.

Make umass return an error code if SCSI sense retrieval request
has failed. Make sure scsi_error_action honors SF_NO_RETRY and
SF_NO_RECOVERY in all cases, even if it cannot parse sense bytes.

Reviewed by: hselasky (umass), scottl (cam)

11 years agoFor ARM EABI we only need a subset of the quad functions, the rest are
andrew [Sat, 19 Jan 2013 02:33:57 +0000 (02:33 +0000)]
For ARM EABI we only need a subset of the quad functions, the rest are
provided by libgcc.

11 years agoAdd the __aeabi_*divmod functions to the compiler-rt build
andrew [Sat, 19 Jan 2013 02:28:44 +0000 (02:28 +0000)]
Add the __aeabi_*divmod functions to the compiler-rt build

11 years agoDon't use the pcs attribute on compilers that don't support it. We can
andrew [Sat, 19 Jan 2013 02:24:14 +0000 (02:24 +0000)]
Don't use the pcs attribute on compilers that don't support it. We can
revert this when we stop supporting old versions of gcc.

11 years agoAdd a newline at the end of the file to stop gcc from complaining
andrew [Sat, 19 Jan 2013 02:22:01 +0000 (02:22 +0000)]
Add a newline at the end of the file to stop gcc from complaining

11 years agoFix build with SMP disabled.`
jhb [Sat, 19 Jan 2013 01:18:22 +0000 (01:18 +0000)]
Fix build with SMP disabled.`

Reported by: bf

11 years agoEliminate the need for an intermediate array of indices into the arrays of
ian [Sat, 19 Jan 2013 00:50:12 +0000 (00:50 +0000)]
Eliminate the need for an intermediate array of indices into the arrays of
interrupt counts and names, by making the names into an array of fixed-length
strings that can be directly indexed.  This eliminates extra memory accesses
on every interrupt to increment the counts.

As a side effect, it also fixes a bug that would corrupt the names data
if a name was longer than MAXCOMLEN, which led to incorrect vmstat -i output.

Approved by: cognet (mentor)

11 years agoWork around build breakage with GCC 4.2.
jkim [Sat, 19 Jan 2013 00:37:17 +0000 (00:37 +0000)]
Work around build breakage with GCC 4.2.

11 years ago- Move 'showthreads' check out of fmt.c.
jhb [Sat, 19 Jan 2013 00:21:55 +0000 (00:21 +0000)]
- Move 'showthreads' check out of fmt.c.
- Update shadow copy of fmt_argv() prototype in w.c and fix calls for
  additional parameter.

11 years agoSet showthread = 0 for w(1).
delphij [Fri, 18 Jan 2013 23:54:27 +0000 (23:54 +0000)]
Set showthread = 0 for w(1).

X-MFC: together with r245610

11 years agolibthr: Always use the threaded rtld lock implementation.
jilles [Fri, 18 Jan 2013 23:08:40 +0000 (23:08 +0000)]
libthr: Always use the threaded rtld lock implementation.

The threaded rtld lock implementation is faster even in the single-threaded
case because it postpones signal handlers via THR_CRITICAL_ENTER and
THR_CRITICAL_LEAVE instead of calling sigprocmask(2).

As a result, exception handling becomes faster in single-threaded
applications linked with libthr.

Reviewed by: kib

11 years agoImport compiler-rt r172839.
andrew [Fri, 18 Jan 2013 22:52:59 +0000 (22:52 +0000)]
Import compiler-rt r172839.

This brings in __aeabi_lcmp and __aeabi_ulcmp. It also fixes the spelling
of __aeabi_f2lz. Both changes originated on the arm_eabi project branch.

11 years agoRemove a harmless (somewhat to my surprise) bogon that crept into r245440.
brooks [Fri, 18 Jan 2013 22:17:21 +0000 (22:17 +0000)]
Remove a harmless (somewhat to my surprise) bogon that crept into r245440.

11 years agoIntroduce six new options from NetBSD:
brooks [Fri, 18 Jan 2013 20:57:50 +0000 (20:57 +0000)]
Introduce six new options from NetBSD:
 * -M <metalog>   Log metadata in mtree format.
 * -D <destdir>   Log paths relative to <destdir>.
 * -h <hash>      Log digest of type <hash>.
 * -T <tags>      Specify which mtree tags to log.
 * -l <linkflag>  Create hard or symbolic links (allows logging).
 * -U             Install without root privileges (owner, group, mode,
                  and flags can be logged via -M

NOTE: In the interest of compatibility with NetBSD and because it is the
obvious letter, the nearly useless -M option (disable mmap) has been
repurposed.

Sponsored by: DARPA, AFRL
Obtained from: NetBSD
Reviewed by: bz

11 years agoMake it possible to force async at server side on new NFS server, similar
delphij [Fri, 18 Jan 2013 19:42:08 +0000 (19:42 +0000)]
Make it possible to force async at server side on new NFS server, similar
to the old one's nfs.nfsrv.async.

Please note that by enabling this option (default is disabled), the system
could potentionally have silent data corruption if the server crashes
before write is committed to non-volatile storage, as the client side have
no way to tell if the data is already written.

Submitted by: rmacklem
MFC after: 2 weeks

11 years agoext2fs: Add some DOINGASYNC check to match ffs.
pfg [Fri, 18 Jan 2013 19:11:17 +0000 (19:11 +0000)]
ext2fs: Add some DOINGASYNC check to match ffs.

This is mostly cosmetical.

Reviewed by: bde
MFC after: 3 days

11 years agoUse vfs_timestamp() to set file timestamps rather than invoking
jhb [Fri, 18 Jan 2013 18:43:38 +0000 (18:43 +0000)]
Use vfs_timestamp() to set file timestamps rather than invoking
getmicrotime() or getnanotime() directly in NFS.

Reviewed by: rmacklem, bde
MFC after: 1 week

11 years agoInclude the thread name along with the command name when displaying the
jhb [Fri, 18 Jan 2013 18:24:40 +0000 (18:24 +0000)]
Include the thread name along with the command name when displaying the
command name of a thread from a multi-threaded process that doesn't have
an available argument list (such as kernel processes) and threads display
is enabled via -H.

Reviewed by: alfred, delphij, eric@vangyzen.net
MFC after: 1 week

11 years agoAdd option to make pc-sysinstall optional
eadler [Fri, 18 Jan 2013 15:57:09 +0000 (15:57 +0000)]
Add option to make pc-sysinstall optional

Approved by: cperciva

11 years agoSpelling: exitting -> exiting
alfred [Fri, 18 Jan 2013 02:36:06 +0000 (02:36 +0000)]
Spelling: exitting -> exiting

MFC after: 2 weeks

11 years agoMerge ACPICA 20130117.
jkim [Thu, 17 Jan 2013 23:56:43 +0000 (23:56 +0000)]
Merge ACPICA 20130117.

11 years agoremove the old memory allocator, not useful anymore
luigi [Thu, 17 Jan 2013 23:14:17 +0000 (23:14 +0000)]
remove the old memory allocator, not useful anymore

11 years agoIn r245571, "rm -rf <foo>; ln -s <bar> <foo>" needed to be replaced with
brooks [Thu, 17 Jan 2013 23:05:03 +0000 (23:05 +0000)]
In r245571, "rm -rf <foo>; ln -s <bar> <foo>" needed to be replaced with
"ln -sfh <bar> <foo>" or the links would fail when a valid link to a
directly was in place at <foo>.

Reported by: peter
Tested by: peter
Pointy hat to: brooks

11 years agoadd some definition and driver changes in preparation for
luigi [Thu, 17 Jan 2013 22:14:58 +0000 (22:14 +0000)]
add some definition and driver changes in preparation for
two upcoming features:

semi-transparent mode:
    when a device is opened in this mode, the
    user program will be able to mark slots that must be forwarded
    to the "other" side (i.e. from NIC to host stack, or viceversa),
    and the forwarding will occur automatically at the next netmap syscall.
    This saves the need to open another file descriptor and do
    the forwarding manually.

direct-forwarding mode:
    when operating with a VALE port, the user can specify in the slot
    the actual destination port, overriding the forwarding decision
    made by a lookup of the destination MAC. This can be useful to
    implement packet dispatchers.

No API changes will be introduced.
No new functionality in this patch yet.

11 years agoDon't attempt to use clflush on the local APIC register window. Various
jhb [Thu, 17 Jan 2013 21:32:25 +0000 (21:32 +0000)]
Don't attempt to use clflush on the local APIC register window.  Various
CPUs exhibit bad behavior if this is done (Intel Errata AAJ3, hangs on
Pentium-M, and trashing of the local APIC registers on a VIA C7).  The
local APIC is implicitly mapped UC already via MTRRs, so the clflush isn't
necessary anyway.

MFC after: 2 weeks

11 years agoMove the mbuf memory limit calculations from init_param2() to
andre [Thu, 17 Jan 2013 21:28:31 +0000 (21:28 +0000)]
Move the mbuf memory limit calculations from init_param2() to
tunable_mbinit() where it is next to where it is used later.

Change the sysinit level of tunable_mbinit() from SI_SUB_TUNABLES
to SI_SUB_KMEM after the VM is running.  This allows to use better
methods to determine the effectively available physical and virtual
memory available to the kernel.

Update comments.

In a second step it can be merged into mbuf_init().

11 years agoImplement the zonename token for jailed processes. If
csjp [Thu, 17 Jan 2013 21:02:53 +0000 (21:02 +0000)]
Implement the zonename token for jailed processes.  If
a process has an auditid/preselection masks specified, and
is jailed, include the zonename (jailname) token as a
part of the audit record.

Reviewed by: pjd
MFC after: 2 weeks

11 years agoIn preparation for logging metadata about each filesystem object
brooks [Thu, 17 Jan 2013 20:21:30 +0000 (20:21 +0000)]
In preparation for logging metadata about each filesystem object
refactor the link section of distrib-dirs to alwasy install to a full
path (the link contents remain relative as they should).

Eliminate the use of the "rm -r[f] <foo>; ln -s <bar> <foo>" pattern in
favor of "ln -sf <bar> <foo>".  None of these links could be directories
on a system installed in the last decade.

Sponsored by: DARPA, AFRL
Reviewed by: mtree

11 years agoremove an incorrect comment and debugging code
luigi [Thu, 17 Jan 2013 19:27:12 +0000 (19:27 +0000)]
remove an incorrect comment and debugging code

11 years agoIFC @ r245542
neel [Thu, 17 Jan 2013 19:08:20 +0000 (19:08 +0000)]
IFC @ r245542

11 years agoRemove the unused nfs_curusec().
jhb [Thu, 17 Jan 2013 19:03:24 +0000 (19:03 +0000)]
Remove the unused nfs_curusec().