Commit Graph

301480 Commits

Author SHA1 Message Date
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
rillig 645d5d2282 indent: clean up function and variable names 2023-06-10 07:42:41 +00:00
skrll 31fc5d10a5 KASSERT(kpreempt_disabled()) before accessing curcpu() to reflect why
preemption needs to be disabled more clearly.
2023-06-10 07:33:32 +00:00
skrll f59ffdd78c Trailing whitespace. 2023-06-10 07:30:57 +00:00
rillig 334e4e757d indent: explain right-aligned code 2023-06-10 07:05:18 +00:00
skrll fed0d2f283 Whitespace. 2023-06-10 07:02:26 +00:00
rillig f74eb54815 indent: fix token classification in declarations
As a side effect, indent handles _Generic from C11 properly now, at
least in -nlp mode.
2023-06-10 06:52:35 +00:00
rillig 338e471fd4 indent: rename and sort variables in parser state
No functional change.
2023-06-10 06:38:20 +00:00
simonb 9e6cc36b1a Pull git commit way-etc-20140221.tar.bz2 by Xin Li from FreeBSD:
Remove unneeded checks for prelen.

    In order to determine the type of a compressed file, we have to read
    in the first four bytes which may also be important for decompression
    purposes, to do that we would pass the buffer that we have already
    read in, along with the size of it.

    Rename header1 to fourbytes to make that explicit, and remove all
    checks for prelen.
2023-06-10 04:45:25 +00:00