]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
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

13 years agosh(1): Document r214304 (special builtin is illegal function name).
jilles [Fri, 12 Nov 2010 22:40:18 +0000 (22:40 +0000)]
sh(1): Document r214304 (special builtin is illegal function name).

13 years agosh(1): Update for r214492. "${v+"hi}there"}".
jilles [Fri, 12 Nov 2010 22:28:47 +0000 (22:28 +0000)]
sh(1): Update for r214492. "${v+"hi}there"}".

The part hi}there is not a quoted string but nevertheless the closing brace
does not terminate the expansion.

13 years agoAdd a queue to hold packets while we await an ARP reply.
gnn [Fri, 12 Nov 2010 22:03:02 +0000 (22:03 +0000)]
Add a queue to hold packets while we await an ARP reply.

When a fast machine first brings up some non TCP networking program
it is quite possible that we will drop packets due to the fact that
only one packet can be held per ARP entry.  This leads to packets
being missed when a program starts or restarts if the ARP data is
not currently in the ARP cache.

This code adds a new sysctl, net.link.ether.inet.maxhold, which defines
a system wide maximum number of packets to be held in each ARP entry.
Up to maxhold packets are queued until an ARP reply is received or
the ARP times out.  The default setting is the old value of 1
which has been part of the BSD networking code since time
immemorial.

Expose the time we hold an incomplete ARP entry by adding
the sysctl net.link.ether.inet.wait, which defaults to 20
seconds, the value used when the new ARP code was added..

Reviewed by: bz, rpaulo
MFC after: 3 weeks

13 years agoWarn users that acpi.ko is deprecated and exit immediately unless the user
jkim [Fri, 12 Nov 2010 21:11:49 +0000 (21:11 +0000)]
Warn users that acpi.ko is deprecated and exit immediately unless the user
set FORCE_BUILD.  This is to avoid foot-shooting while making MFC to stable
branches easier.

Discussed with: jhb

13 years agoMFamd64: (based on) r209957
jkim [Fri, 12 Nov 2010 20:55:14 +0000 (20:55 +0000)]
MFamd64: (based on) r209957

Move logic of building ACPI headers for acpi_wakeup.c into better places,
remove intermediate makefile and shell script, and reduce diff between i386
and amd64.

13 years agoDon't print an empty line when printing mapping arrays.
tuexen [Fri, 12 Nov 2010 20:46:33 +0000 (20:46 +0000)]
Don't print an empty line when printing mapping arrays.

MFC after: 3 days.

13 years agoFix more issues with the SACK/NR-SACK generation code.
tuexen [Fri, 12 Nov 2010 20:45:21 +0000 (20:45 +0000)]
Fix more issues with the SACK/NR-SACK generation code.

MFC after: 3 days.

13 years agoPartially revert r215182. There appears to be a silicon bug on the 970
nwhitehorn [Fri, 12 Nov 2010 20:26:34 +0000 (20:26 +0000)]
Partially revert r215182. There appears to be a silicon bug on the 970
that causes AP bringup to fail if some of the Cell HID-register code
is anywhere in the instruction stream. Pending a better solution, cache
performance on SMP Cell systems running without a hypervisor will be
suboptimal.

13 years agoAdd firmware downloader for Atheros AR3011 based USB Bluetooth devices.
emax [Fri, 12 Nov 2010 19:43:12 +0000 (19:43 +0000)]
Add firmware downloader for Atheros AR3011 based USB Bluetooth devices.

Hardware donated by: Rusty Nejdl rnejdl at ringofsaturn dot com
Tested by: Rusty Nejdl rnejdl at ringofsaturn dot com
Tested by: Andrzej Tobola ato at iem dot pw dot edu dot pl
MFC after: 3 weeks

13 years agoFix regression introduced in r215132. Caller always holds a driver
yongari [Fri, 12 Nov 2010 19:33:13 +0000 (19:33 +0000)]
Fix regression introduced in r215132. Caller always holds a driver
lock before accessing mii, so locking is not needed here.

Reported by: Rob Farmer (rfarmer <> predatorlabs dot net)

