]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agomdoc: remove EOL whitespace.
joel [Fri, 6 Dec 2013 21:22:33 +0000 (21:22 +0000)]
mdoc: remove EOL whitespace.

10 years agoAlthough not strictly required to boot a 64MB board, bump
imp [Fri, 6 Dec 2013 18:41:16 +0000 (18:41 +0000)]
Although not strictly required to boot a 64MB board, bump
vm_max_virtual_address to be KERNVIRTADDR + 256MB. This allows some
future shock protection since the KVA requirements have gone up since
the unmapped changes have gone in, as well as preventing us from
overlapping with the hardware devices, which we map at 0xd0000000,
which we'd hit with anything more than 85MB...

MFC after: 3 days

10 years agoFix the pin value reading on AM335x. Because of the inverted logic it was
loos [Fri, 6 Dec 2013 18:09:10 +0000 (18:09 +0000)]
Fix the pin value reading on AM335x.  Because of the inverted logic it was
always returning '0' for all the reads, even for the outputs.  It is now
known to work with gpioiic(4) and gpioled(4).

Approved by: adrian (mentor)
Tested on: BBB

10 years agoMove the GPIOBUS_SET_PINFLAGS(..., ..., pin, GPIO_PIN_OUTPUT) to led(4)
loos [Fri, 6 Dec 2013 17:56:20 +0000 (17:56 +0000)]
Move the GPIOBUS_SET_PINFLAGS(..., ..., pin, GPIO_PIN_OUTPUT) to led(4)
control callback function.  This makes gpioled(4) works even if the pin
is accidentally set to an input.

Approved by: adrian (mentor)

10 years agoRemove unnecessary includes and an unused softc variable. While here apply
loos [Fri, 6 Dec 2013 17:49:34 +0000 (17:49 +0000)]
Remove unnecessary includes and an unused softc variable.  While here apply
two minor style(9) fixes.

Approved by: adrian (mentor)

10 years agoMake the sysctl node read-only.
loos [Fri, 6 Dec 2013 17:45:14 +0000 (17:45 +0000)]
Make the sysctl node read-only.

Approved by: adrian (mentor)

10 years agoRegen.
kevlo [Fri, 6 Dec 2013 15:27:42 +0000 (15:27 +0000)]
Regen.

10 years agoAdd support for the MediaTek/Ralink RT5572 chipset.
kevlo [Fri, 6 Dec 2013 15:26:39 +0000 (15:26 +0000)]
Add support for the MediaTek/Ralink RT5572 chipset.
Committed over the TP-LINK TL-WDN3200 (RT5572) on amd64 with WPA.

While here, add my copyright.

10 years agoReplace the magic numbers with something more readable.
kevlo [Fri, 6 Dec 2013 15:17:28 +0000 (15:17 +0000)]
Replace the magic numbers with something more readable.

10 years agoCosmetic changes.
kevlo [Fri, 6 Dec 2013 15:15:58 +0000 (15:15 +0000)]
Cosmetic changes.

10 years agoRemove daft KASSERT.
kevlo [Fri, 6 Dec 2013 15:14:18 +0000 (15:14 +0000)]
Remove daft KASSERT.

10 years agoImprove the XHCI command timeout recovery handling code.
hselasky [Fri, 6 Dec 2013 08:42:41 +0000 (08:42 +0000)]
Improve the XHCI command timeout recovery handling code.

MFC after: 1 week

10 years agogcc: Include types in error message for build_binary_op.
pfg [Fri, 6 Dec 2013 02:19:58 +0000 (02:19 +0000)]
gcc: Include types in error message for build_binary_op.

Mostly cosmetic change, again to reduce differences with Apple's gcc.

Obtained from: gcc 4.3 (rev. 125239; GPLv2)
MFC after: 3 weeks

10 years agoAdd VT(9) font tools.
ray [Thu, 5 Dec 2013 22:58:05 +0000 (22:58 +0000)]
Add VT(9) font tools.
Reviewed by: nwhitehorn
MFC_to_10_after: re approval

Sponsored by: The FreeBSD Foundation

