Commit Graph

251201 Commits

Author SHA1 Message Date
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
jmcneill
0b3c41cbae Re-introduce support for multi-block transfers and split transfers to fit
within the 65535-byte limit.
2017-06-04 15:08:30 +00:00
jmcneill
c255568acb Give a hint to controllers in the command flags if we are performing a
transfer with an SDHC capable card. If the controller needs to adjust
command args, it can use this hint to understand how it is encoded.
2017-06-04 15:00:02 +00:00
mbalmer
2409a1e57b it's Rorschach, not Rorshach 2017-06-04 10:58:28 +00:00
skrll
09502e0878 Initialise all the SGI/PPI priorities for all CPUs to mask the interrupts 2017-06-04 10:45:50 +00:00
abhinav
45decb8734 Add downlink, uplink, and upload. 2017-06-04 09:08:06 +00:00
mbalmer
8fb8f475ed more dependiences -> dependencies 2017-06-04 08:54:38 +00:00
abhinav
2be9ef82e5 Fix typo: s/analoguous/analogous/ 2017-06-04 08:53:38 +00:00
mbalmer
251e610611 more dependiences -> dependencies 2017-06-04 08:52:42 +00:00
mbalmer
c5df2cb795 fix typo in comment 2017-06-04 08:50:27 +00:00
abhinav
12e252e9b3 Fix typo: s/compatability/compatibility/ 2017-06-04 08:48:05 +00:00
abhinav
4f5a1ab658 Fix typo 2017-06-04 08:34:34 +00:00
hannken
287643b0da Operations fstrans_start() and fstrans_start_nowait() now always
use FSTRANS_SHARED as lock type so remove the lock type argument.

File system state FSTRANS_SUSPENDING is now unused so remove it.

Regen vnode_if files.

Ride 8.99.1 less than a hour ago.
2017-06-04 08:05:41 +00:00
hannken
775d23a76b Operations fstrans_start() and fstrans_start_nowait() now always
use FSTRANS_SHARED as lock type so remove the lock type argument.
2017-06-04 08:03:26 +00:00
hannken
f5647f853e Locking a layer vnode using the regular bypass routine is no longer
racy.  Undo the change from 2017-03-30 11:16:52, commitid eurqbzuGxGRlryLz
and make vi_lock a krwlock_t again.
2017-06-04 08:02:26 +00:00
hannken
05a181bf68 Now that FSTRANS is part of VOP_*LOCK() remove FSTRANS and vdead_check()
from genfs_.*lock() and assert the vnode state once the vnode is locked.
2017-06-04 08:01:33 +00:00
hannken
48c67e7912 Regen. 2017-06-04 08:00:27 +00:00
hannken
dfcc54aa9c Add "FSTRANS=LOCK" and "FSTRANS=UNLOCK" to vop_lock and vop_unlock.
Add two "static inline" functions to vnode_if.c to handle MPSAFE
and FSTRANS before and after the "VCALL()".

Take FSTRANS and handle error before "VCALL(...vop_lock...)" and
release it after "VCALL(...vop_unlock...)".
2017-06-04 07:59:17 +00:00
hannken
8e1cefd98c A vnode is usually called "active", if it has an associated file system
node and a usecount greater zero.  Therefore rename state "VS_ACTIVE"
to "VS_LOADED" and add a new synthetic state "VS_ACTIVE" for VSTATE_ASSERT()
to assert an active vnode.

Add VSTATE_ASSERT_UNLOCKED() to be used with v_interlock unheld and
move the state assertion macros to sys/vnode_impl.h.
2017-06-04 07:58:29 +00:00
snj
4dd3054d6c zero out for 9.0 2017-06-04 07:18:39 +00:00
snj
62740183f3 roll 8.0 changes into CHANGES.prev 2017-06-04 07:18:22 +00:00