13 years agoCreate C1 state when _CST is valid but _CST does not have one. Some BIOSes
jkim [Fri, 12 Nov 2010 17:10:12 +0000 (17:10 +0000)]
Create C1 state when _CST is valid but _CST does not have one.  Some BIOSes
do not report C1 state in _CST object, probably because it is a mandatory
state with or without existence of the optional _CST.

Reviewed by: avg

13 years agoUpdate xz to release 5.0.0
mm [Fri, 12 Nov 2010 16:53:17 +0000 (16:53 +0000)]
Update xz to release 5.0.0

Approved by: delphij (mentor)
MFC after: 1 week

13 years agoAdd 'jid' as a possible sort order to the help screen.
pluknet [Fri, 12 Nov 2010 16:50:11 +0000 (16:50 +0000)]
Add 'jid' as a possible sort order to the help screen.

PR: bin/150992
Submitted by: Frederic Culot <frederic at culot dot org>
Approved by: avg (mentor)
MFC after: 5 days

13 years agoRevert to libgcc for sparc64.
ed [Fri, 12 Nov 2010 15:52:27 +0000 (15:52 +0000)]
Revert to libgcc for sparc64.

I've had a report of a sparc64 system where cc1 generates illegal
instructions. We still have to diagnose this properly, but instead of
hosing all sparc64 boxes out there, fall back to libgcc to prevent more
damage.

Reported by: Florian Smeets

13 years agosh: Remove unused man page for echo builtin.
jilles [Fri, 12 Nov 2010 15:40:00 +0000 (15:40 +0000)]
sh: Remove unused man page for echo builtin.

The information in sh(1) about the echo builtin is equivalent, though less
extensive.

The echo(1) man page (bin/echo/echo.1) is different.

Unfortunately, sh's echo builtin and /bin/echo have gone out of sync and
this probably cannot be fixed any more.

Reported by: uqs (list of untouched files)
MFC after: 1 week

13 years agoMake POLL_ERR and POLL_HUP different.
jilles [Fri, 12 Nov 2010 15:30:49 +0000 (15:30 +0000)]
Make POLL_ERR and POLL_HUP different.

The kernel currently does not generate any of the POLL_* constants, but
some applications use them and break if they are not all distinct.

PR: kern/126076
MFC after: 1 week

13 years agoAdd CPU support code for the IBM Cell Broadband Engine.
nwhitehorn [Fri, 12 Nov 2010 15:20:10 +0000 (15:20 +0000)]
Add CPU support code for the IBM Cell Broadband Engine.

13 years agosh(1): Modernize the introduction a bit.
jilles [Fri, 12 Nov 2010 14:40:20 +0000 (14:40 +0000)]
sh(1): Modernize the introduction a bit.

In particular, remove the text about ksh-like features, which are usually
taken for granted nowadays. The original Bourne shell is fading away and for
most users our /bin/sh is one of the most minimalistic they know.

13 years agoThe first customer of the SO_USER_COOKIE option:
luigi [Fri, 12 Nov 2010 13:05:17 +0000 (13:05 +0000)]
The first customer of the SO_USER_COOKIE option:
the "sockarg" ipfw option matches packets associated to
a local socket and with a non-zero so_user_cookie value.
The value is made available as tablearg, so it can be used
as a skipto target or pipe number in ipfw/dummynet rules.

Code by Paul Joe, manpage by me.

Submitted by: Paul Joe
MFC after: 1 week

13 years agoThis commit implements the SO_USER_COOKIE socket option, which lets
luigi [Fri, 12 Nov 2010 13:02:26 +0000 (13:02 +0000)]
This commit implements the SO_USER_COOKIE socket option, which lets
you tag a socket with an uint32_t value. The cookie can then be
used by the kernel for various purposes, e.g. setting the skipto
rule or pipe number in ipfw (this is the reason SO_USER_COOKIE has
been implemented; however there is nothing ipfw-specific in its
implementation).

The ipfw-related code that uses the optopn will be committed separately.

This change adds a field to 'struct socket', but the struct is not
part of any driver or userland-visible ABI so the change should be
harmless.

