Commit Graph

251271 Commits

Author SHA1 Message Date
msaitoh
65539b5973 - Change VMware's 0x0770 from "Virtual USB" to "Virtual EHCI"
- Add VMware's 0x0774(UHCI) and 0x0778(xHCI)
2017-06-06 05:39:06 +00:00
msaitoh
0b02239177 Add missing RCS Id. 2017-06-06 04:56:12 +00:00
knakahara
2c01b23ab6 apply the same fix as crypto.c:r1.83 for crypto_dispatch to crypto_kdispatch. 2017-06-06 04:11:41 +00:00
knakahara
239ae8baa7 avoid crp_q reordering as hardware interrupts.
crypto_{,k}invoke() can be called with holding crp_q_mtx now.
2017-06-06 01:51:39 +00:00
knakahara
15bd7242d4 add locking notes. 2017-06-06 01:48:33 +00:00
knakahara
3fe5189186 restructure locks(2/2): crypto_q_mtx can be adaptive now. 2017-06-06 01:47:23 +00:00
knakahara
bd79c5ac85 restructure locks(1/2): make relation between lock and data explicit.
+ crypto_drv_mtx protects
      -  whole crypto_drivers
    + crypto_drivers[i].cc_lock (new) protects
      - crypto_drivers[i] itself
      - member of crypto_drivers[i]
    + crypto_q_mtx protects
      - crp_q
      - crp_kq
    + crypto_ret_q_mtx protects
      - crp_ret_q
      - crp_ret_kq
      - crypto_exit_flag

I will add locking note later.
2017-06-06 01:45:57 +00:00
jmcneill
b4f7190f81 Add support for stdout-path= kernel cmdline option to override the
console device specified in the FDT.
2017-06-06 00:28:05 +00:00
jmcneill
eb1baa31be Allow plfb to be the console device 2017-06-06 00:26:59 +00:00
jmcneill
800afc3c4c Attach kbd slot to console 2017-06-06 00:26:16 +00:00
jmcneill
63d24fecc6 Fix spelling of WS_DEFAULT_FG and WS_KERNEL_FG options. 2017-06-06 00:25:48 +00:00
christos
85cf7cedea No need to set dtc twice. 2017-06-05 23:55:43 +00:00
christos
5b3fb03fcc add DTC 2017-06-05 23:44:27 +00:00
christos
7f85e44d1f Add dtc 2017-06-05 23:44:08 +00:00
christos
3634c48306 add MKDTC 2017-06-05 23:41:52 +00:00
christos
484e2f7c2e Add dtc 2017-06-05 23:24:29 +00:00
christos
74d52999c0 tools build glue. 2017-06-05 22:44:40 +00:00
sevan
f5be6335dc Improve wording.
Bump date.

ok christos
2017-06-05 21:34:58 +00:00
abhinav
062266a272 Undo the previous
While it fixed the problem of trailing spaces, but if the probe specifier
contained leading spaces, it would brake dtrace. The proper fix would be
to skip the leading spaces in the string as well.

However, it would result in a bigger diff for a very small benefit. While
a new import of dtrace is impending, it's better not to have this change.

Discussed with christos.
2017-06-05 21:19:32 +00:00
skrll
922be9d3d3 Clean out some #if 0'ed or //'ed code 2017-06-05 20:02:11 +00:00
christos
496baf8250 remove the conflict. 2017-06-05 19:17:59 +00:00
christos
461d2d6a4c Add build glue (from skrll) 2017-06-05 18:59:43 +00:00
christos
f8d365c3eb Make this compatible with byacc 2017-06-05 18:59:21 +00:00
christos
5e046fca2c rename include file per our convention. 2017-06-05 18:59:10 +00:00
christos
bc884b7f07 new yacc 2017-06-05 18:56:16 +00:00
christos
6095586479 merge conflicts. 2017-06-05 18:54:30 +00:00
christos
8be1257ff5 Import byacc 20170430 2017-06-05 18:49:47 +00:00
skrll
1b73604dfa Typo in previous 2017-06-05 18:44:13 +00:00
skrll
98483f23e8 Make cpus MI 2017-06-05 18:34:16 +00:00
abhinav
143b096d8f Fix the trailing space in the probe specifier's name in dtrace(1)'s output.
When using dtrace using one of the tracing options, such as -n, -P, -i, -f etc.,
the first line of output from dtrace one is something like this:

