251779 Commits

Author SHA1 Message Date
ozaki-r
d15c5ed0e5 Fix wrong comment 2017-06-27 04:56:13 +00:00
ozaki-r
7eee4dba21 Check existence of ARP/NDP entries
Checking ARP/NDP entries is valid rather than checking routes.
2017-06-27 04:52:45 +00:00
kre
3c2922e71c Properly support EDITRC - use it as (naming) the file when setting
up libedit, and re-do the config whenever EDITRC is set.
2017-06-27 02:22:08 +00:00
kre
00f36e26a6 Include EDITRC in doc. 2017-06-27 01:22:58 +00:00
kre
80ba09ce07 Document EDITRC 2017-06-27 01:13:44 +00:00
kre
4fa1b5993a Make the default editrc file be $EDITRC (from env) if set, falling back
to $HOME/.editrc otherwise.    Better support for this in sh coming.
2017-06-27 00:47:37 +00:00
kre
a3be5e86c2 Make arg parsing in kill POSIX compatible with POSIX (XBD 2.12) by
parsing the way getopt(3) would, if only it could handle the (required)
-signumber and -signame options.  This adds two "features" to kill,
-ssigname and -lstatus now work (ie: one word with all of the '-', the
option letter, and its value) and "--" also now works (kill -- -pid1 pid2
will not attempt to send the pid1 signal to pid2, but rather SIGTERM
to the pid1 process group and pid2).  It is still the case that (apart
from --) at most 1 option is permitted (-l, -s, -signame, or -signumber.)

Note that we now have an ambiguity, -sname might mean "-s name" or
send the signal "sname" - if one of those turns out to be valid, that
will be accepted, otherwise the error message will indicate that "sname"
is not a valid signal name, not that "name" is not.   Keeping the "-s"
and signal name as separate words avoids this issue.

Also caution: should someone be weird enough to define a new signal
name (as in the part after SIG) which is almost the same name as an
existing name that starts with 'S' by adding an extra 'S' prepended
(eg: adding a SIGSSYS) then the ambiguity problem becomes much worse.
In that case "kill -ssys" will be resolved in favour of the "-s"
flag being used (the more modern syntax) and would send a SIGSYS, rather
that a SIGSSYS.    So don't do that.

While here, switch to using signalname(3) (bye bye NSIG, et. al.), add
some constipation, and show a little pride in formatting the signal names
for "kill -l" (and in the usage when appropriate -- same routine.)   Respect
COLUMNS (POSIX XBD 8.3) as primary specification of the width (terminal width,
not number of columns to print) for kill -l, a very small value for COLUMNS
will cause kill -l output to list signals one per line, a very large
value will cause them all to be listed on one line.) (eg: "COLUMNS=1 kill -l")

TODO: the signal printing for "trap -l" and that for "kill -l"
should be switched to use a common routine (for the sh builtin versions.)

All changes of relevance here are to bin/kill - the (minor) changes to bin/sh
are only to properly expose the builtin version of getenv(3) so the builtin
version of kill can use it (ie: make its prototype available.)
2017-06-26 22:09:16 +00:00
is
2f3b2fcbe9 Add first channel of mcs7720. 2017-06-26 20:36:01 +00:00
is
988ef954ee regenerate 2017-06-26 20:33:45 +00:00
is
40dd8a55df yet another moschip serial adapter chip. 2017-06-26 20:28:42 +00:00
christos
57d721417b source .editrc after we initialize so that commands persist! 2017-06-26 20:28:01 +00:00
christos
e38bede9f0 PR/52333: Jia-Ju Bai: explicitly pass BUS_DMA_NOWAIT to bus_dmamap_load_mbuf()
called from an interrupt context. It should not matter since the maps are
constructed with BUS_DMA_ALLOCNOW, but :-)
2017-06-26 18:23:49 +00:00
flxd
985c7e15a0 Add GENERIC_USB to vax kernel sets, but not to sysinst (yet), as bootloader
cannot handle kernels that large (yet).
2017-06-26 17:45:56 +00:00
joerg
ff6447e3f3 Honor HOST_CXX. 2017-06-26 17:38:10 +00:00
christos
8e469e5ba9 amend the patch to close. 2017-06-26 17:12:05 +00:00
christos
fc0e1a5a51 If we've authenticated, we are already in the child and we don't need the
socket anymore.
XXX: pullup-7, pullup-8
2017-06-26 17:10:39 +00:00
nat
44c2442df2 Better solution to mulaw/alaw conversion on big endian systems/sound
devices.
2017-06-26 12:17:09 +00:00
nat
1fc42cc67a Rectify an error in mulaw/alaw conversion to big endian. The atf audio
test should pass on sparc again.
2017-06-26 11:45:46 +00:00
ozaki-r
50558ab0df Fix usage of ip6_get_membership
It may set nothing to ifp even if returning 0. So we need to NULL-clear
ifp before calling it.