See the discussion at
http://lists.freebsd.org/pipermail/freebsd-ipfw/2009-October/004001.html

Idea and code from Paul Joe, small modifications and manpage
changes by myself.

Submitted by: Paul Joe
MFC after: 1 week

13 years agomove the initialization of BINMAKE earler, so it is
luigi [Fri, 12 Nov 2010 12:48:41 +0000 (12:48 +0000)]
move the initialization of BINMAKE earler, so it is
available throughout the entire build process.

Submitted by: Matteo Landi
MFC after: 3 days

13 years agoStop documenting vgonel() after its converting to the static function:
pluknet [Fri, 12 Nov 2010 12:07:36 +0000 (12:07 +0000)]
Stop documenting vgonel() after its converting to the static function:
 svn r147332 (by jeff): "Don't make vgonel() globally visible".
While here, specify the vnode locking scheme for vgone().

Discussed on: freebsd-hackers@
Approved by: kib (mentor)
MFC after: 10 days

13 years agoThis commit marks the first formal contribution of the "Five New TCP Congestion
lstewart [Fri, 12 Nov 2010 06:41:55 +0000 (06:41 +0000)]
This commit marks the first formal contribution of the "Five New TCP Congestion
Control Algorithms for FreeBSD" FreeBSD Foundation funded project. More details
about the project are available at: http://caia.swin.edu.au/freebsd/5cc/

- Add a KPI and supporting infrastructure to allow modular congestion control
  algorithms to be used in the net stack. Algorithms can maintain per-connection
  state if required, and connections maintain their own algorithm pointer, which
  allows different connections to concurrently use different algorithms. The
  TCP_CONGESTION socket option can be used with getsockopt()/setsockopt() to
  programmatically query or change the congestion control algorithm respectively
  from within an application at runtime.

- Integrate the framework with the TCP stack in as least intrusive a manner as
  possible. Care was also taken to develop the framework in a way that should
  allow integration with other congestion aware transport protocols (e.g. SCTP)
  in the future. The hope is that we will one day be able to share a single set
  of congestion control algorithm modules between all congestion aware transport
  protocols.

- Introduce a new congestion recovery (TF_CONGRECOVERY) state into the TCP stack
  and use it to decouple the meaning of recovery from a congestion event and
  recovery from packet loss (TF_FASTRECOVERY) a la RFC2581. ECN and delay based
  congestion control protocols don't generally need to recover from packet loss
  and need a different way to note a congestion recovery episode within the
  stack.

- Remove the net.inet.tcp.newreno sysctl, which simplifies some portions of code
  and ensures the stack always uses the appropriate mechanisms for recovering
  from packet loss during a congestion recovery episode.

- Extract the NewReno congestion control algorithm from the TCP stack and
  massage it into module form. NewReno is always built into the kernel and will
  remain the default algorithm for the forseeable future. Implementations of
  additional different algorithms will become available in the near future.

- Bump __FreeBSD_version to 900025 and note in UPDATING that rebuilding code
  that relies on the size of "struct tcpcb" is required.

Many thanks go to the Cisco University Research Program Fund at Community
Foundation Silicon Valley and the FreeBSD Foundation. Their support of our work
at the Centre for Advanced Internet Architectures, Swinburne University of
Technology is greatly appreciated.

In collaboration with: David Hayes <dahayes at swin edu au> and
Grenville Armitage <garmitage at swin edu au>
Sponsored by: Cisco URP, FreeBSD Foundation
Reviewed by: rpaulo
Tested by: David Hayes (and many others over the years)
MFC after: 3 months

13 years agoRemove use of a separate ofw_pmap on 32-bit CPUs. Many Open Firmware
nwhitehorn [Fri, 12 Nov 2010 05:12:38 +0000 (05:12 +0000)]
Remove use of a separate ofw_pmap on 32-bit CPUs. Many Open Firmware
mappings need to end up in the kernel anyway since the kernel begins
executing in OF context. Separating them adds needless complexity,
especially since the powerpc64 and mmu_oea64 code gave up on it a long
time ago.