sudo dtrace -n 'syscall:::entry /pid == 100/ {@num[probefunc] = count();}'
dtrace: description 'syscall:::entry ' matched 482 probes

There is a trailing space at the end of the probe specifier name ('syscall:::entry ').
This happens beucase dtrace tries to separate the probe name from the predicate and actions
using `{' and `/' as the separators but doesn't consider space also as a possible separator.

Output after this change:
sudo dtrace -n 'syscall:::entry /pid == 100/ {@num[probefunc] = count();}'
dtrace: description 'syscall:::entry' matched 482 probes

ok christos@
2017-06-05 17:11:10 +00:00
macallan
7ea6397d03 a config for PCIe PowerMac G5 models
should have been committed years ago...
2017-06-05 15:20:51 +00:00
msaitoh
b9167d9e28 Add missing return to print the Slot Power Limit Value correctly. 2017-06-05 13:35:33 +00:00
skrll
34286a7236 Removed unused file 2017-06-05 13:15:13 +00:00
skrll
15dfb837be Fix the PMAP_NO_PV_UNCACHED pmap_md_vca_add case where the pmap_update
call would cause problems for pmap_remove_all case where the deferred
activate should not be done...

Add a comment about what's going on.
2017-06-05 10:45:36 +00:00
sborrill
308836c5eb Only match first instance of name and rcvar in file. 2017-06-05 09:20:05 +00:00
knakahara
039014ebf0 fix reading crp_q without holding crypto_q_mtx 2017-06-05 09:09:13 +00:00
knakahara
54c9a772b6 use crypto_checkdriver_uninit() when it may touch uninitialized crypto_drivers. 2017-06-05 09:07:46 +00:00
msaitoh
0be9b65b46 No functional change:
- Relocate definitions in the following order to be easy to understand.
 0) IFM_*MASK
 1) macros to extract various bits of information from the media word.
 2) Media type.
 3) Shared media sub-type.
 4) Status bits.
 5) Shared (global) options
 6) Media dependent definitions.
 7) kernel function declarations.
 7) userland function declarations.
- Add comments.

This change makes me realize that:
 0) RFU bit have never used.
 1) bit 1..0 are shared between Shared media sub-type and Status bits.
    It's little dangerous.
 2) No. 5 of Media type is not used (hole).
 3) Only IEEE80211 uses IFM_MMASK(IFM_MODE()) bits.
 4) IFM_TOKEN's OMASK bits doesn't start from 0x00000100 but starts from
    0x00000200. Is this for BSD/OS compatibility?
2017-06-05 08:50:07 +00:00
maya
01329061eb Add an XXX about the missing flags so it's not buried in a commit
message.

now the XXX count for LFS is 260
2017-06-05 07:47:32 +00:00
manu
dd84686325 Fix buggy dhcrelay(8) requirement to stay in foreground
This version of dhcrelay(8) needed to stay inforeground with -d flag in
order to service requests. Running inbackground turned it deaf to DHCP
requests.

This was caused by wrong kqueue(2) usage, where kevent(2) was used with
a file descriptor obtained by a kqueue(2) call done before fork(2).
kqueue(2) man page says "The queue is not inherited by a child created
with fork(2)". As a result, kevent(2) calls always got EBADF.

The fix is to reorder function calls in dhcrelay(8) main() function.
dhcp_context_create(), which causes kqueue(2) to be invoked, is
moved with its dependencies after fork(2). This matches the code layout
of dhclient(8) and dhcpd(8), which do not have the bug.

