Commit Graph

251271 Commits

Author SHA1 Message Date
knakahara
d7b8965d35 sanitize count used for kmem_alloc size.
Hmm, who uses CIOCNGSESSION, CIOCNFSESSION, CIOCNCRYPTM or CIOCNFKEYM?
2017-06-08 03:02:26 +00:00
msaitoh
d6348fce0d - Add some missing baudrate entries
- Add 1000BASE-KX and 2500BASE-KX
2017-06-08 02:27:30 +00:00
kre
09cdcbe36d I am an idiot... revert the previous unintended commit. 2017-06-08 02:25:43 +00:00
kre
205db3db95 Improve the (new) LINENO section, markup changes (with thanks to wiz@ for
assistace) and some better wording in a few placed.
2017-06-08 02:23:51 +00:00
chs
ec5ea71a90 move some buffer cache internals declarations from buf.h to vfs_bio.c.
this is needed to avoid name conflicts with ZFS and also
makes it clearer that other code shouldn't be messing with these.
remove the LFS debug code that poked around in bufqueues and
remove the BQ_EMPTY bufqueue since nothing uses it anymore.
provide a function to let LFS and wapbl read the value of nbuf for now.
2017-06-08 01:23:01 +00:00
chs
67c81802f1 allow cv_signal() immediately followed by cv_destroy().
this sequence is used by ZFS in a couple places and by supporting it
natively we can undo our local ZFS changes that avoided it.
note that this is only legal when all of the waiters use cv_wait()
and not any of the other variations, and lockdebug will catch
any violations of this rule.
2017-06-08 01:09:52 +00:00
christos
da7de9a430 Put back crypto_checkdriver(); use it when we need to make sure that we
get back a cryptocap that has been initialized.
2017-06-08 00:17:02 +00:00
perseant
8b7adb7bf9 Change t_sprintf to an expected failure, since we don't respect the empty
thousands separator of the C/POSIX locale (PR standards/52282).
2017-06-07 22:59:42 +00:00
kamil
da61917c5f EV_SET(2) - simplify description
Note only the information that it does not evaluate multiple times its
parameters.

Suggested by <wiz>.
2017-06-07 20:54:59 +00:00
abhinav
d482d5b4c5 s/filesystem/file system/ 2017-06-07 15:24:50 +00:00
wiz
bd0c36e3c1 Add missing argument to macro. 2017-06-07 13:50:57 +00:00
wiz
c090f1523c New sentence, new line. Whitespace. 2017-06-07 13:49:48 +00:00
skrll
ee83b6cae4 Hook in dtc/libfdt now that it builds for me 2017-06-07 10:38:33 +00:00
kre
51791eabef PR bin/52280
removescapes_nl in expari() even when not quoted,
CRTNONL's appear regardless of quoting (unlike CTLESC).
2017-06-07 09:31:30 +00:00
he
c3b0fe10b3 Change the deprecation notice about ofwboot.elf to say that it may
still be required in some cases, as observed by some MacMini users.
2017-06-07 09:14:32 +00:00
skrll
472e2e1f1e fix tlb_record_asids 2nd arg to match usage - it's a maximum asid value
and not a mask
2017-06-07 08:45:51 +00:00
kre
f7d07fc011 Undo some over agressive fixes for a (pre-commit) bug that did not
need these changes to be fixed - and these cause problems in another
absurd use case.   Either of these issues is unlikely to be seen by
anyone who isn't an idiot masochist...
2017-06-07 08:10:31 +00:00
kre
69c48e3253 Set the line number before expanding args, not after. As the line_number
would have usually been set earlier, this change is mostly an effective
no-op, but it is better this way (just in case) - not observed to have
caused any problems.
2017-06-07 08:07:50 +00:00
kre
ce6f66ce50 Unbreak (at least) i386 build .... I have no idea why this built for me on
amd64 (problem was missing prototype for snprintf witout <stdio.h>)

While here, add some (DEBUG mode only) tracing that proved useful in
solving another problem.
2017-06-07 08:06:22 +00:00
skrll
1e070c27ee Use __BIT(). No functional change. 2017-06-07 07:06:26 +00:00
msaitoh
796ab034ad Fix to print the following bit fields correctly.
-  Supported Link Speeds Vector in LCAP2
  -  Lower SKP OS Generation Supported Speed Vector  in LCAP2
  -  Lower SKP OS Reception Supported Speed Vector in LCAP2
  -  Enable Lower SKP OS Generation Vector in LCTL3

