Commit Graph

252828 Commits

Author SHA1 Message Date
mlelstv
146bc77840 validate length for discard operation and split operation when byte length
doesn't fit into 'int'.
2017-08-13 22:23:16 +00:00
jakllsch
0d0313ba43 Support more varieties of USB keyboard reports.
The previous code asssumed reports would closely match the Bootstrap
Keyboard Protocol.  This is no longer always the case, particularly
with higher-end keyboards.
2017-08-13 22:19:56 +00:00
jakllsch
8780d8c54a Fix memory leak in report parsing error paths. 2017-08-13 21:11:45 +00:00
mlelstv
0bbad10443 Don't time out the discard work queue here. Either destroying a work queue
with pending work items panics or accessing freed resources from the work
item will crash. The timeout needs to be handled gracefully by the driver
that implements the discard operation.

Fixes parts of PR 50725.
2017-08-13 21:00:58 +00:00
jmcneill
b3e175fc24 Add support for H3 CPUX clock. 2017-08-13 19:18:08 +00:00
wiz
3ee579e3bc Indent to avoid line breaks in tag; give tag width in table; use Nm
to refer to hciattach because we'll probably never have hciattach(8).
2017-08-13 18:34:03 +00:00
jmcneill
c02e5d790a enable gregulator 2017-08-13 18:27:48 +00:00
jmcneill
721ac4a3ed Add GPIO regulator driver. 2017-08-13 18:27:31 +00:00
jmcneill
97d3260c03 Add fdtbus_gpio_acquire_index for accessing multi-xref gpios properties. 2017-08-13 18:27:11 +00:00
wiz
77a9c1779f Sort/merge errors. 2017-08-13 18:19:44 +00:00
wiz
5f1b378690 Remove superfluous Tn markup. 2017-08-13 18:18:57 +00:00
christos
014b6d5aae PR/52483: Ryo ONODERA: Add support for ALPS PS/2 pointing devices 2017-08-13 08:49:27 +00:00
christos
7ee97454b7 Add ALPS pms support 2017-08-13 08:48:30 +00:00
maxv
22b2248cb1 Mmh, restore %cs and %ss on Xen. Otherwise (unpriv) userland could set a
non-three ring, causing the hypervisor to send a fatal interrupt to the
kernel.
2017-08-13 08:07:52 +00:00
maxv
f05e68c341 Remove unused include, remove dead code, KNF, and fix off-by-one. 2017-08-13 07:16:44 +00:00
isaki
7abef65771 Remove mixer chan from sc_audiochan.
Now sc_audiochan contains opened audio chan (and first special
element) only.

First I splitted sc_audiochan into sc_audiochan which has
audio chan (and first special element) and sc_mixerchan
which has mixer chan only.  However nobody else refers this
sc_mixerchan except additions to list and deletions from
list.  So mixer chan's list is not necessary.
2017-08-13 05:04:08 +00:00
isaki
e0da01f938 Move defines to the appropriate place. 2017-08-13 04:09:27 +00:00
ginsbach
626fa0a1b6 PR lib/15802: Shuuichirou Murata: Add missing xdr_rpcbs_rmtcalllist_ptr
There was a missing call to xdr_rpcbs_rmtcalllist_ptr in xdr_rpcb_stat.
This fixes issues with RPCBPROC_GETSTAT not working correctly with
systems that correctly implement the XDR encode/decode routine.

XXX: pullup-8
XXX: pullup-7
XXX: pullup-6
2017-08-13 01:08:41 +00:00
jmcneill
09953da5db Add support for deprecated pin configuration and multiplex bindings. 2017-08-12 23:42:52 +00:00
kre
c21db8bd78 For libi386 major bump. 2017-08-12 21:46:01 +00:00
maxv
0dac6a5c0e Bump - removal of i386_vm86 and i386_pmc. 2017-08-12 19:48:28 +00:00
kre
85730dc548 Remove what is now an unused variable. One less build issue... 2017-08-12 19:06:23 +00:00
maxv
98d232f3f3 Remove references to PSL_VM (implicitly vm86). 2017-08-12 13:16:14 +00:00
maxv
4db48c5855 Remove the vm86 fields from the trap frame. It seems to me that we could
now remove the '-16' when initializing pcb_esp0.
2017-08-12 13:11:23 +00:00
maxv
b017fd3cea Remove the vm86 fields from the pcb. 2017-08-12 12:48:47 +00:00
maxv
d70d1674fb Don't include opt_vm86.h. 2017-08-12 12:33:31 +00:00
jmcneill
3d97e8977a Update Raspberry Pi 3 example to use dplcom0 instead of dty00 2017-08-12 11:45:20 +00:00
jmcneill
645a775d92 For boards with bluetooth, use AUX UART for console and PLCOM for bt. 2017-08-12 11:44:26 +00:00
jmcneill
40fab7550d add dial-out device node for plcom 2017-08-12 11:41:21 +00:00
martin
db5d35351f Do not deref a NULL pointer if no current media has been selected.
This error condition does not happen with properly working hardware, but it is
no good reason for a kernel panic either.
2017-08-12 11:21:15 +00:00
mlelstv
d001a53273 tag arcmsr scsipi adapter and pci interrupt as MPSAFE. I/O is now done
without taking kernel lock.
2017-08-12 11:03:47 +00:00
joerg
610e531ea3 Add sparc/sparc64 support for irelative relocations. 2017-08-12 09:03:27 +00:00
maxv
2e8d627d3a State that this is SVR3, not iBCS2. 2017-08-12 08:45:58 +00:00
maxv
cc29cfc600 All things considered, remove the i386_pmc API. I deprecated it some
months ago, and clearly no one should be using it.

