Commit Graph

194801 Commits

Author SHA1 Message Date
rpaulo
9fa9e83832 MFC r256499:
Add support for Mercurial repositories.
2014-02-03 08:04:09 +00:00
gnn
a2ab687e34 MFC: 260791
Add a command line argument to turn off blocking waiting for the user
to press Ctrl-C (-b).  This allows tests with tight loops of mcgrabs
that can stress the multicast tables.
2014-02-03 03:34:36 +00:00
gnn
dbf0fc2c51 MFC 260796
Fix various places where we don't properly release a lock

PR:		185043
Submitted by:	Michael Bentkofsky
2014-02-03 03:31:35 +00:00
mav
4d04af12a8 MFC r260883:
Remove unneeded and dangerous assignment.  It would probably cause NULL
refererence panic if compiler not optimize it out.
2014-02-02 00:33:17 +00:00
gshapiro
96d8492738 MFC: Note merge of sendmail 8.14.8. 2014-02-01 22:38:34 +00:00
gshapiro
51cc8a1941 MFC: Minor changes to force commit these files so new freebsd*.cf files are
built to use the new sendmail-8.14.8/cf tree.
2014-02-01 22:36:46 +00:00
gshapiro
e531f7967a MFC: Add missing svn:keywords property to new files 2014-02-01 22:35:12 +00:00
gshapiro
4487cc54ba MFC: Update for sendmail 8.14.8 import 2014-02-01 22:33:58 +00:00
gshapiro
f95fc3e2d9 MFC: Remove local FreeBSD workaround now that upstream project has a better fix. 2014-02-01 22:32:45 +00:00
gshapiro
956642d7ed MFC: Add new sendmail 8.14.8 file 2014-02-01 22:29:04 +00:00
gshapiro
048f3c3a11 MFC: Merge sendmail 8.14.8 2014-02-01 22:27:40 +00:00
gshapiro
9e0e0be832 MFC: Update link to vendor import instructions 2014-02-01 22:05:38 +00:00
pluknet
a71e69e617 MFC r261267: Add libexecinfo. 2014-02-01 10:48:28 +00:00
pluknet
3135f7a6a5 MFC r261261: Restore the Nx macro.
PR:		186205
Submitted by:	naddy
2014-02-01 10:41:26 +00:00
rmh
a4a573ce18 MFC r261138:
Accept O_CLOEXEC in shm_open().
2014-01-31 20:52:08 +00:00
jhb
37071258d8 MFC 259823:
Fix i386 build.
2014-01-31 17:26:15 +00:00
pfg
30943ad24c MFC r261136:
ext2fs: Re-enable reallocblk.

The major corruption issues affecting this code have been fixed.

Tested by:	Mike Ma
2014-01-31 04:05:25 +00:00
pfg
e570ba73dc MFC r260988, r261034, r261120, r261235:
ext2fs: Properly the EXT4_EXTENTS and EXT4_INDEX to the inode flags.

In order to support Ext4 extents we need to pass the Ext4 inode flags
without interfering with the chflags. This is better done by using the
i_flag field in the inode and doing proper translation to the linux
ext4 equivalents.

Solve a potential corruption issue in the dirindex code. The dirindex
code can now be renabled as the problems related to it have been
solved.

Suggested by:	bde
Tested by:	kevlo
2014-01-31 03:58:36 +00:00
pfg
c50ca945d8 MFC r261175:
binutils: add support for Intel SMAP-related instructions

Add support for stac/clac instructions to manipulate the flag
that controls the behaviour of Intel's Supervisor Mode Access
Prevention (SMAP) feature.

Tested by:	dim
Obtained from:	OpenBSD
2014-01-31 03:38:22 +00:00
pfg
0d230789fc MFC r261178:
gcc: Add support for -Wmissing-prototypes in C++

Support for warnings about missing prototypes in C++ was added by Apple
GCC (Radar 6261539).  Most of the code crept into r260311 so it felt
natural to make use of it.

Obtained from:	Apple GCC - 5646
2014-01-31 03:30:09 +00:00
jhb
5202629284 MFC 261216:
Explicitly enable I/O and memory decoding in the bridge's command register
when activating an I/O or memory window on the CardBus bridge.
2014-01-30 19:09:59 +00:00
ae
11f15ea787 MFC r261084:
malloc() with M_WAITOK doesn't return NULL.

MFC r261085:
  Fix typo in r261084.
  Add to the gctl_error() an ability to specify error description even
  if numeric error code is already specified. Also by default set
  error code to EINVAL.

  PR:		185852

MFC r261086:
  In gctl_copyin() remove unused error variable.
  geom_alloc_copyin() can't return ENOMEM, so describe its fail as bad
  control request. Add check for NULL pointer in gctl_dump(), since it
  can be NULL when geom_alloc_copyin() failed.

