Commit Graph

282557 Commits

Author SHA1 Message Date
msaitoh
c8b8553e08 Fix a bug that "ifconfig xx0 media none" set LINK_STATE_UNKNOWN instead of
LINK_STATE_DOWN.

XXX We should check for other PHY drivers, too.
2020-11-04 09:15:10 +00:00
skrll
938a5fbe96 Fix some of the previous - I must have compile tested the wrong tree 2020-11-04 07:51:08 +00:00
skrll
84305e753a whitespace in comments 2020-11-04 07:41:34 +00:00
skrll
25d0daa97c typo in comment 2020-11-04 07:40:15 +00:00
skrll
70c2d72ac2 RCSID and whitespace police... 2020-11-04 07:09:45 +00:00
skrll
a71b947652 Miscellaneous updates to reflect riscv-privileged-20190608.pdf
Some from zmcgrew@
2020-11-04 06:56:56 +00:00
skrll
8318de92c4 Remove incorrect comment 2020-11-04 06:24:44 +00:00
rillig
523c5384c3 make(1): fix indentation in parse.c 2020-11-04 06:09:55 +00:00
rillig
6704cd8729 make(1): fix typo and reasoning in test varparse-undef-partial.mk 2020-11-04 05:10:01 +00:00
rillig
203505b9fe make(1): negate discardUndefined to preserveUndefined 2020-11-04 04:49:32 +00:00
rillig
dd4859fa30 make(1): fix line numbers in test output of cmdline-undefined.mk 2020-11-04 04:47:56 +00:00
rillig
5e72f6e7d2 make(1): add test for undefined variables in command line arguments
The variable discardUndefined has an implicit negation in its name,
which makes it hard to understand.  Plus, most of the time it is true.
It's better to have a flag that is false most of the time and has a
positive name.

On the first attempt of inverting that variable, I stumbled upon
MainParseArgs, which initially leaves discardUndefined == FALSE, and
after handling the dashed options, sets it to TRUE.  This would make a
difference when more command line arguments would be added later via the
.MAKEFLAGS special target.

Upon further inspection, the only place where discardUndefined is used
is in VarAssign_EvalSubst in parse.c, and that place is not reachable
from any of the dashed options.  Therefore, discardUndefined could
already be set at the very beginning of MainParseArgs or even when
initializing the global variable itself, without any observable
difference.

Not even the ::= variable modifier could do anything about this since it
is not reachable from the dashed command line options as well, and in
addition, it expands its right-hand side in any case, always discarding
undefined variables.  Oh, these little inconsistencies everywhere.
2020-11-04 04:24:57 +00:00
rillig
7023b446cd make(1): rename oldVars to discardUndefined
While here, moved all the documentation about this variable into a
single place.
2020-11-04 03:37:51 +00:00
rillig
a3c3bec228 make(1): add missing enum tag for GNodeMade 2020-11-04 03:13:46 +00:00
rillig
b6a037a9ff make(1): document that "old-style" variables are older than 1993 2020-11-04 02:57:42 +00:00
rillig
a83e30d15b make(1): remove redundant condition from ApplyModifiersIndirect
Whenever varUndefined is returned from another function, that is only
done if eflags does not contain VARE_UNDEFERR.  Therefore, testing for
that flag is unnecessary.
2020-11-04 02:53:18 +00:00
rillig
8d109d6d28 make(1): replace emptyString with allocated empty string
Special-casing this variable only made the code more complicated.
Furthermore, it is not related to error handling in any way and
therefore distracted the reader from this topic.
2020-11-04 02:26:21 +00:00
chs
951bbd420a Restrict to root any command option that prints kernel addresses. 2020-11-04 01:37:55 +00:00
chs
9133d44ed0 In uvmpd_tryownerlock(), if the initial try-lock of the owner lock fails
then rather than do more try-locks and eventually sleep for a tick,
take a hold on the current owner's lock, drop the page interlock,
and acquire the lock that we took the hold on in a blocking fashion.
After we get the lock, check if the lock that we acquired is still
the lock for the owner of the page that we're interested in.
If the owner hasn't changed then can proceed with this page,
otherwise we will skip this page and move on to a different page.
This dramatically reduces the amount of time that the pagedaemon
sleeps trying to get locks, since even 1 tick is an eternity to sleep
in this context and it was easy to trigger that case in practice,
and with this new method the pagedaemon only very rarely actually blocks
to acquire the lock that it wants since the object locks are adaptive,
and when the pagedaemon does block then the amount of time it spends
sleeping will be generally be much less than 1 tick.
2020-11-04 01:30:19 +00:00
christos
476a50b768 Handle dummy timestamp better and check for I/O errors. From khorben@ 2020-11-03 22:21:43 +00:00
christos
f5c7935f9c PR/55780: Bernd Sieker: setsockopt in Linux emulation misses some options 2020-11-03 22:08:44 +00:00
rillig
ee9222c118 make(1): clean up unit tests 2020-11-03 18:42:33 +00:00
rillig
cc87f8b86e make(1): in tests, replace "dollar character" with "dollar sign" 2020-11-03 18:21:36 +00:00
rillig
dd404992ad make(1): add all printable ASCII characters to the varmod-subst test
I must have missed some of them when I originally wrote the test.  Not
sure how that happened.  While here, use the official Unicode names.
2020-11-03 18:18:31 +00:00
rillig
71ebef30e6 make(1): document the interesting part of the test forsubst.mk 2020-11-03 17:59:27 +00:00
rillig
1f77b83ee6 make(1): clean up tests error.mk and escape.mk 2020-11-03 17:38:45 +00:00
rillig
4351c3a136 make(1): in test forloop.mk, replace shell execution with .info
It's easier to read in the code, and the output has line information to
better relate the output to the code.
2020-11-03 17:37:57 +00:00
rillig
f7a7da5460 make(1): move tests from directives.mk to separate tests 2020-11-03 17:17:31 +00:00
mlelstv
133f2ddbfa Use kmem_* instead of malloc/free and use interrupt versions as the
code can be called from interrupt.
2020-11-03 15:06:50 +00:00
mlelstv
7751cea6dd state struct should use fixed size types. NFCI. 2020-11-03 12:04:56 +00:00
tnn
78c2a58449 tmux.h: annotate file_vprint() as printflike 2020-11-03 10:52:58 +00:00
nia
a9d493a299 ossaudio(3): Reduce code duplication for querying capabilities 2020-11-03 09:46:00 +00:00
nia
f0eecf651f ossaudio(3): Return device playback and capture capabilities in GETCAPS 2020-11-03 09:36:12 +00:00
nia
54df53aac3 ossaudio(3): More capability defines from OSSv4 2020-11-03 09:33:53 +00:00
mlelstv
36ee44d680 Continue parsing frames after empty payload.
Add diagnostic messages.
2020-11-03 09:26:41 +00:00
skrll
0b77a9f798 Fix build on aa64 2020-11-03 08:41:30 +00:00
skrll
22966387c0 The ARM C Language Extenstion document defines __ARCH_ARM as the integer
macro indicating the current ARM instruction set.  Let's use it.