(reminder: our new PMCs use the same sysarch, but the arguments are
opaque and not compatible with the previous versions)
2017-08-12 08:21:30 +00:00
maxv
d560e5b9ac Remove reference to vm86. 2017-08-12 08:03:57 +00:00
maxv
ee34266187 Remove the i386_vm86 API (instead of just deprecating it). This API is not
available anymore, and any binary using it won't function correctly.
2017-08-12 07:59:42 +00:00
maxv
91dc6b1b45 Remove the vm86 tests. 2017-08-12 07:40:43 +00:00
maxv
1d3d2f0d7e Remove vm86.
Pass 4.
2017-08-12 07:35:08 +00:00
maxv
9e6f33ab7c Remove vm86.
Pass 3.
2017-08-12 07:21:57 +00:00
maxv
7a3268ffdb Remove vm86. Simplifies a number of critical places.
Pass 2.
2017-08-12 07:07:53 +00:00
maxv
99813fb172 Remove support for vm86 on i386. It is bug-friendly, and there is no point
in having kernel support for this: the instruction set of the CPU is small,
and it can easily be emulated in userland entirely. There are also several
assumptions in the code that are not respected, and the slightest confusion
in the trap frame can lead to ring0 exploits.

vm86 has received zero maintenance. As far as I can tell, it was added
20 years ago in order to make doscmd work. But doscmd has not been
maintained either, and was removed from pkgsrc in 2011. dosbox can be used
instead: it does not require kernel support, and will produce better
results than our flimsy implementation.

Pass 1. (many pieces still in the tree)
2017-08-12 06:46:13 +00:00
ginsbach
e5907619c8 Fix a couple comments and a spacing nit.
- Change a XXX comment that no longer applies.
- Add a clarifying comment.
2017-08-12 03:29:23 +00:00
ginsbach
bc29482829 PR lib/50316: Gracefully handle a zero number of members argument.
Taken from FreeBSD (which fixed this same issue long ago).

XXX: pullup-8
XXX: pullup-7
XXX: pullup-6
2017-08-12 01:10:04 +00:00
ginsbach
7ab23dde59 PR lib/51952: Brad Harder: Apply upstream ada959c9
[From upstream tcpdump]
 In pcap_compile(), first check whether the pcap_t is activated.

 Before we allocate or otherwise set up anything, check whether the
 pcap_t is activated, and set the error message string and return -1 if
 it's not.

 That way, we don't go through the cleanup code in that code path -
 there's nothing to clean up.

 Fixes the issue in GitHub pull request #552.

XXX: pullup-8
2017-08-12 00:43:25 +00:00
macallan
0c7c75bc0c set display output parameters according to properties
Now VGA output works as intended on my Mini 2. DVI is still garbled ( but
visible ) and Mini 1 is untested.
2017-08-11 22:59:05 +00:00
macallan
80a0b9eb24 set properties to signal Mac Mini video output wiring to radeonfb 2017-08-11 22:55:49 +00:00
macallan
f2c7556229 add wsfont now that it's actually usable on at least some drivers 2017-08-11 21:03:23 +00:00
ryo
7f104f6c10 fix filename. sorry 2017-08-11 20:47:58 +00:00
ginsbach
6361925b16 Remove spurious error(1) inserted compiler error message comments. 2017-08-11 20:32:34 +00:00
he
86dc433afa Re-enable the test for nearbyint(), now that all ports (save vax,
which has a separate #if section here) should have nearbyint().
2017-08-11 20:31:58 +00:00