Commit Graph

301538 Commits

Author SHA1 Message Date
rillig b520fe89c4 indent: clean up debugging code 2023-06-14 09:57:02 +00:00
rillig ed7b435925 indent: clean up handling of comments
One less moving part in the parser state.

No functional change.
2023-06-14 09:31:05 +00:00
rillig bf8496de58 indent: remove another flag from parser state
When processing a comment, the flag ps.next_col_1 was not used for the
next token, but for a line within a comment.  As its scope was limited
to a single comment, there is no need to store it any longer than that

No functional change.
2023-06-14 08:36:51 +00:00
rillig 61c5d6b6d0 indent: remove a redundant flag from the parser state
No functional change.
2023-06-14 08:25:15 +00:00
rillig b2fe5a24a1 indent: merge parser symbols for stmt and stmt_list
They were handled in exactly the same way.
2023-06-14 07:20:54 +00:00
rin 80ee4201a3 Fix previous. Patch mistakenly applied somehow... 2023-06-14 02:28:41 +00:00
rin fb9e2578de Make PCI_ADDR_FIXUP depended on PCI_BUS_FIXUP.
It is no-op if PCI_BUS_FIXUP is missing.
2023-06-14 01:27:47 +00:00
rin a6ca37147b Cite src/sys/rump/README.compileopts as a reference for MKRUMP. 2023-06-14 01:16:28 +00:00
rin fc7406911a Avoid void * pointer arithmetic; cast to UINT8 * explicitly.
No binary changes for aarch64 at least.
2023-06-14 00:52:25 +00:00
rin dea74b4df0 Add missing member for terminating sentinel. 2023-06-14 00:42:21 +00:00
rin 8d23affcbe Sprinkle braces around _PROP_RWLOCK_UNLOCK() in ``if'' block.
It is expanded into /* nothing */ for _STANDALONE.
2023-06-14 00:35:18 +00:00
rin 744263e3e0 Add /* FALLTHROUGH */ comment for sure. 2023-06-14 00:28:55 +00:00
nisimura b71626ce39 force PHY loopback while uengine reloading process as tianocore/EDK2 UEFI
mentions.  A piece of comment updates.
2023-06-14 00:07:22 +00:00
christos 60ac4a8d22 fix build.sh wrong variable use that caused nbmake to be always rebult
(Jan-Benedict Glaw)
2023-06-13 16:56:00 +00:00
macallan f7a4579527 - use sx_wait() to avoid stalling the MBus
- request 32bit alignment for glyphcache cells
2023-06-13 10:11:17 +00:00
macallan a570f7127d add counter to periodically drain the instruction queue in order to avoid
stalling the MBus during long SX operations
adapted from xf86-video-suncg14
2023-06-13 10:09:31 +00:00
nisimura 8480285751 major code quality improvements, descriptive comments, code density. 2023-06-13 00:15:52 +00:00
gutteridge 87061830a7 Remove redundant variable assignment
It got clobbered by another assignment later, and this has been the
case since r. 1.1 of the file.
2023-06-12 23:29:32 +00:00
alnsn 54c8a92f80 Add DPDK. 2023-06-12 21:00:38 +00:00
skrll 08c3a07533 risc-v: MULTIPROCESSOR support
Add MULTIPROCESSOR support for RISC-V, but leave disabled for the moment
as it's not 100% stable.

Some other improvements to spl and cpu identification / reporting.
2023-06-12 19:04:13 +00:00
skrll ee610eee3f sort 2023-06-12 18:59:57 +00:00
skrll ecd207b422 Call / define fdtbus_cpus_md_attach for platforms with cpus @ fdt.
The RISC-V binding here seems somewhat of an abuse, but it exists in
mainline linux.
2023-06-12 12:58:17 +00:00
skrll a810700be5 Fix compile for non-MULTIPROCESSOR and PMAP_TLB_MAX > 1 builds 2023-06-12 06:47:17 +00:00
skrll 2562139d67 Fixup UVMHIST builds 2023-06-12 06:36:28 +00:00
lukem 6aba6b1625 BUILDING: remove duplication from mk.conf(5)
Remove all "make" variables / mk.conf(5) variables already documented
in mk.conf(5).  The duplication was a maintenance headache, as I've
experienced over recent weeks getting the build documentation up to
date.

Add notes clarifying that manual page references are to the NetBSD
manual pages, not to the host manual pages, and how to format from
source, or find online at https://man.netbsd.org.

Add explicit links to the mdoc(7) in-tree source for mk.conf(5),
hier(7), and release(7) because those are directly relevant to the host
build information in BUILDING.

Note: We don't normally need these notes for native documentation,
but BUILDING is intended for users on host systems which might not
be NetBSD(-current).

Add missing defaults.
2023-06-11 20:34:14 +00:00
lukem 345e3df083 mk.conf(5): more variables from BUILDING and build.sh
Add more variables from build.sh, BUILDING, and various
Makefile's documentation:
	CDEXTRA CONFIGOPTS KERNARCHDIR KERNCONFDIR
	KERNOBJDIR KERNSRCDIR LOCALTIME