MFC r261089:
  Remove another unneeded NULL check from geom_alloc_copyin().
  Do copyout in case of gctl version mismatch and fix sbuf leak in
  g_ctl_ioctl_ctl().

MFC r261091:
  Always free sbuf in gctl_free().
2014-01-30 10:53:29 +00:00
pluknet
3368a0c181 Update EINVAL description. 2014-01-30 05:35:12 +00:00
brooks
5c6caa4224 MFC r256939
MFP4:
Change 221767 by rwatson@rwatson_zenith_cl_cam_ac_uk on 2013/02/05 14:18:53

	When printing out information on a TLB MOD exception for a user
	process (e.g., an attempt to write to a read-only page), report
	it as a "write" in the console message, rather than "unknown".

Change 221768 by rwatson@rwatson_zenith_cl_cam_ac_uk on 2013/02/05 14:28:00

	Fix post-compile but pre-commit typo in last changeset.

Sponsored by:	DARPA/AFRL
2014-01-29 22:06:38 +00:00
brooks
f3a850110a MFC r256937:
MFP4:
Change 231031 by brooks@brooks_zenith on 2013/07/11 16:22:08

	Turn the unused and uncompilable MIPS_DISABLE_L1_CACHE define in
	cache.c into an option and when set force I- and D-cache line
	sizes to 0 (the latter part might be better as a tunable).

	Fix some casts in an #if 0'd bit of code which attempts to
	disable L1 cache ops when the cache is coherent.

Sponsored by:	DARPA/AFRL
2014-01-29 22:01:42 +00:00
brooks
a98111a09d MFC r256945:
MFP4:
Change 221669 by bz@bz_zenith on 2013/02/01 12:26:04

	Run the initialization for polling earlier along with INTRs
	so that we can put network interface into polling mode by default
	if DEVICE_POLLING is compiled in and no interrupts are available.

Sponsored by:	DARPA/AFRL
2014-01-29 21:57:00 +00:00
jhb
080d62f93d MFC 259782:
Add a resume hook for bhyve that runs a function on all CPUs during
resume.  For Intel CPUs, invoke vmxon for CPUs that were in VMX mode
at the time of suspend.
2014-01-29 21:23:37 +00:00
brooks
63fe90dcd8 MFC r256745:
MFP4:
Change 227630 by bz@bz_zenith on 2013/04/12 08:50:27

	Implement soft reset setting sr in sr and just in case loop
	endlessly afterwards.

Sponsored by:	DARPA/AFRL
2014-01-29 20:48:26 +00:00
jhb
647b92bf0a MFC 260206:
Rework the DSDT generation code a bit to generate more accurate info about
LPC devices.  Among other things, the LPC serial ports now appear as
ACPI devices.
2014-01-29 13:35:12 +00:00
mav
3e6f6a1694 MFC r260267 (by smh), r261042:
Correct short delete issue in SCSI UNMAP support
Correct missing \n's in xpt_print's
Correct incorrect count being passed to short delete xpt_print
2014-01-29 02:38:25 +00:00
jhb
2fa5ef25cf MFC 260910:
- Allow PCI devices that are attached to a driver to be identified by their
  device name instead of just the selector.
- Accept an optional device argument to -l to restrict the output to only
  listing details about a single device.  This is mostly useful in
  conjunction with other flags like -e or -c to allow a user to query
  details about a single device.
2014-01-28 21:56:18 +00:00
skreuzer
df3ef14ce8 Merge /head:261072: Remove WITHOUT_ATF from src.conf.5
Approved by:	hrs (mentor)
2014-01-28 15:15:13 +00:00
ache
1626ab813a MFC: r261146
Bad timespec_subtract() calculations produce negative tv_nsec on i386
which cause EINVAL returned from nanosleep() which cause loop in
cron_sleep() and making all cron jobs to start about 30 seconds earlier
(which cause f.e. logfiles rotation by newsyslog delayed by 1 hour).

Use simple and proved calculations from kernel's timespecsub() instead.
2014-01-28 13:29:54 +00:00
dim
782dc633da MFC r261162:
Pull in r195679 from upstream llvm trunk:

  Don't use nopl in cpus that don't support it.

  Patch by Mikulas Patocka. I added the test. I checked that for cpu names that
  gas knows about, it also doesn't generate nopl.

  The modified cpus:
  i686 - there are i686-class CPUs that don't have nopl: Via c3, Transmeta
	 Crusoe, Microsoft VirtualBox - see
	 https://bbs.archlinux.org/viewtopic.php?pid=775414
  k6, k6-2, k6-3, winchip-c6, winchip2 - these are 586-class CPUs
  via c3 c3-2 - see https://bugs.archlinux.org/task/19733 as a proof that
	 Via c3 and c3-Nehemiah don't have nopl

