254569 Commits

Author SHA1 Message Date
christos
3afe107bee Add two utility functions to help use kmem with strings: kmem_strdupsize,
kmem_strfree.
2017-11-07 18:35:57 +00:00
khorben
d6735baf16 Add driver for Broadcom 802.11a/b/g/n/ac SDIO wireless devices, based on
the OpenBSD bwfm(4) driver.

I could not test this on any hardware yet, as it does not attach as-is on
my Raspberry PI 3.
2017-11-07 16:30:32 +00:00
christos
cd1c6201df We computed the length of the string already, so use it... 2017-11-07 15:57:38 +00:00
christos
38de3c6732 Don't define ELFSIZE 2017-11-07 14:55:30 +00:00
ryoon
24512689e1 Return res in non-synaptics case like before. Fix ALPS case 2017-11-07 12:39:07 +00:00
nat
b4c5258702 Use mixring blocksizes in the right places when mixer is enabled.
This means that x68k's vs audio works once again with sysctl usemixer=1.

Tested with xm6i.
2017-11-07 09:26:55 +00:00
ozaki-r
7c8e9ac519 Stop using bpfjit
Because most architectures don't support it and npf still works without it.
2017-11-07 09:17:06 +00:00
ryo
98f360edf4 on RPI2, fix compile failure without options MULTIPROCESSOR. 2017-11-07 09:05:05 +00:00
skrll
3ac55b05ee Fix the "wait for any pending transmission to finish" - doesn't really
matter at the moment as the fifo is disabled.
2017-11-07 07:21:13 +00:00
skrll
3eab798970 Trailing whitespace 2017-11-07 07:19:13 +00:00
msaitoh
6eadd3e23b Fix a bug that X550T(1) didn't linkup if it forces 100BaseTX-FDX.
Popular switches and OSes don't use auto-negotiation if the media is
100BASE-TX (and 10BASE-T). Do the same thig.

 Another fix is required for Denverton's _T device which use firmware.
2017-11-07 05:41:54 +00:00
msaitoh
4499b172f2 Define bit definitions of MDIO_PMAPMD_CTRL1 and MDIO_AN_CTRL1. 2017-11-07 05:33:12 +00:00
mlelstv
0fa2b3a17d Make wddone poll all drives of a channel again. 2017-11-07 04:09:08 +00:00
ozaki-r
a048c07157 Let rtadvd not use syslog for logging
Thanks to christos@ now rtadvd can log via stderr instead of syslog
by -D option.

Address PR bin/52701
2017-11-07 02:19:23 +00:00
nat
b2e6a86f13 Remove 24 bit in a 32 bit container filters.
At present this filter did not work well and has caused problems with
the audio mixer disabled for hdaudio(4).

These filters may return when they are fixed.
2017-11-07 01:15:42 +00:00
nat
739a40f15c A sysctl is now available to disable the in kernel mixer.
sysctl -w hw.hdafg0.usemixer=0

There currently is a problem draining the last block with the mixer
disabled.  I will fix this in a follow up commit.

AFAIK there will be a problem wiht vs(4) on x68k with the mixer disabled
as the filters for mulaw, alaw and unsigned linear have been removed post
audio mixing changes.

Documentation for this sysctl variable will be made to audio.4 in a follow
up commit.

Ok christos@.
2017-11-07 01:13:19 +00:00
kre
4559590210 In the fopen_regular and fopen_symlink tests, when (that is, if) a
failure occurs, distinguish in the failure message the cases where the
open succeeded (and should not have), and where it failed, but not for
the expected reason (the "wrong errno" case not tested, would require
manufacturing a broken kernel...).