PR/55778: evbarm64 GENERIC64 kernel fails to build with clang

XXX Handle the fact that for an ARM architecture ARMvX.Y then,
XXX __ARM_ARCH= X * 100 + Y. E.g. for ARMv8.1 __ARM_ARCH = 801.
2020-11-03 08:34:17 +00:00
nia
7a66cf0ffc ossaudio(3): return correctly initialized return value in unlikely
error case. pointed out by tnn.
2020-11-03 08:24:33 +00:00
rillig
0d60dc067d make(1): document test for parsing of variable assignments 2020-11-02 22:59:48 +00:00
christos
358fc34e52 From wajap at github:
- eat whitespace in infnan checks
- set fval to 0 if we are not a floating point number
2020-11-02 22:58:51 +00:00
rillig
3ef5b1ede1 make(1): fix undefined behavior in Parse_IsVar
Even though the pointer was out-of-bounds, a crash was unlikely in
practice, since typical C compilers don't check the pointers for invalid
values after each modification.  The memory it pointed to was not
accessed though.
2020-11-02 22:50:55 +00:00
rillig
662cb994c0 make(1): fix line numbers in test output of varname.mk 2020-11-02 22:46:52 +00:00
rillig
3f600bbee8 make(1): document undefined behavior in Parse_IsVar
Sigh.  If only C could be compiled in strict mode that detects these
out-of-bounds memory accesses.
2020-11-02 22:44:29 +00:00
rillig
4b61bc4789 make(1): fix test for parsing obscure variable names
I had forgotten the :U modifier.  Without that modifier, there's no
chance that the variable names would come out correctly.
2020-11-02 22:29:48 +00:00
rillig
18305c7a81 make(1): add tests for parsing ob obscure variable names 2020-11-02 22:16:24 +00:00
rillig
12e48a64c0 make(1): remove obsolete POSTPROC.varname from unit tests
It was not needed anymore since 2020-10-18.
2020-11-02 21:53:28 +00:00
rillig
0b15b1d9eb make(1): fix error handling on parse errors in variable expressions
This change doesn't change any of the unit tests since the error
handling code is not yet complete, see the many "handle errors" in the
code.  Nevertheless, the "out_FALSE_res = VPR_PARSE_MSG" was wrong since
the error message was only printed in lint mode, not in default mode.
2020-11-02 21:34:40 +00:00
rillig
b4bc4f4041 make(1): improve local variable name in ParseVarname 2020-11-02 21:24:23 +00:00
rillig
a948288bbf make(1): document that skipping a modifier on parse errors is risky 2020-11-02 21:15:00 +00:00
rillig
07a98669b2 make(1): clean up CompatDeleteTarget and CompatInterrupt 2020-11-02 20:50:24 +00:00