PR:		bin/185777
2014-01-28 08:07:19 +00:00
ae
ddff0f179e MFC r260485,260496:
Remove extra nesting from X_ip6_mforward() function.
  Also remove disabled definitions from ip6_mroute.h.

  PR:		185148
2014-01-28 00:30:17 +00:00
glebius
6e1079d8b4 Merge 261024: fix PIM input regression. 2014-01-27 09:33:30 +00:00
glebius
c3a529c9ca Merged /head:r256510,256512,257376,257469,260052:
Make 'netstat -i' use getifaddrs(3) instead of kvm(3).
2014-01-27 08:15:21 +00:00
pfg
fe288f1b72 MFC r260311, r260831:
gcc: Add support for Apple's Block extension

Block objects [1] are a C-level syntactic and runtime feature. They
are similar to standard C functions, but in addition to executable
code they may also contain variable bindings to automatic (stack)
or managed (heap) memory. A block can therefore maintain a set of
state (data) that it can use to impact behavior when executed.

This port is based on Apple's GCC 5646 with some bugfixes from
Apple GCC 5666.3. It has some small differences with the support
in clang, which remains the recommended compiler.

Perhaps the most notable difference is that in GCC __block is not
actually a keyword, but a macro. There may be workaround for this
issue in the future. Other issues can be consulted in the clang
documentation [2]

For better compatiblity with Apple's GCC and llvm-gcc, some related
fixes and features from Apple have been included. Support for the
non-standard nested functions in GCC is now off by default.

No effort was made to update the ObjC support since FreeBSD doesn't
carry ObjC in the base system but some of the code crept in and
was more difficult to remove than to adjust.

References:
[1]
https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Blocks/Articles/00_Introduction.html
[2]
http://clang.llvm.org/compatibility.html#block-variable-initialization

Obtained from:	Apple GCC 4.2
2014-01-26 19:49:54 +00:00
jhibbits
5c96f061e7 MFC r260872:
There's actually no data in the PMU_GET_VERSION command.  Don't send any.
This change now allows the PMU to be used on PowerBook5,8
2014-01-26 02:23:16 +00:00
demon
db6e97e28e Merge r260987:
Do not exit with non-zero return code if sysctl.conf or sysctl.conf.local files
 are absent.

 Approved by:	delphij
2014-01-25 10:43:47 +00:00
mav
f1efe4c670 MFC r260549:
Move xpt_run_devq() call before request completion callback where it was
originally.

I am not sure why exactly have I moved it during one of many refactorings
during camlock project, but obviously it opens race window that may cause
use after free panics during SIM (in reported cases umass(4)) detach.
2014-01-25 01:58:15 +00:00
bapt
4b032c82b7 Implicit include of sys/queue.h instead of relying on gelf.h/libelf.h to bring it
Newer version of gelf.h and libelf.h does not include sys/queue.h anymore

Submitted by:	kaiw
2014-01-25 01:08:35 +00:00
bapt
3ed015f5b6 MFH: r261027
Remove pkg_* related info from periodic.conf

Reported by	Robin Brocks <robin.brocks@brocks.de>
2014-01-25 01:06:20 +00:00
hselasky
ca0a2ea2d2 MFC r257132:
Add id for GTM661W.
This also fixes kernel build breakage since last revision.
2014-01-24 08:27:19 +00:00
hselasky
7736d27545 MFC r260534:
Move USB ID from u3g driver to uhso driver.
2014-01-24 08:22:29 +00:00
hselasky
6c824eefbf MFC r258545:
Comply to the XHCI specification. Certain input context fields should
always be zero.
2014-01-24 08:15:21 +00:00
hselasky
6e5156d6bb MFC r260808 and r260814:
- Close a minor deadlock.
- Fix a possible memory use after free and leak situation associated
with USB device detach when using character device handles. This also
includes LibUSB. It turns out that "usb_close()" cannot always get a
reference to clean up its USB transfers and such, if called during the
kernel USB device detach.
2014-01-24 08:10:08 +00:00
hselasky
f692196495 MFC r260588 and r260589:
- Separate I/O errors from reception of STALL PID.
- Implement better error recovery for Transaction Translators, TTs,
found in High Speed USB HUBs which translate from High Speed USB into
FULL or LOW speed USB. In some rare cases SPLIT transactions might get
lost, which might leave the TT in an unknown state. Whenever we detect
such an error try to issue either a clear TT buffer request, or if
that is not possible reset the whole TT.
2014-01-24 07:48:52 +00:00
hselasky
34792a80a8 MFC r260563:
Make sure reserved fields of the EHCI DMA descriptors are not dirty
after previous transfers.
2014-01-24 07:43:46 +00:00
hselasky
9fee04223f MFC r260559:
Don't do synchronous USB requests inside USB transfer callbacks. It is
technically OK, but not recommended.
2014-01-24 07:32:05 +00:00