Fix PR kern/52324
2017-06-26 08:01:53 +00:00
ozaki-r
59bb97369e Drop RTF_UP from a routing message of a deleted ARP/NDP entry 2017-06-26 06:59:56 +00:00
ozaki-r
61f13eaa6e Fix ifdef; care about a case w/ INET6 and w/o INET 2017-06-26 06:58:42 +00:00
knakahara
fb94c95efb simplify mutex_enter/exit(crypto_q_mtx), and fix missing exit. 2017-06-26 05:34:48 +00:00
msaitoh
14a58cc1cc - Make new wm_phy_post_reset() and use this function at all location after
reseting phy.
- Move the location of calling wm_get_hw_control. Same as Linux.
- Add I219 specific wokaround for legacy interrupt. From OpenBSD.
- Move the location of calling wm_lplu_d0_disable().
- Fix latency calculation in wm_platform_pm_pch_lpt().
- Set OBFF water mark and enable OBFF on PCH_LPT and newer.
2017-06-26 04:22:46 +00:00
msaitoh
f99b415579 Add missing "else" in wm_nvm_release(). 2017-06-26 04:18:14 +00:00
msaitoh
3022ef5023 - Flush every MTA write. Same as Linux.
- Move the location of calling wm_set_filter. Same as some other OSes.
- Add CSR_WRITE_FLUSH() after writing WMREG_CTRL in wm_gmii_mediachange().
2017-06-26 04:15:06 +00:00
msaitoh
0354ca9353 - Fix wm_set_ral():
- Fix a bug that a RAL was written at incorrect address when the index number
   is more than 16 on 82544 and newer.
 - The layout of RAL on PCH* are different from others.
- Remove wrong comment.
2017-06-26 04:09:02 +00:00
msaitoh
de3925eaed Print sc_flags with snprintb(). 2017-06-26 04:03:34 +00:00
ozaki-r
057fd82362 Improve backward compatibility of (fake) routing messages on adding an ARP/NDP entry
A message originally included only DST and GATEWAY. Restore it.
2017-06-26 03:16:28 +00:00
sevan
a11ffcb3fc Add a heading to describe the class of device axe(4) is. 2017-06-26 03:15:16 +00:00
ozaki-r
60f1157fbd Fix usage of routing messages on arp -d and ndp -d
It didn't work as we expected; we should set RTA_GATEWAY not
RTA_IFP on RTM_GET to return an if_index and the kernel should
use it on RTM_DELETE.
2017-06-26 03:13:40 +00:00
bouyer
eec75166ef Xen/i386PAE is special, in that top-level entries are not in per-pmap
tables but per-CPU pages. pmap_alloc_level() takes care of making new
entries actives when the kernel pmap is updated, so always use pmap_kernel()
is this case too.
2017-06-25 22:16:46 +00:00
bouyer
27ea75e324 Restore alignement of _end to rev 1.12: this is where the Xen loader
puts the symbol table and should not be changed (maybe we should change
this symbol name).
keep kernel_end PAGE-aligned.
Makes ddb work again on Xen/i386
2017-06-25 20:22:32 +00:00
christos
74bac439bd PR/52331: ydc driver: sleep-under-spin-mutex bugs in yds_allocmem
Don't hold the spin interrupt mutex while calling yds_init from resume.
Instead use a flag to short-circuit the interrupt while disabled.
2017-06-25 16:07:48 +00:00
christos
d8f3d5d812 PR/52330: Jia-Ju Bai: mpii driver: a sleep-in-interrupt bug in mpii_intr
Since the enclosing routime mpii_event_raid already calls malloc with
M_NOWAIT, fix the cache routine to do the same. While there check the
result of the cache routine and change some error prints to aprint.
2017-06-25 15:56:32 +00:00
maxv
60c4be697d NULL deref, found by Mootja; not sure how to fix it, so just add a big XXX 2017-06-25 12:44:04 +00:00
bouyer
230aeee0d0 Page tables are not writable under Xen, so we can't memcpy() to them.
Rewite to do the copy using pmap_pte_set() in the Xen case.
2017-06-25 12:42:40 +00:00
maxv
b76f52ce46 memory leak, found by Mootja; it seems that we should check the return
value of 'fw_bindadd' in several other places, but whatever
2017-06-25 12:39:27 +00:00
maxv
c946e3d519 dumb instruction 2017-06-25 12:29:32 +00:00
maxv
49bf63c13e spl leak, found by Mootja 2017-06-25 12:27:13 +00:00
maxv
5d59d12047 two spl leaks, found by Mootja 2017-06-25 12:25:02 +00:00
maxv
5a2b751d3f spl leak, found by Mootja 2017-06-25 12:21:00 +00:00
maxv
6302dc5aed uninitialized var, found by Mootja; don't know which value to put, so add
a big XXX
2017-06-25 12:15:04 +00:00
maxv
124dc82122 memory leak, found by Mootja 2017-06-25 12:11:30 +00:00
maxv
cb93557c8e spl leak, found by Mootja 2017-06-25 12:07:23 +00:00
maxv
5d5e3e94f7 uninitialized variable, found by Mootja 2017-06-25 12:04:37 +00:00
maxv
9737d7fadf spl leak, found by Mootja a long time ago 2017-06-25 12:02:59 +00:00
nat
3bd1421aac Don't autoconfig for 24 bits precision. It does not work as yet. 2017-06-25 10:28:22 +00:00
skrll
4da65738bc Comment out a bunch of thing so that a GENERIC kernel boots on my cats
with cyclone firmware
2017-06-25 10:06:27 +00:00
nat
3b2cb78ffd Don't start playback or recording on the hw ring only stream ring buffers. 2017-06-25 09:42:40 +00:00
nat
007b784021 Set hw parameters for linear to ulaw filters.
Tested by flxd@.
2017-06-25 09:40:17 +00:00