256226 Commits

Author SHA1 Message Date
pgoyette
96bdb2f1f0 * Use 'struct testmsg' rather than 'struct mymsg' (avoids a conflict
with FreeBSD)
* Fix a broken call to open(2) with O_CREAT and no permission argument.
* ANSIfy function definitions.
* Improve failure messages.

From freebsd.org via Brooks Davis - Thanks!
2018-02-03 02:57:15 +00:00
mrg
bc903b6f5b install into gcc-6 subdir. 2018-02-02 20:57:53 +00:00
mrg
f313166862 updates to make it at least build in tools/gcc:
- fix -fdelete-null-pointer-checks default (needs more inspection)
- revert unnecessary local changes in gcc.h, system.h and freebsd-spec.h
- fix local changes to invoke.texi
- update man and info pages
- fix a typo in unwind-seh.c
2018-02-02 20:45:19 +00:00
maxv
e6ee9f6b31 Fix memory leak. Contrary to what the XXX indicates, this place is 100%
reachable remotely.
2018-02-02 10:49:01 +00:00
maxv
0928747602 Style, no functional change. 2018-02-02 09:01:17 +00:00
maxv
a201ebeeff Fix a pretty simple, yet pretty tragic typo: we should return IPPROTO_DONE,
not IPPROTO_NONE. With IPPROTO_NONE we will keep parsing the header chain
on an mbuf that was already freed.
2018-02-02 06:23:45 +00:00
mrg
cdbfa754b1 merge GCC 6.4.0. sanitizer stuff is probably busted, but most
other changes merged easily.

docs need to be regenerated with modern versions still.
2018-02-02 03:41:02 +00:00
mrg
f9a78e0e88 import GCC 6.4.0. see this url for details which are too large to
include here:

   http://gcc.gnu.org/gcc-6/changes.html

the main visible changes appear to be:

- The default mode for C++ is now -std=gnu++14 instead of -std=gnu++98.
- The C and C++ compilers now support attributes on enumerators.
- Diagnostics can now contain "fix-it hints"
- more warnings (some added to -Wall)
2018-02-02 01:58:35 +00:00
mrg
6d188dd0d7 convert HAVE_GCC handling to modern GCC release numbering:
- HAVE_GCC=5 is now the default (vs. HAVE_GCC=53 we've been using for
  GCC 5.4 and GCC 5.5.)
- remove some more GCC 4.8 code.  we don't support GCC 4 here.
- adjust set lists to gcc=5 from gcc=53.

add some basic HAVE_GCC=6 handling (totally unused so far.)
2018-02-02 01:02:39 +00:00
mrg
8d535c2734 "save fp ipi" is an interrupt type counter, mark it so. 2018-02-01 22:58:44 +00:00
macallan
d5a2beca99 add dstemp at iic 2018-02-01 21:47:07 +00:00
macallan
a27a2711eb add driver for Maxim DS1631 High-Precision Digital Thermometer and Thermostat
temperature reading only for now
2018-02-01 21:44:17 +00:00
kamil
6c8e913a6f Install GCC (gcc) headers for Sanitizers
Sync this code with gcc.old.

PR 52265 by Kamil Rytarowski

Proposed and accepted on tech-toolchain@.

Sponsored by <The NetBSD Foundation>
2018-02-01 21:10:46 +00:00
kamil
413e439cd5 Install GCC (gcc.old/) headers for Sanitizers
Install:
 - allocator_interface.h
 - asan_interface.h
 - common_interface_defs.h
 - tsan_interface_atomic.h

Into:
 - /usr/include/gcc-5/sanitizer

Note headers in a comment headers for introduction in future:
 - dfsan_interface.h
 - lsan_interface.h
 - msan_interface.h

Skip a file that will never be relevant on NetBSD:
 - linux_syscall_hooks.h

PR 52265 by Kamil Rytarowski

Proposed and accepted on tech-toolchain@.

Sponsored by <The NetBSD Foundation>
2018-02-01 20:50:22 +00:00
maxv
9c3b74aee7 Remove unused (and a reference to ovbcopy along the way). 2018-02-01 17:22:45 +00:00
maxv
29fe0b7421 Replace ovbcopy -> memmove, same. 2018-02-01 17:16:11 +00:00
maxv
ef29464208 Replace ovbcopy -> memmove, same. 2018-02-01 16:49:34 +00:00
maxv
c4a55989cb Style, no real functional change. 2018-02-01 16:36:01 +00:00
maxv
8c1fdc3b35 Remove this code, RH0 must be dropped, according to RFC5095. FreeBSD and
OpenBSD already do the same. Also, style, and remove useless includes.
2018-02-01 16:23:28 +00:00
maxv
ef80388f64 Fix the ICMP error code. rh was obtained via IP6_EXTHDR_GET, and it is not
guaranteed to be in the same mbuf as ip6, so computing the difference
between the pointers may result in a wrong offset.

