252999 Commits

Author SHA1 Message Date
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
he
900a3d47b2 Move s_nearbyint.c out of the cpu ifdefs and into COMMON_SRCS,
which is used everywhere except on vax.  This is to simplify and
to ensure the function is included in the build, allowing us to
re-add the nearbyint() test.
2017-08-11 20:24:56 +00:00
jmcneill
82e84007f0 Defer sdmmc discard operations to the sdmmc task queue. Fixes a panic
introduced by ld.c r1.102.
2017-08-11 18:41:42 +00:00
ginsbach
94951b0fc5 PR bin/42464: Timothy McIntosh: Fix timed interoperability
Fix is a combination of FreeBSD fix and submitted patch.

[From the FreeBSD change]
The timed protocol is not implemented in a compatible way by all
vendors; the size of the tsp_name field is OS-dependent.  4.3BSD
used a 32-byte field, FreeBSD uses MAXHOSTNAMELEN and RedHat
apparently uses a 64-byte field.  As a result, sanity checking code
added a few months ago to detect short packets will fail when
interoperating with one of these other vendors.

Change the short packet detection code to expect a minimum packet
size corresponding to the 4.3BSD implementation, which should be
a safe minimum size.
2017-08-11 16:47:42 +00:00
ginsbach
f4976ff91a PR/52479: Nikolai Lifanov: Add definitions for CRM and CMS. Thanks! 2017-08-11 16:03:14 +00:00
maxv
2e5cfb022c Don't build the ibcs2 module on i386. 2017-08-11 12:58:14 +00:00
jmcneill
96c1990c4a Add an example for configuring the Raspberry Pi 3's bluetooth chip. 2017-08-11 11:57:05 +00:00
jmcneill
6ad4d0f8e5 Make the "bcm43xx" type use H4 transport and add a new "bcm43xx-3wire"
type for use with H5 transport. The naming of the types here matches
those used in a series of BlueZ patches from the Raspberry Pi foundation.
2017-08-11 11:54:08 +00:00
isaki
ac90edd392 Fix a Continue Operation.
Patch from Y.Sugahara.
2017-08-11 07:30:01 +00:00
isaki
f5c75e2eda Allow dmac_alloc_channel() to specify DCR and OCR.
FDC uses 'Cycle Steal Mode with Hold' but ADPCM
should use 'Cycle Steal Mode without Hold' on x68k.
From Y.Suhagara and it was found by XM6i.
2017-08-11 07:08:40 +00:00
isaki
e30341807e Use dmac_prepare_xfer().
From Y.Sugahara.
2017-08-11 06:47:35 +00:00
maxv
6174b0a005 Add a comment about APICBASE_PHYSADDR. Has to do with PR/42597. 2017-08-11 06:27:12 +00:00
maxv
5e3ae52f69 Fix a bug introduced in r1.55, this should be LAPIC_BASE. 2017-08-11 06:18:29 +00:00
nat
9923fa67d0 Ensure the XMIT flag is cleared before calling bth5_start.
This avoids a panic due to a diagnostic assertion.
2017-08-11 00:58:37 +00:00
jmcneill
d73c25d138 attach audio at audiobus (for pad) 2017-08-11 00:00:25 +00:00
ginsbach
6066c254d7 PR/48182: Fix rmdir -p handling of top-level (root) directory.
XXX: pullup-8
XXX: pullup-7
XXX: pullup-6
2017-08-10 22:52:13 +00:00
sjg
f20013011f Avoid full path meta file names for subdir of .OBJDIR 2017-08-10 21:07:48 +00:00
jmcneill
8622efc43c Derive the firmware name from the device's local name instead of
hard-coding BCM4340A1. Search hw.firmware.path for the firmware image
instead of loading it from the current directory.
2017-08-10 20:43:12 +00:00
jakllsch
136f040412 Fix up bcm43xx bluetooth firmware addition. Including mtree directory
addition, and using the correct spelling of the license file name.
2017-08-10 19:42:53 +00:00
perseant
bb20dbc8c8 Separate the C/POSIX locale test from the rest; make it more thorough
and more correct.  This fixes a problem reported by martin@ when the
test is compiled with -funsigned-char.
2017-08-10 19:08:43 +00:00
joerg
e78cfb8eb8 Add IRELATIVE support for ARM, X86 and PowerPC. 2017-08-10 19:03:25 +00:00
jakllsch
6598524cdc remove currently-unused variables that trip up the build 2017-08-10 18:45:20 +00:00
jakllsch
f30bb94d65 enable 'options NTP' 2017-08-10 18:11:47 +00:00
maxv
5ea7bae924 Pff, I forgot to revert my change in these files. I committed only the
GENERIC files, and the message was:

Revert my changes, and re-enable COMPAT_NOMID, COMPAT_09 and COMPAT_43.
Several compat options happen to be dependent on the compat_43_* functions,
the availability of which is (wrongfully) controlled with COMPAT_43. Same
for COMPAT_09.
2017-08-10 17:33:32 +00:00
nat
d3425666e1 Add bcm43xx bluetooth controller firmware to the lists and update relevant
makefiles.
2017-08-10 15:31:49 +00:00
nat
88a08a05ec Add firmware and license for bcm43430 bluetooth uart interface.
This firmware is used by the Raspberry Pi 3 on-board bluetooth controller.

For additional licensing information, see:
https://github.com/raspberrypi/linux/issues/1325#issuecomment-195560582
2017-08-10 15:15:48 +00:00
maxv
d0a2ac1f82 Switch to the temporary stack right away when booted via multiboot. GRUB
happens to give a correct stack, but it is not guaranteed by the spec. This
temporary stack will be reset later, which is fine.

Fixes PR/50245.
2017-08-10 14:13:45 +00:00
nat
b8d8a26e55 Add bluetooth serial uart devices.
RPI3 on-board bluetooth controller works with the bthfive pseudo-device.
2017-08-10 13:48:19 +00:00
nat
3c75ab2f78 Update lists for btuart h5 protocol includes. 2017-08-10 13:40:04 +00:00
maxv
54024111ec Should be comp-obsolete. 2017-08-10 13:39:08 +00:00