Default sentences now consistently end with ".".
Consistency tweaks in "otherwise".
Editorial tweaks.
2023-06-11 20:33:46 +00:00
dholland c644e0a71e +DPAA 2023-06-11 17:54:18 +00:00
christos a3782680c6 Correct history (Brad Smith) 2023-06-11 15:28:21 +00:00
lukem 3dd6409cfb BUILDING: update from mk.conf(5). reorder
Sync variable entries from mk.conf(5).

Merge the "make variables for full builds" section into the previous.
Having two separate sections and some entries duplicated was confusing
when searching for variables.
2023-06-11 10:49:43 +00:00
lukem 20f6009ff2 mk.conf(5): add remaining vars from BUILDING
Add more variables from BUILDING:
	INSTALLBOOT_BOARDS INSTALLWORLDDIR NOCLEANDIR
	NODISTRIBDIRS NOINCLUDES.

Add build.sh related notes (from BUILDING).

Clarify "target" as "target architecture" where appropriate
(versus a make target where that's obvious from context.)

Move all obsolete and deprecated variables to
new "OBSOLETE VARIABLES" section at the end.

Add some per-variable editorial improvements from BUILDING.

Change sub headings to headings; it's easier to read.
(I don't know why mdoc doesn't allow blank lines around .Ss)
2023-06-11 10:44:33 +00:00
lukem 922f5e2588 more NBUILDJOBS deprecation
The NBUILDJOBS option was deprecated in 2002;
there's no need to keep warning about it,
remove from params / show-params,
and only document as obsolete.
2023-06-11 10:43:51 +00:00
rillig 4e81574b54 indent: rename misleading variable
The name started with 'line_start', but the value is not always the
value from the beginning of the line.

No functional change.
2023-06-10 21:36:38 +00:00
rillig 5cfa711364 indent: fix debug output
When the parser state was first printed, there were unintended diff
markers.  Treat the previous lexer symbol like the other parts of the
parser state, as omitting it from the diff output is confusing.
2023-06-10 20:37:12 +00:00
rillig bae713c412 indent: fix line break between semicolon and brace 2023-06-10 18:46:42 +00:00
rillig 3d124ccbbf tests/indent: add move coverage tests 2023-06-10 17:56:29 +00:00
rillig 8bcc07836b indent: fix stack overflow, add more tests
For several parser symbols, 2 symbols are pushed in a row, which led to
an out-of-bounds write.
2023-06-10 17:35:40 +00:00
dbj 54caabcd8c gratuitous commit to fix spelling error 2023-06-10 17:14:57 +00:00
rillig b3bf029a38 indent: miscellaneous cleanups 2023-06-10 16:43:55 +00:00
lukem 5b36091254 sets: enhance MAKEVERBOSE support
Add more messages for various sets operations.
Add ${_MKMSG_CREATE} to bsd.own.mk.

Enhance maketars to be a bit more verbose even with -q,
to make it more obvious why certain operations may be slow.
May help debugging PR 47562.
2023-06-10 16:08:41 +00:00
lukem 7e6b40ad41 maketars: add comments for skipped mtree keywords
Reorder skipkeys alphabetically and add comment explaining
the purpose and why sha256 is not part of the variable.
2023-06-10 14:11:08 +00:00
lukem 35d5234ef6 3RDPARTY: libarchive latest is 3.6.2. note local fixes 2023-06-10 13:16:44 +00:00
rillig 41d9e13054 indent: clean up function names, fix blank lines in debug output 2023-06-10 13:03:17 +00:00
rillig 9e1c17039c indent: in debug mode, null-terminate buffers 2023-06-10 12:59:31 +00:00
lukem 305799b10f libarchive: fail if name_max is 0
Add error handling to the USE_READDIR_R code paths that set name_max
from struct statfs or statvfs; if the determined name_max == 0
then return an error.

Avoids a crash in tree_dir_next_posix() when the calculation of
dirent_size from name_max is too small for the memory allocated
for struct dirent.

Submitted to upstream in pull request
	https://github.com/libarchive/libarchive/pull/1903

Should fix PR bin/56080
2023-06-10 12:46:32 +00:00
rillig dd953560a9 indent: distinguish blank lines from newline characters 2023-06-10 11:01:58 +00:00
rillig 89f19ae349 indent: clean up debug output
In diff mode, don't print a diff of the very first parser state, instead
print its full state.

Don't print headings for empty sections of the parser state.
2023-06-10 09:31:41 +00:00
skrll 044debd7d3 Remove magic numbers. NFCI.
Copyright maintenance while I'm here.
2023-06-10 09:18:50 +00:00
rillig f6ead5d9af indent: fix indentation of continuation lines in initializers 2023-06-10 08:17:04 +00:00
rillig c5d0de36c0 indent: extract output of an indented line to separate function 2023-06-10 07:53:00 +00:00
rillig 8fd18c4a8a indent: clean up function names and order in output 2023-06-10 07:48:55 +00:00