Note that the above bitfields start from 0 and the follwing bitfields start
from 1:
  -  Maximum Link Speed in LCAP
  -  Current Link Speed in LCSR
  -  Target Link Speed in LCSR2
2017-06-07 05:30:49 +00:00
abhinav
46dffe54d1 s/filesystem/file system/
Thanks to Thomas for pointing out that in NetBSD man pages we try to use the convention of writing it
as "file system".
2017-06-07 05:26:19 +00:00
kre
727a69dc1d A better LINENO implementation. This version deletes (well, #if 0's out)
the LINENO hack, and uses the LINENO var for both ${LINENO} and $((LINENO)).
(Code to invert the LINENO hack when required, like when de-compiling the
execution tree to provide the "jobs" command strings, is still included,
that can be deleted when the LINENO hack is completely removed - look for
refs to VSLINENO throughout the code.  The var funclinno in parser.c can
also be removed, it is used only for the LINENO hack.)

This version produces accurate results: $((LINENO)) was made as accurate
as the LINENO hack made ${LINENO} which is very good.  That's why the
LINENO hack is not yet completely removed, so it can be easily re-enabled.
If you can tell the difference when it is in use, or not in use, then
something has broken (or I managed to miss a case somewhere.)

The way that LINENO works is documented in its own (new) section in the
man page, so nothing more about that, or the new options, etc, here.

This version introduces the possibility of having a "reference" function
associated with a variable, which gets called whenever the value of the
variable is required (that's what implements LINENO).  There is just
one function pointer however, so any particular variable gets at most
one of the set function (as used for PATH, etc) or the reference function.
The VFUNCREF bit in the var flags indicates which func the variable in
question uses (if any - the func ptr, as before, can be NULL).

I would not call the results of this perfect yet, but it is close.
2017-06-07 05:08:32 +00:00
kre
fd38bbe2e4 An initial attempt at implementing LINENO to meet the specs.
Aside from one problem (not too hard to fix if it was ever needed) this version
does about as well as most other shell implementations when expanding
$((LINENO)) and better for ${LINENO} as it retains the "LINENO hack" for the
latter, and that is very accurate.

Unfortunately that means that ${LINENO} and $((LINENO)) do not always produce
the same value when used on the same line (a defect that other shells do not
share - aside from the FreeBSD sh as it is today, where only the LINENO hack
exists and so (like for us before this commit) $((LINENO)) is always either
0, or at least whatever value was last set, perhaps by
	LINENO=${LINENO}
which does actually work ... for that one line...)

This could be corrected by simply removing the LINENO hack (look for the string
LINENO in parser.c) in which case ${LINENO} and $((LINENO)) would give the
same (not perfectly accurate) values, as do most other shells.

POSIX requires that LINENO be set before each command, and this implementation
does that fairly literally - except that we only bother before the commands
which actually expand words (for, case and simple commands).   Unfortunately
this forgot that expansions also occur in redirects, and the other compound
commands can also have redirects, so if a redirect on one of the other compound
commands wants to use the value of $((LINENO)) as a part of a generated file
name, then it will get an incorrect value.  This is the "one problem" above.
(Because the LINENO hack is still enabled, using ${LINENO} works.)

This could be fixed, but as this version of the LINENO implementation is just
for reference purposes (it will be superseded within minutes by a better one)
I won't bother.  However should anyone else decide that this is a better choice
(it is probably a smaller implementation, in terms of code & data space then
the replacement, but also I would expect, slower, and definitely less accurate)
this defect is something to bear in mind, and fix.

This version retains the *BSD historical practice that line numbers in functions
(all functions) count from 1 from the start of the function, and elsewhere,
start from 1 from where the shell started reading the input file/stream in
question.  In an "eval" expression the line number starts at the line of the
"eval" (and then increases if the input is a multi-line string).

Note: this version is not documented (beyond as much as LINENO was before)
hence this slightly longer than usual commit message.
2017-06-07 04:44:17 +00:00
knakahara
2d7472e23b vlan(4) MP-ify. contributed by s-yamaguchi@IIJ, thanks.
XXX Pull-ups needed for netbsd-8 branch
2017-06-07 03:53:11 +00:00
msaitoh
5ea8386aad Fix typo. 2017-06-07 03:32:39 +00:00
msaitoh
6fa1e87bf8 - Add some bit definitions:
- Unidirectional enable
   - Unidirectional ability
   - Extended Next Page
   - Receive Next Page Location Able
   - Received Next Page Storage Location
   - Data Link Layer Classification capability
   - Enable Physical Layer Classification
   - Invalid Class in PD Class
   - PSE Status bit definitions
- Sort registers
- Modify comments.
2017-06-07 03:21:31 +00:00
msaitoh
db571ad1db Fix typos. 2017-06-07 03:08:44 +00:00
kre
37406ae4e9 Fix a typo (or rather a remnant of an earlier intent). 2017-06-06 22:38:52 +00:00
jmcneill
91ce610635 Fix a race between ld_sdmmc_start and ld_sdmmc_dobio that could result in
tasks getting lost from the task queue. The symptom of this is a NULL
deref in ld_sdmmc_start since the code assumes that a task will always be
available from the pool.

This changes the code to use pcq(9) instead of a TAILQ to manage the free
task list.
2017-06-06 21:01:07 +00:00
skrll
97d12aea86 Reduce number of ALIGN macros defines and rename to avoid namespace clash 2017-06-06 20:19:04 +00:00
abhinav
1a8ce3a63b Bump date for previous
Fix typo: fileystem -> filesystem
2017-06-06 20:12:54 +00:00
ryo
1a52494ae8 whitespace police 2017-06-06 19:59:10 +00:00
christos
a3ddac400c since ln(1) now uses linkat(2) provide a dumb wrapper. 2017-06-06 19:48:42 +00:00
christos
8bbf9e0cc7 - acquire lock
- use c99 loop indexes
- initialize featp
2017-06-06 18:08:23 +00:00
kamil
bc0c5fd82b Update the EV_SET() description with newer implementation.
EV_SET(2) is a macro again, that wraps an inline function which is still
new in NetBSD 8.0.

Sponsored by <The NetBSD Foundation>
2017-06-06 17:01:59 +00:00
macallan
471068c972 SMU config goo 2017-06-06 15:58:59 +00:00
macallan
8ff9ad3262 SMU support, from Phileas Fogg 2017-06-06 15:58:17 +00:00
skrll
a6ce035c71 Document current dtc/libfdt status (even if it is a mess) 2017-06-06 12:56:42 +00:00
jmcneill
e2e89c4db3 Allow 'console=fb' to act as a shortcut on vexpress for
'stdout-path=/smb@08000000/motherboard/iofpga@3,00000000/clcd@1f0000'
2017-06-06 09:56:57 +00:00
jmcneill
98ec040ad9 Initialize boot_args before bootstrap for the benefit of platform code. 2017-06-06 09:56:00 +00:00
skrll
e846b19637 Disable dtc/libfdt for now 2017-06-06 08:21:53 +00:00
skrll
03dcb730d4 Add libfdt 2017-06-06 07:45:39 +00:00
nat
aaa8c67e4e Style change. 2017-06-06 07:32:41 +00:00
nat
59a3cdc9c9 pad blocksize 1024 -> 8192. Helps when sleeping in rate limiter. 2017-06-06 07:31:40 +00:00
nat
153aad6495 Simplification of rate limiter. It now works uni/multiprocessor. 2017-06-06 07:29:35 +00:00
nat
77e338f6c3 sc_bytes_count needs to be set in pad_audio_open not pad_open. 2017-06-06 07:27:15 +00:00
nat
518307b9ac Express BYTESTOSLEEP as an 64 bit integer.
Use BYTESTOSLEEP in expresson of BYTES_PER_SEC.
2017-06-06 07:18:38 +00:00
mbalmer
92375b0ab6 Fix a typo, i366 -> i386.
From PR misc/52274.
2017-06-06 07:13:06 +00:00
msaitoh
7ac7b3f845 Regen. 2017-06-06 05:39:28 +00:00