10 years agoInstall teken.h for userland.
ray [Thu, 5 Dec 2013 22:56:37 +0000 (22:56 +0000)]
Install teken.h for userland.
Part of VT(9) project merge.
Reviewed by: nwhitehorn
MFC_to_10_after: re approval

Sponsored by: The FreeBSD Foundation

10 years agotest: Avoid looking up again the type of a known binary operator.
jilles [Thu, 5 Dec 2013 22:53:32 +0000 (22:53 +0000)]
test: Avoid looking up again the type of a known binary operator.

10 years agoMerge VT(9) project (a.k.a. newcons).
ray [Thu, 5 Dec 2013 22:38:53 +0000 (22:38 +0000)]
Merge VT(9) project (a.k.a. newcons).

Reviewed by: nwhitehorn
MFC_to_10_after: re approval

Sponsored by: The FreeBSD Foundation

10 years agoFix a typo.
jhb [Thu, 5 Dec 2013 21:58:02 +0000 (21:58 +0000)]
Fix a typo.

10 years agoThere is no sysctl with the MIB { CTL_KERN, KERN_MAXID }.
jhb [Thu, 5 Dec 2013 21:55:10 +0000 (21:55 +0000)]
There is no sysctl with the MIB { CTL_KERN, KERN_MAXID }.

MFC after: 2 weeks

10 years agoFix the processor table entry structure to use a fixed-width type for
jhb [Thu, 5 Dec 2013 21:51:54 +0000 (21:51 +0000)]
Fix the processor table entry structure to use a fixed-width type for
32-bit fields so it is the correct size on amd64.  Remove a workaround
for the broken structure from bhyve(8).

MFC after: 1 week

10 years agoFix debug printfs in FPU_EMU to compile on powerpc64 and enable it for
jhb [Thu, 5 Dec 2013 21:49:14 +0000 (21:49 +0000)]
Fix debug printfs in FPU_EMU to compile on powerpc64 and enable it for
powerpc64.  This fixes the LINT64 kernel config.

Approved by: nwhitehorn (the idea, not the actual patch)

10 years agoDo some cosmetic fixes.
andreast [Thu, 5 Dec 2013 21:35:52 +0000 (21:35 +0000)]
Do some cosmetic fixes.

10 years agoIncrease PHYS_AVAIL_SZ because on pSeries machines we can have many logical
andreast [Thu, 5 Dec 2013 21:34:33 +0000 (21:34 +0000)]
Increase PHYS_AVAIL_SZ because on pSeries machines we can have many logical
regions which represent the total amount of memory. The size of these regions
is not the physical size of the chip but it is a logical one and it is given
by the OpenFirmware, it is selectable at boot time and varies between 16MB and
256MB in my case. There is an 'automatic' option which would select the size as
64MB in case you have around 16GB of RAM.
To make sure we can allocate RAM with the automatic option bump this value
of PHYS_AVAIL_SZ to 256.

10 years agoIn case we have many continous regions without gaps we have to make soure that
andreast [Thu, 5 Dec 2013 21:25:56 +0000 (21:25 +0000)]
In case we have many continous regions without gaps we have to make soure that
we collapse them into one region. The previous version missed to go back one
step and do it again.

10 years agogcc: Add -flax-vector-conversions
pfg [Thu, 5 Dec 2013 21:22:51 +0000 (21:22 +0000)]
gcc: Add -flax-vector-conversions

Obtained from: gcc 4.3 (rev. 120572, 120688; GPLv2)

10 years agoInitialize modesetting sysctls in radeonkms.
rmh [Thu, 5 Dec 2013 20:23:32 +0000 (20:23 +0000)]
Initialize modesetting sysctls in radeonkms.

This is intended for MFC if re@ permits.

Reviewed by: kib, dumbbell
Tested by: Steven Chamberlain <steven@pyro.eu.org>
MFC after: 3 days

10 years agoFix external compiler warning about write-only assigned variable.
hselasky [Thu, 5 Dec 2013 07:18:06 +0000 (07:18 +0000)]
Fix external compiler warning about write-only assigned variable.

10 years agoMake panic_reboot_wait_time static.
cperciva [Thu, 5 Dec 2013 03:01:41 +0000 (03:01 +0000)]
Make panic_reboot_wait_time static.