As a side effect, the PPC ofw_machdep code is no longer AIM-specific,
so move it to powerpc/ofw.

13 years agoRemove or conditionalize some hypervisor-unfriendly instruction sequences.
nwhitehorn [Fri, 12 Nov 2010 04:22:00 +0000 (04:22 +0000)]
Remove or conditionalize some hypervisor-unfriendly instruction sequences.

13 years agoAdd some platform KOBJ extensions and continue integrating PowerPC
nwhitehorn [Fri, 12 Nov 2010 04:18:19 +0000 (04:18 +0000)]
Add some platform KOBJ extensions and continue integrating PowerPC
hypervisor infrastructure support:
- Fix coexistence of multiple platform modules in the same kernel
- Allow platform modules to provide an SMP topology
- PowerPC hypervisors limit the amount of memory accessible in real mode.
  Allow the platform modules to specify the maximum real-mode address,
  and modify the bits of the kernel that need to allocate
  real-mode-accessible buffers to respect this limits.

13 years agoFix an error in r215067. An existing /chosen/mmu but missing translations
nwhitehorn [Fri, 12 Nov 2010 04:13:48 +0000 (04:13 +0000)]
Fix an error in r215067. An existing /chosen/mmu but missing translations
property just means we shouldn't add any translations, not that we should
panic.

13 years agoCentralize CPU idle routines into powerpc/cpu.c and use the same
nwhitehorn [Fri, 12 Nov 2010 03:43:22 +0000 (03:43 +0000)]
Centralize CPU idle routines into powerpc/cpu.c and use the same
cpu_idle_hook mechanism that x86 uses for overriding the idle routine.
This is required for supporting ilding the CPU under PowerPC hypervisors.

13 years agoThe first releases SIFTR will ship in will be 7.4 and 8.2.
lstewart [Fri, 12 Nov 2010 01:40:29 +0000 (01:40 +0000)]
The first releases SIFTR will ship in will be 7.4 and 8.2.

MFC after: 3 days

13 years agoStandardise all Swinburne related copyright/licence statements throughout the
lstewart [Fri, 12 Nov 2010 00:44:18 +0000 (00:44 +0000)]
Standardise all Swinburne related copyright/licence statements throughout the
tree in preparation for another large code import. Swinburne University is the
legal entity that owns copyright and the 2-clause BSD licence is acceptable.

13 years agoThe university does not require that its CRICOS number be included in source
lstewart [Fri, 12 Nov 2010 00:19:42 +0000 (00:19 +0000)]
The university does not require that its CRICOS number be included in source
code. Remove all references from the tree.

MFC after: 3 days

13 years agoGarbage collect gnu/usr.bin/binutils/{gasp,gdb,gdbreplay}, as these have
dim [Thu, 11 Nov 2010 23:45:19 +0000 (23:45 +0000)]
Garbage collect gnu/usr.bin/binutils/{gasp,gdb,gdbreplay}, as these have
not been connected to the build for more than 6 years.

Obtained from: projects/binutils-2.17

13 years agoDo not build or install gasp.info anymore, as gasp has not been built or
dim [Thu, 11 Nov 2010 23:41:36 +0000 (23:41 +0000)]
Do not build or install gasp.info anymore, as gasp has not been built or
installed for more than 6 years.

Obtained from: projects/binutils-2.17

13 years agoFix typo, and re-wrap paragraph.
dim [Thu, 11 Nov 2010 23:00:37 +0000 (23:00 +0000)]
Fix typo, and re-wrap paragraph.

13 years agoUse -fPIC to build libexec/rtld-elf on sparc64, so it will also be able
dim [Thu, 11 Nov 2010 22:53:55 +0000 (22:53 +0000)]
Use -fPIC to build libexec/rtld-elf on sparc64, so it will also be able
to link with newer binutils, without overflowing the GOT.

Obtained from: projects/binutils-2.17

13 years agoMake sure to specify the alignment of minbrk and curbrk. They were correctly
dim [Thu, 11 Nov 2010 22:35:42 +0000 (22:35 +0000)]
Make sure to specify the alignment of minbrk and curbrk. They were correctly
aligned by accident with earlier binutils, but no longer are, causing link
failures.

