194772 Commits

Author SHA1 Message Date
dim
6ceb8edc35 MFC r260553 (by theraven):
Add missing C++11 typeinfos to the libcxxrt version script.

PR:		185663
2014-02-09 00:34:21 +00:00
kib
2adfb67dc9 MFC r261354:
In _pthread_kill(), if passed pthread is current thread, do not send
the signal second time, by adding the missed else before if statement.

PR:	threads/186309
2014-02-08 15:51:24 +00:00
hselasky
8f0b7f5c20 MFC r261505:
Fix a regression issue. Contiguous single segment allocations above
PAGE_SIZE bytes should only use one USB page structure. Fixes a
problem with some external drivers.
2014-02-07 07:18:52 +00:00
gnn
16b8c9f357 MFC: 261291
The timestamp bit is number 17, and not number 9, in the stat error
field of the receive descriptor.
2014-02-07 04:34:04 +00:00
mav
9cc9d2e8b5 MFC r260949:
Make comconsole options set before its activation to be remembered.
2014-02-07 04:09:15 +00:00
mav
46b5a69e31 MFC r261449:
Fix lock acquisition in case no request space available, missed in r260097.
2014-02-07 04:02:14 +00:00
kib
ce48f3b35d MFC r261080:
The posix_fallocate(2) syscall should return error number on error,
without modifying errno.

MFC r261290:
The posix_madvise(3) and posix_fadvise(2) should return error on
failure, same as posix_fallocate(2).
2014-02-06 19:47:17 +00:00
ae
88938f44a0 MFC r260702 (by melifaro):
Fix ipfw fwd for IPv4 traffic broken by r249894.

  Problem case:
  Original lookup returns route with GW set, so gw points to
  rte->rt_gateway.
  After that we're changing dst and performing lookup another time.
  Since fwd host is most probably directly reachable, resulting
  rte does not contain rt_gateway, so gw is not set. Finally, we
  end with packet transmitted to proper interface but wrong
  link-layer address.
2014-02-06 10:48:55 +00:00
rpaulo
d65cbb1877 MFC r261432
Fix the definition of hg_cmd.
2014-02-06 02:12:39 +00:00
hselasky
8beeaa4622 MFC r261260, r261262, r261315 and r261343:
Add support for trackpads found in Apple MacBook products. While at it
add some missing devd entries.
2014-02-05 08:40:02 +00:00
eadler
a27a582538 MFC r258787:
r258780 should not have applied to .S files.
2014-02-04 16:29:30 +00:00
hselasky
c578b328a3 MFC r260903:
Add support for GPS ports to UHSO driver.
2014-02-04 10:29:23 +00:00
hselasky
4cf659f127 MFC r260315:
Implement two new libusb API functions.

PR:		usb/185454
2014-02-04 10:18:29 +00:00
hselasky
2a3d1313fa MFC r261228:
When detaching a [USB] keyboard, keys might still be pressed. Ensure
that all pressed keys are released before completing the USB keyboard
detach. This will prevent so-called "ghost-keys" from appearing after
that the USB device generating the key event(s) has been detached.
2014-02-04 09:06:28 +00:00
hselasky
32eb5ff7ac MFC r261224:
Comply to the official LibUSB v1.0 API:
"It is legal to attempt to claim an already-claimed interface."
2014-02-04 08:59:42 +00:00
hselasky
a8836e9a4a MFC r261134:
Add more USB quirks.
2014-02-04 08:54:59 +00:00
hselasky
0f7d3b859b MFC r261123:
Reduce dmesg verbosity.
2014-02-04 08:47:43 +00:00
hselasky
5fd8780dea MFC r261004, r261005 and r261033:
Adjust the DMA delay logic so that the DMA delay does not become too small.
2014-02-04 08:44:12 +00:00
hselasky
d3208d4349 MFC r261003:
Add new quirk.

PR:		usb/185968
2014-02-04 08:37:39 +00:00
eadler
ec294fd7f5 MFC r258779,r258780,r258787,r258822:
Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this
shifts into the sign bit.  Instead use (1U << 31) which gets the
expected result.

Similar to the (1 << 31) case it is not defined to do (2 << 30).

This fix is not ideal as it assumes a 32 bit int, but does fix the issue
for most cases.

A similar change was made in OpenBSD.
2014-02-04 03:36:42 +00:00
mav
d374d7f398 MFC r260996:
Fix memory and references leak due to unfreed path in case we can't
allocate bus scan CCB.
2014-02-04 00:51:06 +00:00
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