ip6 is now unused, so remove it.
2018-02-01 16:17:00 +00:00
maxv
0ae50bb62f Fix use-after-free, the first m_copyback_cow may have freed the mbuf, so
it is wrong to read ip6->ip6_nxt.
2018-02-01 15:53:16 +00:00
jakllsch
fccc36fc19 wait at most one second for controller to complete reset 2018-02-01 14:50:36 +00:00
wiz
705ee2f24d gdb-8.1 out. 2018-02-01 12:09:19 +00:00
msaitoh
22a2925e46 Fix KASSERT panic. When detaching USB host controoler, the following panic
occured:
kernel diagnostic assertion "sc->sc_intrxfer == xfer" failed: file "../../../../dev/usb/ohci.c", line 1720
Clear sc_intrxfer correctly. Adviced by Nick and tested by me.
2018-02-01 09:55:37 +00:00
msaitoh
a4f7562156 Mark DVF_DETACH_SHUTDOWN to USB root HUB. This change makes USB host
controller drivers detachable. OK'd by Nick.
2018-02-01 09:50:48 +00:00
msaitoh
b64b4e776e - Fix panic on shutdown reported by ozaki-r in PR kern/52961. Use callot_halt()
correctly. Tested by me and OK'd by Nick.
- Disable interrupt in och_shutdown() to prevent hangup. OK'd by Nick.
2018-02-01 09:47:47 +00:00
msaitoh
ce638f05e5 - Add PCie Link Activation ECN.
- Use macro.
- KNF.
2018-02-01 09:09:14 +00:00
msaitoh
a607021128 Cleanup:
- Don't pass a capability pointer as a argument of pci_conf_find_cap() and
  determine the first pointer in the pci_conf_find_cap() function.
- Don't pass a capability pointer as a argument of pci_conf_find_extcap()
  because it's not used.
- Remove unsed code.
2018-02-01 08:18:47 +00:00
maxv
a39eb722f7 Style, and remove the 'len' argument from mld_allocbuf(), it is misleading,
we only want a static struct. Beyond that no functional change.
2018-02-01 07:49:19 +00:00
ozaki-r
95dd9007db Commonalize and add tests of creating/destroying interfaces 2018-02-01 05:22:01 +00:00
christos
af5b018293 add a diff for smtpd 2018-02-01 03:32:31 +00:00
christos
ab311767f7 give one more reply to the client before we potentially block it. 2018-02-01 03:32:00 +00:00
christos
214a024004 Add support for blacklistd. 2018-02-01 03:29:41 +00:00
ozaki-r
d10d3470ce Use high priority xcall with a softint of an IPL the same as psref class's one
This mitigates undesired delay of psref_target_destroy under load such as heavy
netowrk traffic that loads softint.
2018-02-01 03:17:00 +00:00
ozaki-r
d3a1d6fa1b Support arbitrary softint IPLs in high priority xcall
The high priority xcall supported only a softint of IPL_SOFTSERIAL. It meant
that it didn't work for xcall callbacks depending on lower IPLs than
IPL_SOFTSERIAL.

The change makes xcall have multiple softints of IPLs and allow users to specify
arbitrary IPLs. Users can specify an IPL by XC_HIGHPRI_IPL passed to the 1st
argument of xc_broadcast or xc_unicast.

Note that xcall still serves requests one by one (i.e., doesn't run them
concurrently) even if requests have different IPLs.

Proposed on tech-kern@
2018-02-01 03:15:28 +00:00
msaitoh
7a6dd1516e "s/above 300W/greater than 300W/" in pci_conf_print_pcie_power(). From
PCIe Base Spec 3.1a Errata 2017-12-13.
2018-02-01 02:50:51 +00:00
mlelstv
7098a0418a Add information about tigon firmware. 2018-01-31 22:12:21 +00:00
macallan
82f21e7e26 - do some magic number reduction
- MPIC doesn't have the OPENPIC_POLARITY_* bit, so don't pretend to
2018-01-31 21:09:53 +00:00
jakllsch
ad63a6a0eb Add sun6i SPI driver.
Currently PIO-only.
2018-01-31 16:24:11 +00:00
jakllsch
bcc691bb0b Add four Winbond devices. 2018-01-31 16:00:03 +00:00
tsutsui
2d53b48b50 Explicitly setup the secondary IDE interrupt of PIIX on Milan.
The secondary IDE interrupt is connected to MBIRQ0 on PIIX, but
the Milan's ROM bootloader (at least version 0.99.7) doesn't seem
to setup the MBIRQ0 register to route it to IRQ15.
2018-01-31 15:36:29 +00:00
maxv
45478fd8ef Correct the check; we want to find IPPROTO_HOPOPTS, not IPV6_HOPOPTS. This
just couldn't work.

By the way, I'm wondering what is the point of this block. Calling
ip6_hopopts_input() won't achieve anything useful, and it could actually
be a problem, because there are several paths in it that call icmp6_error,
which calls ip6_output, and then we're back in the same function. Besides
it is possible to reach icmp6_error with a packet we emitted (as opposed
to a packet we are forwarding), and in that case we are sending an ICMP
error back to ourselves.
2018-01-31 15:23:08 +00:00
maxv
e39bdcbb31 Remove a misleading instruction. We don't care about increasing
m_pkthdr.len in ip6_insertfraghdr(), it gets recomputed after calling
this function.

If we cared there would be a bug, since we don't increase it in the
other branches.
2018-01-31 14:16:28 +00:00
maxv
52eac47c39 Try to sound a little less pessimistic, there is nothing wrong here. 2018-01-31 14:10:11 +00:00
maxv
a71c7a1500 Style, localify, constify, and reorder a bit. No real functional change. 2018-01-31 13:57:08 +00:00
mrg
11a8456034 apply a little more #ifdef INET/INET6. fixes !INET6 builds. 2018-01-31 07:33:18 +00:00
ginsbach
5421bb84d3 Add more "* as a service" and "software defined *" acronyms 2018-01-30 22:45:12 +00:00
jakllsch
95dd03bcab Move mpt_disc_enable setting into is_scsi block.
The field is only 16 bits, and is only refered to in the is_scsi case.
2018-01-30 20:20:38 +00:00
jakllsch
a575d82c37 more-fully initialize mpt_disc_enable 2018-01-30 20:15:41 +00:00
skrll
30c9a55143 whitespace 2018-01-30 19:22:28 +00:00