Submitted by: jhb

10 years agoAdd -F to flush output after each write. With this, I can
trhodes [Thu, 5 Dec 2013 01:44:24 +0000 (01:44 +0000)]
Add -F to flush output after each write.  With this, I can
set up a pipe and allow a jr user to watch what I'm doing
by running 'script -F pipefile' on it.

While here, spell out the month in the .Dd tag like other
manual pages.

10 years agoMFC @r258947.
ray [Thu, 5 Dec 2013 00:57:53 +0000 (00:57 +0000)]
MFC @r258947.

Sponsored by: The FreeBSD Foundation

10 years agoEnable Hyper-V support in i386 GENERIC.
delphij [Thu, 5 Dec 2013 00:56:50 +0000 (00:56 +0000)]
Enable Hyper-V support in i386 GENERIC.

MFC after: 2 weeks

10 years agoEnsure WITH_DVD is not empty to prevent 'WITH_DVD= ' from evaluating
gjb [Thu, 5 Dec 2013 00:56:03 +0000 (00:56 +0000)]
Ensure WITH_DVD is not empty to prevent 'WITH_DVD= ' from evaluating
to true.

Submitted by: hrs
MFC after: 3 days
X-MFC-to-10: immediate
Sponsored by: The FreeBSD Foundation

10 years agoSupport Hyper-V on i386:
delphij [Thu, 5 Dec 2013 00:54:38 +0000 (00:54 +0000)]
Support Hyper-V on i386:

 - Add 'hyperv' module into build;
 - Allow building Hyper-V support as part of the kernel;
 - Hook Hyper-V build into NOTES.

This is intended for MFC if re@ permits.

MFC after: 3 days

10 years agoo Implement more standard ioctls.
ray [Thu, 5 Dec 2013 00:12:52 +0000 (00:12 +0000)]
o Implement more standard ioctls.
o Translate old ioctls to new ones for compat with FREEBSD6/FREEBSD5/FREEBSD4.
o Fix style(9) on "return"s.
o Remove some extra debug.

Sponsored by: The FreeBSD Foundation

10 years agogcc: On rs6000 update sp_offset depending only on size.
pfg [Wed, 4 Dec 2013 21:17:39 +0000 (21:17 +0000)]
gcc: On rs6000 update sp_offset depending only on size.

This fixes a nasty bug introduced in r258651.

Reported and tested by: Justin Hibbits
Obtained from: gcc pre-4.3 (rev. 125116; GPLv2)
MFC after: 2 weeks

10 years agoClean up paragraph remnants.
pluknet [Wed, 4 Dec 2013 20:46:25 +0000 (20:46 +0000)]
Clean up paragraph remnants.

10 years agoApply vendor improvements to oce(4) driver:
delphij [Wed, 4 Dec 2013 20:24:18 +0000 (20:24 +0000)]
Apply vendor improvements to oce(4) driver:

 - Add support to 40Gbps devices;
 - Add support to control adaptive interrupt coalescing (AIC)
   via sysctl;
 - Improve support of BE3 devices;

Many thanks to Emulex for their continued support of FreeBSD.

Submitted by: Venkata Duvvuru <VenkatKumar.Duvvuru Emulex Com>
MFC after: 3 days

10 years agoroute(1): Pull static data to the top of the file.
eadler [Wed, 4 Dec 2013 20:15:53 +0000 (20:15 +0000)]
route(1): Pull static data to the top of the file.

This is a pre-requisisite to some upcoming changes.

Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Discussed on: -hackers

10 years agoroute(1): Pull static buffer out of the function and into function scope.
eadler [Wed, 4 Dec 2013 20:13:29 +0000 (20:13 +0000)]
route(1): Pull static buffer out of the function and into function scope.

This will make it easier to link as a library.

Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Discussed on: -hackers

10 years agoroute(1): Pull static buffer out of the function and into function scope.
eadler [Wed, 4 Dec 2013 20:08:57 +0000 (20:08 +0000)]
route(1): Pull static buffer out of the function and into function scope.

This will make it easier to link as a library.

Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de> (older version)
Discussed on: -hackers

