Commit Graph

284291 Commits

Author SHA1 Message Date
rillig
ba07f3ab99 lint1: remove redundant description from tests 2020-12-28 17:00:37 +00:00
jmcneill
41f3aaf426 Initialize DMA memory when allocating it. Should fix PR# 51734 (hdaudio
"RIRB timeout" on boot).
2020-12-28 16:49:58 +00:00
rillig
76736a6e95 make(1): rename Buf_Expand_1 to Buf_Expand 2020-12-28 15:42:53 +00:00
rillig
a2efb39127 make(1): remove mmap for loading files, only allow files < 1 GiB
Using mmap is beneficial if the loaded data is read-only, or if it is
accessed in random order.  Neither of these applies here.  When loading
a file, make reads it strictly from top to bottom, once.  During
parsing, the loaded data is modified in-place to insert '\0' and '\n'
for terminating strings and lines.  Because of all of this, there is no
benefit in using mmap.

Reading the file using 2 calls to read(2) (one for the data, one for
checking for EOF) loads the data in a single pass, instead of producing
a page fault whenever the parser passes another page boundary.

Use a Buffer for loading the file data, to avoid calling bmake_realloc
directly.

Do not resize the loaded buffer at the end.  Each loaded file is
short-lived anyway, and only a few files are loaded at the same time, so
there is no point in optimizing this part for low memory usage.
2020-12-28 15:21:33 +00:00
thorpej
6ad66e28d1 The i2c-mux bindings specify that if the mux device has a child node named
"i2c-mux", then it is that node that is the parent of the i2c bus children.
This is to accommodate mux devices that may also have other kinds of child
nodes in addition to i2c bus child nodes.
2020-12-28 15:08:06 +00:00
martin
6f4eaa13f9 Add resize 2020-12-28 14:28:54 +00:00
jmcneill
e38ac87555 Remove the AHCI_QUIRK_SKIP_RESET quirk now that the underlying issue is
fixed.
2020-12-28 14:08:42 +00:00
roy
3c0f65c157 Note update to dhcpcd-9.4.0 2020-12-28 13:59:50 +00:00
roy
5311ca77c4 Sync with dhcpcd-9.4.0 2020-12-28 13:57:40 +00:00
roy
f7c1f2f087 Update to dhcpcd-9.4.0 with the following changes:
* DHCP: For anonymous, just use a generic ClientID
 * link: Split hardware address randomisation out of anonymous option
 * link: Only report hardware changes for active interfaces
 * link: Report errors obtaining recv buffer size on overflow
 * hooks: Add NOCARRIER_ROAMING reason
 * hooks: interface_order now reflects priorities again
2020-12-28 13:56:25 +00:00
skrll
5395edda8e Add second space indentation for bit field values for Enhanced Allocation
capabilities.  From thorpej.
2020-12-28 13:12:24 +00:00
rillig
355b925473 lint1: remove unused t_field 2020-12-28 12:56:33 +00:00
rillig
c631bd0242 lint1: remove trailing whitespace 2020-12-28 12:52:45 +00:00
rillig
b435f5a0e0 lint1: add forgotten tests 2020-12-28 12:47:39 +00:00
skrll
69d710afc9 Trailing whitespace 2020-12-28 12:38:44 +00:00
rillig
6f82ec5c48 lint1: use tabular layout for listing the test cases 2020-12-28 12:17:23 +00:00
rillig
28f87c2d54 lint1: remove redundancy from test definitions
Whether a test is supposed to produce lint warnings is determined by the
corresponding .exp file.  There is no need to encode this information
redundantly in the test driver.
2020-12-28 12:01:24 +00:00
rillig
b94ceb4d46 lint1: fix file list for recently added test output 2020-12-28 11:40:54 +00:00
rillig
c64569a17c lint1: enable test cvt_constant
This test had never been enabled.  In t_integration.sh 1.3 from
2014-04-17 it was supposed to be enabled, but due to a line continuation
backslash, the words "test_case check_valid" ended up as the description
of the previous test, cvt_in_ternary.

While here, add the expected test output for d_struct_init_nested to
FILES.
2020-12-28 11:19:01 +00:00
jmcneill
9a7c1dfb77 Make sure to ack IS after PxIS when polling and when using multiple MSI-X
messages.
2020-12-28 11:05:54 +00:00
rillig
e190c76bb9 lint1: add expected output for test d_struct_init_nested 2020-12-28 10:26:23 +00:00
rillig
69ccb624e9 lint1: add test for initializing nested structs
Discovered in var.c 1.774 from 2020-12-28.
2020-12-28 10:22:21 +00:00
rillig
05e935016b lint: for tests with output, ensure that the output matches 2020-12-28 09:58:56 +00:00
rillig
e47165949c lint: sort tests by name 2020-12-28 09:57:14 +00:00
htodd
5ed8424a90 Go into the resize directory to build/install the files since they're in the sets. 2020-12-28 03:48:41 +00:00
rillig
fc135022e2 make(1): replace global preserveUndefined with VARE_KEEP_UNDEF
Controlling the expansion of variable expressions using a global
variable and a VARE flag was inconsistent.