The fix was not submitted upstream since latest ISC DHCP code was
refactored and does not have the bug anymore.
2017-06-05 07:35:23 +00:00
kre
58810bf006 Another arithmetic expansion recordregion() fix, this time
calculate the lenght (used to calculate the end) based upon the
correct starting point.

Thanks to John Klos for finding and reporting this one.
2017-06-05 02:15:55 +00:00
maya
3648207f6f Correct confusion between i_flag and i_flags
These will have to be renamed.

Spotted by Riastradh, thanks!
2017-06-05 01:29:21 +00:00
maya
5ad9db10cd Move definition of IN_ALLMOD near the flag it's a mask for.
Now we can see that it doesn't match all the flags, but changing that will
require more careful thought.
2017-06-05 01:01:42 +00:00
kre
aa681add59 PR bin/52272 - fix an off-by one that broke ~ expansions. 2017-06-04 23:40:31 +00:00
pgoyette
52b02286ed Move the hdaudio_cd out of the hdaudio_pci module and into the main
hdaudio module.  Rearrange the inter-module dependencies accordingly.

Should resolve (my) PR kern/49836

XXX Pull-ups needed for netbsd-8 branch
2017-06-04 23:34:55 +00:00
christos
e25f8f9f54 allow build to proceed despite system header warnings. 2017-06-04 21:03:20 +00:00
kre
15ae7e7670 If we are going to keep the MAILPATH % hack, then at least do something
rational.  Since it isn't documented, what "rational" is is up for
discussion, but what it did before was not it (it was nonsense...).
2017-06-04 20:28:13 +00:00
kre
1676135e1a Make cd (really) do cd -P, and not just claim that is what it is doing
while doing a half-hearted, broken, partial, version of cd -L instead.
The latter (as the manual says) is not supported, what's more, it is an
abomination, and should never be supported (anywhere.)

Fix the doc so that the pretense that we notice when a path given crosses
a symlink (and turns on printing of the destination directory) is claimed
no more (that used to be true until late Dec 2016, but was changed).  Now
the print happens if -o cdprint is set, or if an entry from CDPATH that is
not "" or "." is used (or if the "cd dest repl" cd cmd variant is used.)

Fix CDPATH processing: avoid the magic '%' processing that is used for
PATH and MAILPATH from corrupting CDPATH.  The % magic (both variants)
remains undocumented.

Also, don't double the '/' if an entry in PATH or CDPATH ends in '/'
(as in CDPATH=":/usr/src/").  A "cd usr.bin" used to do
chdir("/usr/src//usr.bin").  No more.  This is almost invisible,
and relatively harmless, either way....

Also fix a bug where if a plausible destination directory in CDPATH
was located, but the chdir() failed (eg: permission denied) and then
a later "." or "" CDPATH entry succeeded, "print" mode was turned on.
That is:
	cd /tmp; mkdir bin
	mkdir -p P/bin; chmod 0 P/bin
	CDPATH=/tmp/P:
	cd bin
would cd to /tmp/bin (correctly) but print it (incorrectly).

Also when in "cd dest replace" mode, if the result of the replacement
generates '-' as the path named, as in:
	cd $PWD -
then simply change to '-' (or attempt to, with CDPATH search), rather
than having this being equivalent to "cd -")

Because of these changes, the pwd command (and $PWD) essentially
always acts as pwd -P, even when called as pwd -L (which is still
the default.)   That is, even more than it did before.

Also fixed a (kind of minor) mem management error (CDPATH related)
"whosoever shall padvance must stunalloc before repeating" (and the
same for MAILPATH).
2017-06-04 20:27:14 +00:00
jmcneill
f56828e47e Add a 1MB mapping to the MMU init table to cover the FDT blob in case the
bootloader places it beyond the init mem size.
2017-06-04 19:15:46 +00:00
christos
01db213378 - prevent optimization from omitting the frame pointer (and re-using it);
we use it in our inline assembly.
- convert to c a little assembly to make the code more understandable.
2017-06-04 16:35:59 +00:00