skrll
91ad7c9ee3
Consistently use ACPI_SIG_SSDT
2021-01-20 15:27:51 +00:00
nia
40b55f7254
remove compat_ossaudio from kernel modules
...
this is only useful with compat_linux and gets autoloaded when
compat_linux is loaded, so there's no reason to bake it into kernels
any more.
2021-01-20 13:22:07 +00:00
nia
25ae59b713
if_tap was made mpsafe in revision 1.102
2021-01-20 10:26:43 +00:00
msaitoh
941b693853
The max number of queue(pair) is not 7 but 8. Inspired by DPDK.
2021-01-20 06:53:17 +00:00
nia
b82de95450
do not enable kernel OSS compat in configs without compat_linux
...
perhaps kernel OSS compat can be merged into compat_linux to avoid
further confusion
2021-01-20 01:20:26 +00:00
jmcneill
8a447bc554
Fix previous; of_search_compatible returns the sentinel when there is no
...
match, so we need to test ->data for NULL, not the return value.
2021-01-20 00:48:49 +00:00
jmcneill
7e08ffe929
update comment to match new reality
2021-01-20 00:41:15 +00:00
rillig
77ec80e5c4
make(1): extract DetermineKindOfConditional from Cond_EvalLine
2021-01-19 22:12:44 +00:00
rillig
6ce12378ce
make(1): remove struct If from evaluation of conditionals
...
The variant of the .if directive can be stored in the CondParser
directly, instead of pointing to a struct If.
The type CondParser may have to be renamed since the condition is not
only parsed, it is evaluated as well.
No functional change.
2021-01-19 21:55:20 +00:00
rillig
85aee7a6f7
make(1): remove do-not-format markers from comments
...
These markers had been used inconsistently. Furthermore the source code
had not been formatted automatically before 2020 at all, otherwise there
wouldn't have been any trailing whitespace left.
2021-01-19 20:51:46 +00:00
rillig
1f01563cf6
make(1): add test for unsupported relational string comparisons
2021-01-19 19:54:57 +00:00
rillig
e367f4ad3b
make(1): distinguish between tokens and results in conditionals
...
No functional change.
2021-01-19 19:29:35 +00:00
rillig
36e59ad6cd
make(1): update references to the renamed CondParser functions
2021-01-19 18:20:30 +00:00
rillig
3f1cfbbbf3
make(1): condense code for parsing and evaluating conditionals
2021-01-19 18:18:43 +00:00
rillig
877d3c828f
make(1): add error handling for edge case in malformed conditions
2021-01-19 18:13:37 +00:00
rillig
5237562935
make(1): demonstrate missing error handling for malformed conditions
2021-01-19 18:09:12 +00:00
rillig
b2f11fa740
make(1): fix possible return values for CondParser_Term
...
The invalid return values didn't do any harm since CondParser_Factor and
CondParser_Expr passed them through, and CondParser_Eval carefully
checks for TOK_TRUE or TOK_FALSE and treats everything else as an error.
No change in observable behavior since there is no debug logging in that
part of the code.
2021-01-19 17:57:07 +00:00
rillig
a15e03fc3b
make(1): demonstrate wrong return value in CondParser_Term
2021-01-19 17:49:13 +00:00
thorpej
1ebde59816
of_compatible() is a hokey API (returning -1 for no match) and nothing
...
here relies on its reverse-index return value semantics, so just use
of_match_compat_data() instead.
2021-01-19 14:39:20 +00:00
thorpej
163f322bf3
Use device_compatible_entry / of_search_compatible() for the child
...
nodes rather than using of_compatible() to match against different
sets of compatible strings.
2021-01-19 14:35:30 +00:00
wiz
833b5e5e34
Fix syntax error
2021-01-19 08:10:17 +00:00
rillig
7f3d33209d
make(1): normalize shell error messages in tests
...
Newly supported is bash, which outputs "bash: line 123".
2021-01-19 05:49:33 +00:00
rillig
74f981c380
make(1): fix tests for :gmtime and :localtime for 32-bit time_t
...
The comparison operator had accidentally been '!=' instead of '=='.
While here, proofread the documentation and add references for where the
32-bit time_t is defined on Linux and FreeBSD.
2021-01-19 05:26:34 +00:00
riastradh
81a8f89859
Add note about enabling TPM and rnd(4) source.
2021-01-19 05:05:39 +00:00
simonb
3daa70af17
The read/write/send/recv system calls return ssize_t because -1 is
...
returned on error. Therefore we must restrict the lengths of any
buffers to NETBSD32_SSIZE_MAX with compat32 to avoid garbage return
values.
Fixes ATF lib/libc/sys/t_write:write_err.
2021-01-19 03:41:22 +00:00
thorpej
b9a5258529
Use device_compatible_entry / of_search_compatible() to match the clock
...
type rather than calling of_compatible() on different sets of compatible
strings.
2021-01-19 03:25:50 +00:00
simonb
650cb29c0b
KNF consistency: No parentheses are needed around the return value.
2021-01-19 03:20:13 +00:00
simonb
59099a5539
Whitespace nits.
2021-01-19 02:40:07 +00:00
simonb
d625a73d15
Also print mmap return value and error code #ifdef DEBUG_MMAP.
2021-01-19 01:47:58 +00:00
thorpej
e06543a0dc
Use device_compatible_entry / of_search_compatible() for the GICv3
...
quirk table.
2021-01-19 00:40:17 +00:00
thorpej
622c6ae70c
Use device_compatible_entry / of_search_compatible() rather than
...
matching against multiple sets of compatibility strings.
2021-01-19 00:38:52 +00:00
thorpej
3f7c862bbb
Use device_compatible_entry / of_search_compatible() rather than
...
matching against multiple sets of compatinbility strings.
2021-01-19 00:36:09 +00:00
thorpej
dc432dbd11
Use device_compatible_entry / of_search_compatible() rather than matching
...
against multiple sets of compatibility strings.
2021-01-19 00:35:10 +00:00
jmcneill
2d4afb623c
Fix a comment
2021-01-18 23:43:34 +00:00
simonb
ec694a9214
s/u_intN_t/uintN_t/
2021-01-18 23:14:22 +00:00
rillig
f7ed7c6314
lint: clean up code (mostly comments)
2021-01-18 20:02:34 +00:00
rillig
e6a24e382c
lint: clean up member names of control_structure and comments
2021-01-18 19:24:09 +00:00
rillig
ab98215817
lint: flatten check_global_variable_size
2021-01-18 19:21:52 +00:00
rillig
d2d8f95fba
lint: rename grammar rule lorange
...
It looked too much like an orange.
2021-01-18 18:53:28 +00:00
rillig
b3ab7760b1
lint: rename grammar rules to align with C99 6.7.6
2021-01-18 18:18:20 +00:00
rillig
812f69ad94
lint: fix precedence of __builtin_offsetof
...
A previous version of the C grammar contained TBUILTIN_SIZEOF in this
place, which had two typos. Therefore it was handled as a separate
token that was otherwise ignored. Curiously, bison didn't warn about
this obvious inconsistency.
2021-01-18 18:14:57 +00:00
rillig
bbb6d35ddc
lint: sort tokens in grammar
2021-01-18 17:59:51 +00:00
rillig
c99c3baa72
lint: rename T_SOU to T_STRUCT_OR_UNION
...
This abbreviation occurred too seldom to be used.
2021-01-18 17:54:50 +00:00
rillig
0e8cc5870c
lint: don't treat restrict and _Thread_local as volatile anymore
2021-01-18 17:47:44 +00:00
rillig
17f1c77b1c
lint: fix assertion failure for restrict and _Thread_local
2021-01-18 17:43:43 +00:00
rillig
8981d6d027
lint: add more test cases for duplicate type qualifiers
2021-01-18 17:41:04 +00:00
rillig
913778c38f
lint: align token names with the wording from C99
2021-01-18 17:20:15 +00:00
rillig
c69974d11b
lint: remove redundant operators from lexer
...
Several tokens correspond to exactly one operator. For these tokens,
the operator is never accessed, therefore it is confusing to associate
it with the token.
2021-01-18 17:11:14 +00:00
rillig
0b05675f93
lint: replace abort with lint_assert
2021-01-18 16:47:46 +00:00
rillig
fc7975677b
lint: expand abbreviations in function names
2021-01-18 16:41:57 +00:00