Converting the global variable into a flag had to prerequisites:

1.  The unintended duplicate variable assignment had to be fixed, as
done in parse.c 1.520 from 2020-12-27.  Without this fix, it would have
been necessary to add more flags to Var_Exists and Var_SetWithFlags, and
this would have become too complex.

2.  There had to be a unit test demonstrating that VARE_KEEP_DOLLAR only
applies to the top-level expression and is not passed to the
subexpressions, while VARE_KEEP_UNDEF applies to all subexpressions as
well.  This test is in var-op-expand.mk 1.10 from 2020-12-28, at least
for the ':@word@' modifier.  In ParseModifierPartSubst, VARE_KEEP_UNDEF
is not passed down either, in the same way.
2020-12-28 00:46:24 +00:00
rillig
f56290c2b3 make(1): extend test for modifier parts in ':=' assignments 2020-12-28 00:19:41 +00:00
macallan
f10f192f0e provide (bug)compatibility with vga in WSDISPLAYIO_{PUT|GET}WSCHAR
if row == 0 treat col as linear index into the text / attribute buffer,
transform into proper coordinates as needed for putchar()

with this wsmoused works as expected
2020-12-28 00:14:18 +00:00
rillig
6242d146aa make(1): add test for modifier parts in ':=' assignments 2020-12-27 23:25:33 +00:00
rillig
7c100c94f2 make(1): fix edge case in := with undefined in variable name
Previously, the assignment "VAR${UNDEF} := value" actually assigned to 2
variables.  See var-op-expand.mk for details.
2020-12-27 22:29:37 +00:00
rillig
2395673142 make(1): move test result of var-op-expand.mk from exp to mk
This makes it easier to run this test in older versions of make.  Empty
output means success.
2020-12-27 21:31:27 +00:00
reinoud
de9e35d4ce Make the new resize(1) manpage indistinguisable from the original 2020-12-27 21:25:02 +00:00
rillig
12e256c877 make(1): add more tests for ':=' assignments 2020-12-27 21:19:13 +00:00
reinoud
ef6e52b452 Import Xterm's resize(1) for querying (x)terminal sizes in base for headless
clients
2020-12-27 21:13:17 +00:00
reinoud
e6b71c1487 Implement support for trapping REP CMPS instructions in NVMM.
Qemu would abort hard when NVMM would get a memory trap on the instruction
since it didn't know it.
2020-12-27 20:56:14 +00:00
rillig
3038064b5b make(1): add tests for variable assignments using the ':=' operator 2020-12-27 20:45:52 +00:00
roy
a8a2e383d0 Note openresolv-3.12.0 update 2020-12-27 18:28:25 +00:00
roy
0949b2eded Sync with openresolv-3.12.0 2020-12-27 18:26:50 +00:00
rillig
996e51af2c make(1): skip variable expansion in ParseDependencyTargetWord
The goal of the code is just to skip over the variable expression, thus
there is no need to evaluate it.
2020-12-27 18:22:28 +00:00
rillig
514845e5f2 make(1): add test for ParseDependencyTargetWord 2020-12-27 18:20:26 +00:00
rillig
7eb297894b make(1): split test for indirect modifiers into paragraphs 2020-12-27 17:32:25 +00:00
rillig
970a54cb9f make(1): add tests for parsing indirect modifiers in nested expressions 2020-12-27 17:17:46 +00:00
jmcneill
ca0bc97d2a Zero DMA memory after load, and add PREREAD sync op after to ensure it is visible 2020-12-27 16:52:01 +00:00
rillig
9524640e66 make(1): remove dead code from ApplyModifiersIndirect
At that point, the expression can never be varUndefined.  At the
beginning of ParseVarnameLong, the expression is initialized to a simple
empty string, and that string is only ever converted to varUndefined at
the very end of Var_Parse.
2020-12-27 16:31:58 +00:00
tsutsui
831eba2610 Explicitly include generated ioconf.h for struct cfdrivers. 2020-12-27 16:09:33 +00:00
jmcneill
e7c133d3b6 Add G3 and DevSleep definitions. This changes the mask used by
SControl_IPM_NONE from 0x3 to 0x7.
2020-12-27 15:15:45 +00:00
jmcneill
d9dac464c6 AHCI 1.3.1 section 5.5.3 "Processing Completed Commands" says that we
should clear PxIS before IS.IPS.
2020-12-27 15:13:07 +00:00
rillig
565eefa2e5 make(1): remove outdated comment about string comparisons
Back in 1993, the variables in a context were stored in a linked list.
Searching such a list indeed required literally thousands of calls to
strcmp.  In make.h 1.22 from 1999-09-15, the linked list was replaced
with a hash table, requiring much fewer string comparisons.  Since then,
the rationale doesn't apply anymore.
2020-12-27 14:41:25 +00:00
rillig
8eecc3ec3e make(1): remove unnecessary VPR_ERR_SILENT 2020-12-27 14:02:12 +00:00
rillig
cd38937700 make(1): do not inspect output variables in ParseVarnameShort 2020-12-27 13:15:43 +00:00