Submitted by: nwhitehorn
Obtained from: projects/binutils-2.17

13 years agoVendor import of xz (stripped)
mm [Thu, 11 Nov 2010 22:21:30 +0000 (22:21 +0000)]
Vendor import of xz (stripped)
Git revision: e45929260cd902036efd40c5610a8d0a50d5712b
Release: 5.0.0

Approved by: delphij (mentor)

13 years agoFix style.
trasz [Thu, 11 Nov 2010 21:53:46 +0000 (21:53 +0000)]
Fix style.

Submitted by: bde

13 years agoRemove some unneeded spaces from the __sym_compat() macro, since newer
dim [Thu, 11 Nov 2010 21:36:52 +0000 (21:36 +0000)]
Remove some unneeded spaces from the __sym_compat() macro, since newer
versions of gas are more fussy about spaces surrounding '@' signs in
versioned symbol names.

13 years agoAdd a GPIO driver for the Gateworks Cambria platform.
thompsa [Thu, 11 Nov 2010 20:18:33 +0000 (20:18 +0000)]
Add a GPIO driver for the Gateworks Cambria platform.

The external gpio pins are connected to a PLD on the i2c bus, unfortunatley
this device does not conform by failing to send an ack after each byte written.
The iicbb driver will abort the transfer when the address is not ack'd and it
would introduce a lot of churn to be able to pass a flag down to
iicbb_start/iicbb_write. Instead we do bad things by grabbing the iicbus but
then doing our own bit banging.

13 years agoMove identical copies of apm_bios.h to sys/x86/include, replace them with
jkim [Thu, 11 Nov 2010 19:36:21 +0000 (19:36 +0000)]
Move identical copies of apm_bios.h to sys/x86/include, replace them with
stubs, and adjust PC98 stub accordingly.

Reviewed by: imp, nyan

13 years agoAdd compat shim for apm(4) to translate APM BIOS function numbers from i386
jkim [Thu, 11 Nov 2010 19:20:33 +0000 (19:20 +0000)]
Add compat shim for apm(4) to translate APM BIOS function numbers from i386
to PC98-specific ones.  Any binaries using apm ioctl(4) commands but built
for i386 should also work on PC98 now.

Reviewed by: imp, nyan

13 years agoUse the same treatment as in linker_set.h for the __start and __stop
dim [Thu, 11 Nov 2010 19:18:52 +0000 (19:18 +0000)]
Use the same treatment as in linker_set.h for the __start and __stop
symbols of the set_vnet and set_pcpu sections, so those symbols will
always be emitted in kernel modules, if they use vnet.h or pcpu.h.

Also, for pcpu.h, make the __(start|stop)_set_pcpu declarations, and
associated macros invisible to userland, to prevent it picking up these
symbols.

Reviewed by: kib

13 years agoRevert r103230, which depended on ld preserving the __start_xxx and
dim [Thu, 11 Nov 2010 19:17:59 +0000 (19:17 +0000)]
Revert r103230, which depended on ld preserving the __start_xxx and
__stop_xxx symbols for custom sections, even when these were not
referenced (at link time).  This behaviour was changed again in binutils
commit 0b8ed435c3fe8bd09a08c23920e65bfb03251221.

This time, put the __GLOBL macro definition in cdefs.h, so it can be
reused in a few other places where it will be needed.

Reviewed by: kib

13 years agoBump .Dd due to additions in r214279.
brucec [Thu, 11 Nov 2010 19:13:16 +0000 (19:13 +0000)]
Bump .Dd due to additions in r214279.

MFC after: 3 days

13 years agoAccording to specs for MmAllocateContiguousMemorySpecifyCache() physically
bschmidt [Thu, 11 Nov 2010 18:43:31 +0000 (18:43 +0000)]
According to specs for MmAllocateContiguousMemorySpecifyCache() physically
contiguous memory with requested restrictions must be allocated.

Submitted by: Paul B Mahol <onemda at gmail.com>