10 years agoroute(1): Pull static variable out of the function and into function scope.
eadler [Wed, 4 Dec 2013 20:07:34 +0000 (20:07 +0000)]
route(1): Pull static variable out of the function and into function scope.

This will make it easier to link as a library.

Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de> (older version)
Discussed on: -hackers

10 years agoroute(1): Pull static buffer out of the function and into function scope.
eadler [Wed, 4 Dec 2013 20:03:55 +0000 (20:03 +0000)]
route(1): Pull static buffer out of the function and into function scope.

This will make it easier to link as a library.

Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de> (older version)
Discussed on: -hackers

10 years agoAdd missing bits from the vendor's 2005-05-04 change to
obrien [Wed, 4 Dec 2013 19:15:56 +0000 (19:15 +0000)]
Add missing bits from the vendor's 2005-05-04 change to
contrib/byacc/makefile.in ("add YYPATCH here so it can be tested by
applications") so that applications have a hope of detecting newer
FreeBSD YACC output from an older one.

Submitted by: Juniper Networks

10 years agodrm: Read PCIER_LINK_CAP/PCIER_LINK_CAP2 from the PCI bridge
dumbbell [Wed, 4 Dec 2013 19:04:56 +0000 (19:04 +0000)]
drm: Read PCIER_LINK_CAP/PCIER_LINK_CAP2 from the PCI bridge

Before this fix, capabilities were read from vgapci and were incorrect.

10 years agoRename sysctl kern.supported_abis to kern.supported_archs, since it gives
nwhitehorn [Wed, 4 Dec 2013 16:38:40 +0000 (16:38 +0000)]
Rename sysctl kern.supported_abis to kern.supported_archs, since it gives
the set of MACHINE_ARCH values that can be run.

10 years agoFix a regression introduced by SVN r257842 that prevents Encryption from
dteske [Wed, 4 Dec 2013 16:06:23 +0000 (16:06 +0000)]
Fix a regression introduced by SVN r257842 that prevents Encryption from
being enabled.

MFC after: 3 days

10 years agoRegenerate after r258838
bdrewery [Wed, 4 Dec 2013 16:06:11 +0000 (16:06 +0000)]
Regenerate after r258838

10 years agoRegenerate after r258924
bdrewery [Wed, 4 Dec 2013 16:03:32 +0000 (16:03 +0000)]
Regenerate after r258924

MFC after: 3 days
Approved by: bapt (implicit)

10 years agoAdd missing period for WITHOUT_PKGBOOTSTRAP so that it matches all
bdrewery [Wed, 4 Dec 2013 15:58:42 +0000 (15:58 +0000)]
Add missing period for WITHOUT_PKGBOOTSTRAP so that it matches all
other entries.

Approved by: bapt
MFC after: 3 days

10 years agoFix what looks like a typo after r258732.
hselasky [Wed, 4 Dec 2013 12:30:51 +0000 (12:30 +0000)]
Fix what looks like a typo after r258732.

10 years agoFix external compiler warning(s). Avoid pointer dereferencing.
hselasky [Wed, 4 Dec 2013 12:07:46 +0000 (12:07 +0000)]
Fix external compiler warning(s). Avoid pointer dereferencing.

10 years agoChange comment to match code.
trasz [Wed, 4 Dec 2013 09:48:52 +0000 (09:48 +0000)]
Change comment to match code.

Discussed with: thompsa
Sponsored by: The FreeBSD Foundation

10 years agoUpdate release notes.
rodrigc [Wed, 4 Dec 2013 08:20:04 +0000 (08:20 +0000)]
Update release notes.

Submitted by: skreuzer

10 years agoAdd "null" backend to mdconfig(8). This does exactly what the name
trasz [Wed, 4 Dec 2013 07:38:23 +0000 (07:38 +0000)]
Add "null" backend to mdconfig(8).  This does exactly what the name
suggests, and is somewhat useful for benchmarking.

MFC after: 1 month
No objections from: kib
Sponsored by: The FreeBSD Foundation

10 years agoAvoid using a static buffer in atalk_ntoa. This will help allow users to call route...
eadler [Wed, 4 Dec 2013 05:06:56 +0000 (05:06 +0000)]
Avoid using a static buffer in atalk_ntoa.  This will help allow users to call route(1) as a library.

Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de> (older version)
Discussed on: -hackers
Reviwed by: adri (different older version)

10 years agoAdd const qualifier where appropriate
eadler [Wed, 4 Dec 2013 04:29:52 +0000 (04:29 +0000)]
Add const qualifier where appropriate

Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de>

10 years agoAdd const qualifier where appropriate
eadler [Wed, 4 Dec 2013 04:28:49 +0000 (04:28 +0000)]
Add const qualifier where appropriate

Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de>

10 years agoTurn 'n' into a local variable. This is required for additional changes.
eadler [Wed, 4 Dec 2013 04:28:00 +0000 (04:28 +0000)]
Turn 'n' into a local variable.  This is required for additional changes.

Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de>

10 years agoext2fs: add two new reserved inodes.
pfg [Wed, 4 Dec 2013 02:27:52 +0000 (02:27 +0000)]
ext2fs: add two new reserved inodes.

According to online documentation [1], Ext4 has two new "special"
inodes so add the new exclude and replica inodes.

Reference:
[1] https://ext4.wiki.kernel.org/index.php/Ext4_Disk_Layout

Reported by: Mike Ma
MFC after: 3 weeks

10 years agoEnable some previously-disabled DTrace tests for umod, ufunc and usym. They
markj [Wed, 4 Dec 2013 01:40:39 +0000 (01:40 +0000)]
Enable some previously-disabled DTrace tests for umod, ufunc and usym. They
expect the installed ksh binary to be named "ksh", which is not the case
when it's installed on FreeBSD via the shells/ksh93 port. Allow for it to be
"ksh93" as well so that the tests can actually pass.

10 years agoThe uaddr, ufunc, umod and usym functions all seem to work as expected on
markj [Wed, 4 Dec 2013 01:35:04 +0000 (01:35 +0000)]
The uaddr, ufunc, umod and usym functions all seem to work as expected on
FreeBSD, so stop hiding them behind a "#if defined(sun)".

Reported by: Prashanth Kumar <pra_udupi@yahoo.co.in>

10 years agosvn r251516 resized the buf argument a bit too much. Pass a hardcoded
sbruno [Wed, 4 Dec 2013 00:28:44 +0000 (00:28 +0000)]
svn r251516 resized the buf argument a bit too much.  Pass a hardcoded
size of 6 to humanize_number() to resolve this.

PR: 184405
Submitted by: jhb
MFC after: 2 weeks

10 years agoBreak the loop once we know we have the SYF_CAPENABLED flag.
pjd [Wed, 4 Dec 2013 00:10:37 +0000 (00:10 +0000)]
Break the loop once we know we have the SYF_CAPENABLED flag.

10 years agoOnly the shared library is installed in /lib/. Static library and symlink
pjd [Tue, 3 Dec 2013 23:16:08 +0000 (23:16 +0000)]
Only the shared library is installed in /lib/. Static library and symlink
to shared library stays in /usr/lib/. Don't delete them.

Reported by: jkim

10 years agoUpdate LLDB to upstream r196322 snapshot
emaste [Tue, 3 Dec 2013 22:26:38 +0000 (22:26 +0000)]
Update LLDB to upstream r196322 snapshot

Upstream revisions of note:
r196298 - Fix use of std::lower_bound
r196322 - Fix log message for new invalidation checks

Sponsored by: DARPA, AFRL

10 years agoThe rc system aggressively caches the contents of /etc/rc.conf in order to
cperciva [Tue, 3 Dec 2013 21:55:57 +0000 (21:55 +0000)]
The rc system aggressively caches the contents of /etc/rc.conf in order to
improve boot performance; this produces arguably astonishing (non-)results
if /etc/rc.conf is modified during the boot process.

Since performance considerations make it infeasible to automatically detect
if the cached /etc/rc.conf parameters should be invalidated, provide a
mechanism for explicitly requesting that /etc/rc.conf be reloaded: Catch
SIGALRM and reload /etc/rc.conf if it is received.

Discussed on: freebsd-rc
MFC after: 3 days

10 years agoAdd a new sysctl / loader tunable kern.panic_reboot_wait_time which
cperciva [Tue, 3 Dec 2013 21:35:25 +0000 (21:35 +0000)]
Add a new sysctl / loader tunable kern.panic_reboot_wait_time which
defaults to PANIC_REBOOT_WAIT_TIME (a long-existing kernel config
setting).  Use this now-variable value in place of the defined constant
to control how long the system waits after a panic before rebooting.

10 years agolldb: Threaded inferior support for FreeBSD
emaste [Tue, 3 Dec 2013 21:29:45 +0000 (21:29 +0000)]
lldb: Threaded inferior support for FreeBSD

This is in the process of being submitted to the upstream LLDB
repository.  The thread list functionality is modelled in part on
GDBRemoteCommunicationClient.

LLDB bug pr16696 and code review D2267

Sponsored by: DARPA, AFRL

10 years agoVarious updates and tweaks to the wait(2) manpage.
jhb [Tue, 3 Dec 2013 21:00:13 +0000 (21:00 +0000)]
Various updates and tweaks to the wait(2) manpage.

PR: docs/183904
Submitted by: Michael Galassi <michaelgalassi@gmail.com>
Reviewed by: kib, wblock (earlier version)

10 years agoUpdate LLDB to upstream r196259 snapshot
emaste [Tue, 3 Dec 2013 19:23:54 +0000 (19:23 +0000)]
Update LLDB to upstream r196259 snapshot

Sponsored by: DARPA, AFRL

10 years agoImport lldb as of SVN r196259 (git 3be86e5)
emaste [Tue, 3 Dec 2013 18:51:59 +0000 (18:51 +0000)]
Import lldb as of SVN r196259 (git 3be86e5)

(A number of files not required for the FreeBSD build have been removed.)

Sponsored by: DARPA, AFRL

10 years agocxgbe(4): T4_SET_SCHED_CLASS and T4_SET_SCHED_QUEUE ioctls to program
np [Tue, 3 Dec 2013 18:34:52 +0000 (18:34 +0000)]
cxgbe(4):  T4_SET_SCHED_CLASS and T4_SET_SCHED_QUEUE ioctls to program
scheduling classes in the chip and to bind tx queue(s) to a scheduling
class respectively.  These can be used for various kinds of tx traffic
throttling (to force selected tx queues to drain at a fixed Kbps rate,
or a % of the port's total bandwidth, or at a fixed pps rate, etc.).

Obtained from: Chelsio

10 years agoWorkaround lldb issue with main module base address
emaste [Tue, 3 Dec 2013 18:12:51 +0000 (18:12 +0000)]
Workaround lldb issue with main module base address

On FreeBSD lldb sometimes reloads the the main module's (executable's)
symbols at the wrong address.  Work around this for now by explicitly
reloading at base_address=0 when it happens.

A proper fix is needed but early testers have reported this issue so
this workaround should allow them to make further progress.

http://llvm.org/bugs/show_bug.cgi?id=17880

10 years agoProperly report an error instead of panicing when user tries to create
trasz [Tue, 3 Dec 2013 18:04:14 +0000 (18:04 +0000)]
Properly report an error instead of panicing when user tries to create
LUN backed by non-disk device, e.g. /dev/null.

Reviewed by: ken (earlier version)
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

10 years agoFix an off-by-one error in r228960. The maximum priority delta provided
jhb [Tue, 3 Dec 2013 14:50:12 +0000 (14:50 +0000)]
Fix an off-by-one error in r228960.  The maximum priority delta provided
by SCHED_PRI_TICKS should be SCHED_PRI_RANGE - 1 so that the resulting
priority value (before nice adjustment) is between SCHED_PRI_MIN and
SCHED_PRI_MAX, inclusive.

Submitted by: kib
Reported by: pho
MFC after: 1 week

10 years agoAdd libcapsicum and libcasper libraries that were moved from /usr/lib/ to /lib/.
pjd [Tue, 3 Dec 2013 13:38:13 +0000 (13:38 +0000)]
Add libcapsicum and libcasper libraries that were moved from /usr/lib/ to /lib/.

Reviewed by: glebius

10 years agoInitialize cookie before use.
pjd [Tue, 3 Dec 2013 13:28:05 +0000 (13:28 +0000)]
Initialize cookie before use.

Reported by: Coverity
Coverity CID: 1135292

10 years agoFix comparisons in assertions.
pjd [Tue, 3 Dec 2013 13:26:37 +0000 (13:26 +0000)]
Fix comparisons in assertions.

Reported by: Coverity
Coverity CID: 1130048

10 years agoAdd DragonFly BSD fingerprints to pf.os
eadler [Tue, 3 Dec 2013 04:32:02 +0000 (04:32 +0000)]
Add DragonFly BSD fingerprints to pf.os

Obtained From: DragonFly BSD (commit 321b0bb006b0857d2c212dc8cd12a36d750bcf9a)

10 years agoAdd an autologin entry for the console.
eadler [Tue, 3 Dec 2013 04:13:55 +0000 (04:13 +0000)]
Add an autologin entry for the console.

Obtained From: DragonFly BSD (commit f95025e8c9a4471edb610557263b12acd8e7fb3a)

10 years agoAdd Veritas NetBackup
eadler [Tue, 3 Dec 2013 04:03:19 +0000 (04:03 +0000)]
Add Veritas NetBackup

Obtained From: DragonFly BSD

10 years agoAdd the Short Message Peer-to-Peer protocol
eadler [Tue, 3 Dec 2013 03:57:22 +0000 (03:57 +0000)]
Add the Short Message Peer-to-Peer protocol

PR: conf/183398
Submitted by: olgeni

10 years agoUse mkstemp(3) to create the temporary file used in the FreeBSD-specific
markj [Tue, 3 Dec 2013 03:40:47 +0000 (03:40 +0000)]
Use mkstemp(3) to create the temporary file used in the FreeBSD-specific
portions of dtrace_program_link().

10 years agoThe 'protection' field in the VM exit collateral for the PAGING exit is not
neel [Tue, 3 Dec 2013 01:21:21 +0000 (01:21 +0000)]
The 'protection' field in the VM exit collateral for the PAGING exit is not
used - get rid of it.

10 years agoRename 'vm_interrupt_hostcpu()' to 'vcpu_notify_event()' because the function
neel [Tue, 3 Dec 2013 00:43:31 +0000 (00:43 +0000)]
Rename 'vm_interrupt_hostcpu()' to 'vcpu_notify_event()' because the function
has outgrown its original name. Originally this function simply sent an IPI
to the host cpu that a vcpu was executing on but now it does a lot more than
just that.

Reviewed by: grehan@

10 years agoRight now LOCK_DEBUG is enabled if KTR is on.
attilio [Mon, 2 Dec 2013 22:34:47 +0000 (22:34 +0000)]
Right now LOCK_DEBUG is enabled if KTR is on.
This is to support LOCK_LOG_* functionality effectively in debugging
environments but it is overkill because really LOCK_DEBUG should be on
only if (KTR_COMPILE & KTR_LOCK) is true.
Fix this by applying the correct logic.
In this process, move the KTR classes to its own header to reduce
namespace pollution.

Sponsored by: EMC / Isilon storage division
Reviewed by: jhb

10 years agoFix typo.
nwhitehorn [Mon, 2 Dec 2013 22:00:15 +0000 (22:00 +0000)]
Fix typo.

10 years agomdoc: quote string properly.
joel [Mon, 2 Dec 2013 19:49:52 +0000 (19:49 +0000)]
mdoc: quote string properly.

10 years agoFix PKG_ABI detection in bsdconfig(8) after pkg-1.2 is released, since
gjb [Mon, 2 Dec 2013 19:02:58 +0000 (19:02 +0000)]
Fix PKG_ABI detection in bsdconfig(8) after pkg-1.2 is released, since
the format of 'pkg -vv' output has changed.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

10 years agoTurn off the dvdrom target by default. dvd1.iso is now built by
gjb [Mon, 2 Dec 2013 18:47:57 +0000 (18:47 +0000)]
Turn off the dvdrom target by default.  dvd1.iso is now built by
specifying 'WITH_DVD=1' during 'make release'.

This caused some problems during the freebsd-update builds for
10.0-BETA4.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

10 years agoRemove fdtbus_bs_tag definition, which is now obsolete. The remainder of
nwhitehorn [Mon, 2 Dec 2013 17:45:43 +0000 (17:45 +0000)]
Remove fdtbus_bs_tag definition, which is now obsolete. The remainder of
this file is also slated for future demolition.

10 years agoBoth libcasper and libcapsicum libraries have to be installed in /lib/,
pjd [Mon, 2 Dec 2013 17:07:22 +0000 (17:07 +0000)]
Both libcasper and libcapsicum libraries have to be installed in /lib/,
as they are used by /sbin/casperd.

10 years agoRegression tests for existing Casper services.
pjd [Mon, 2 Dec 2013 17:01:01 +0000 (17:01 +0000)]
Regression tests for existing Casper services.

Sponsored by: The FreeBSD Foundation

10 years agoProvide reproducibility between builds by building pkg(8) from ports,
gjb [Mon, 2 Dec 2013 14:28:30 +0000 (14:28 +0000)]
Provide reproducibility between builds by building pkg(8) from ports,
instead of using pkg-bootstrap.

This should resolve a problem that was discovered during 10.0-BETA4
freebsd-update(8) builds,

Reported by: secteam (delphij)
MFC after: 3 days
X-MFC-to-10: possibly immediately, pending freebsd-update(8) builds
Sponsored by: The FreeBSD Foundation

10 years agoEnable missing Access Flag for secondary cores on ARMv6/v7
zbb [Mon, 2 Dec 2013 13:09:59 +0000 (13:09 +0000)]
Enable missing Access Flag for secondary cores on ARMv6/v7

Spotted by: Wojciech Macek <wma@semihalf.com>
Obtained from: Semihalf

> Description of fields to fill in above:                     76 columns --|
> PR:            If a GNATS PR is affected by the change.
> Submitted by:  If someone else sent in the change.
> Reviewed by:   If someone else reviewed your modification.
> Approved by:   If you needed approval for this commit.
> Obtained from: If the change is from a third party.
> MFC after:     N [day[s]|week[s]|month[s]].  Request a reminder email.
> Security:      Vulnerability reference (one per line) or description.
> Empty fields above will be automatically removed.

M    sys/arm/arm/locore.S

10 years agoForgot to 'svn add' lib/libcasper/ directory.
pjd [Mon, 2 Dec 2013 10:18:25 +0000 (10:18 +0000)]
Forgot to 'svn add' lib/libcasper/ directory.

Reported by: glebius

10 years agoGrammar fix.
trasz [Mon, 2 Dec 2013 09:47:22 +0000 (09:47 +0000)]
Grammar fix.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

10 years agoFix typos.
trasz [Mon, 2 Dec 2013 09:23:34 +0000 (09:23 +0000)]
Fix typos.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

10 years agoThe RUN_MAX_TXSZ constat is defined as Tx desc + Tx wireless info + MCLBYTES +
kevlo [Mon, 2 Dec 2013 09:07:43 +0000 (09:07 +0000)]
The RUN_MAX_TXSZ constat is defined as Tx desc + Tx wireless info + MCLBYTES +
max padding.  We were lucky in that run(4) working fine since both
rt2860_rxwi and rt2860_txwi structure sizes are the same.

10 years agoPlease welcome casperd daemon. It (and its services) will be responsible for
pjd [Mon, 2 Dec 2013 08:21:28 +0000 (08:21 +0000)]
Please welcome casperd daemon. It (and its services) will be responsible for
giving access to functionality that is not available in capability mode
sandbox. The functionality can be precisely restricted.

Start with the following services:
- system.dns - provides API compatible to:
- gethostbyname(3),
- gethostbyname2(3),
- gethostbyaddr(3),
- getaddrinfo(3),
- getnameinfo(3),
- system.grp - provides getgrent(3)-compatible API,
- system.pwd - provides getpwent(3)-compatible API,
- system.random - allows to obtain entropy from /dev/random,
- system.sysctl - provides sysctlbyname(3-compatible API.

Sponsored by: The FreeBSD Foundation