Add O_NOFOLLOW ('l' mode modifier) tests to the fopen_mode test case
(tests that are intended to open the file) and also add a few missing
commas which were causing a few of the sub-tests to be skipped, and
others to be not quite testing exactly what was intended.
2017-11-06 23:06:55 +00:00
wiz
c3ab355a05 Bump date for previous. New sentence, new line. Fix typos.
Add missing word.
2017-11-06 21:40:04 +00:00
joerg
da03f1ef14 init/fini for the main program is handled by crt0.o, so ifunc handling
is skipped right now as it iterates the same list. Don't repeat that
mistake and explicitly take care of it in the dynamic linker.
2017-11-06 21:16:03 +00:00
blymn
07ed3f206f Add documentation for clickpad mouse button emulation. 2017-11-06 21:11:17 +00:00
blymn
fe90bab42e Add two finger support and middle/right button emulation. 2017-11-06 21:07:17 +00:00
jmcneill
1da7e22c9f Add support for NextThing GR8. 2017-11-06 21:03:58 +00:00
christos
83e9db9921 handle ppc64 2017-11-06 19:20:54 +00:00
christos
efeebfb821 Handle 64 bit kernels. 2017-11-06 19:17:43 +00:00
joerg
9a76d3f972 Mark expandm as preserving format strings. 2017-11-06 19:12:23 +00:00
riastradh
d6585e3401 Assert that pool_get failure happens only with PR_NOWAIT.
This would have caught the mistake I made last week leading to null
pointer dereferences all over the place, a mistake which I evidently
poorly scheduled alongside maxv's change to the panic message on x86
for null pointer dereferences.
2017-11-06 18:41:22 +00:00
christos
ba12c45240 Since _RUMPKERNEL is really userland code it needs ARCH_ELFSIZE,
not KERN_ELFSIZE, make it so!
2017-11-06 17:56:25 +00:00
christos
f3898d4d3b add a symlink test 2017-11-06 17:32:53 +00:00
cherry
e5c2d6aa5f Switch XEN drivers to use intr_establish_xname()/intr_disestablish()
This completes the API transition.
2017-11-06 15:27:09 +00:00
cherry
af9d0596d9 Summary: xen/x86/intr.c has been retired. Don't try to build it. 2017-11-06 15:21:23 +00:00
christos
4c18e5f405 Change the meaning of the 'D' flag to print errors to stderr instead of
syslog(3) and exit if poll(2) fails (intended to be used with unit-tests).
2017-11-06 15:15:04 +00:00
joerg
27ef7ea778 Assert that __cxa_atexit is not used with NULL as DSO. Don't use
__cxa_atexit directly from atexit, they have different behavior.
2017-11-06 14:26:03 +00:00
ozaki-r
3339f807e5 Kill rtadvd surely even if the tests fail in the middle
It may help PR bin/52701.
2017-11-06 10:51:40 +00:00
snj
dd44830ed1 no more ssh1 code in openssh, so no use defining WITH_SSH1 2017-11-06 10:26:13 +00:00
christos
7de85f86e1 kill another wrong ELFSIZE setting. 2017-11-06 04:43:50 +00:00
christos
d3c8c77eb5 remove more DB_ELFSIZE 2017-11-06 04:08:02 +00:00
christos
eed7a256a0 need to undef KERN_ELFSIZE too here... 2017-11-06 03:51:37 +00:00
christos
d9ddcb906c Use KERN_ELFSIZE if we are in the kernel. 2017-11-06 03:50:33 +00:00
christos
6ad9633b01 Define the ELFSIZE to be KERN_ELFSIZE, since these headers always refer
to kernel objects (even when included from userland).
2017-11-06 03:50:13 +00:00
christos
dc2ac29584 Cleanup and clarify the ELFSIZE mess:
We now have 2 variables automatically set in elf_machdep.h:

    ARCH_ELFSIZE: the size for userland binaries
    KERN_ELFSIZE: the size for the kernel binaries

DB_ELFSIZE has been deleted and KERN_ELFSIZE should have always the
same values DB_ELFSIZE used to have.

In sys/exec_elf.h, if ELFSIZE is not set, it is set to KERN_ELFSIZE
for the kernel and ARCH_ELFSIZE for userland. These defaults should
eliminate the need for most manual ELFSIZE setting.
2017-11-06 03:47:45 +00:00
rin
b5c89ed26f No need to compile in ip_*.c and ipc_*.c to nvi, although they are
necessary for generation of header files.

Reduce 5% of binary size on amd64.
2017-11-06 03:37:52 +00:00
rin
8aa0108579 Introduce HAVE_XXX macros to where they should be.
No binary changes, but possibly improve portability for, e.g.,
sync with pkgsrc version in the near future.
2017-11-06 03:27:34 +00:00
rin
11a43d511f Entries of abbrev[] should be sorted for bsearch(3) to work.
Fix the problem that option abbreviation "fe" is neglected.
2017-11-06 03:21:13 +00:00
rin
b7690eda49 Fix corruption in numbering of options without GTAGS compile-time option.
Now nvi works without GTAGS.
2017-11-06 03:17:37 +00:00
rin
c8115fe9d5 No need to include ip_extern.h here.
No binary changes.
2017-11-06 03:10:26 +00:00
rin
75f37f2751 Remove a hack which declares tigetstr(9) in cl_extern.h.
No binary changes.
2017-11-06 03:08:41 +00:00
rin
328f445980 Fix bogus file location in percentage. 2017-11-06 03:03:54 +00:00
rin
a43f51dd00 Fix buffer overrun caused by lines longer than CONV_BUFFER_SIZE.
Take care of errno == E2BIG case of iconv(3) appropriately.
2017-11-06 03:02:22 +00:00
rin
453fe0dbbc Revive commented out DISKLABEL_EI option to kernel configuration files
that contain FFS_EI option.
2017-11-06 02:57:18 +00:00
christos
a802845e62 - fix "obsolete" skipping to handle obsolete entries that contain other
variables
- skip files particular to other xserver versions than ours.

XXX: How does this build in the build farm?
2017-11-05 22:52:12 +00:00