Commit Graph

304338 Commits

Author SHA1 Message Date
riastradh aa4a13ebd7 xennetback_xenbus.c: Nix trailing whitespace again.
No functional change intended.
2023-12-30 21:46:52 +00:00
rillig 588350fc12 tests/lint: sync comments in test for strict bool mode with reality 2023-12-30 17:09:42 +00:00
rillig dd2389327b lint: in strict bool mode, allow 'a & b' in controlling expressions
Previously, the expression 'a & b' was only treated as bool if 'a' had
enum type.  This didn't cover cases in which bit masks were implemented
using integer types instead of enum sets.
2023-12-30 15:37:27 +00:00
rillig 7252c1d112 tests/lint: test '&' for non-enum types in strict bool mode 2023-12-30 15:18:57 +00:00
rillig 5c34ccd44c make: clean up freeing of suffixes
No functional change.
2023-12-30 15:00:56 +00:00
rillig 9eee056f1b make: remove unused field from suffix
No functional change.
2023-12-30 13:28:06 +00:00
martin 21ef827d2a PR 57803: fix typo in test title. 2023-12-30 13:09:24 +00:00
msaitoh 10733ca41e ixgbe: Use #ifdef RSC
This feature (hardware receive side coalescing) has been disabled all along,
so enclose the code with #ifdef RSC.
2023-12-30 06:16:44 +00:00
msaitoh b1336ec3de ixgbe: Change "me" from 32bit to 8bit because the max is 128.
This commit doesn't change the real size of ix_queue, tx_ring and rx_ring
because of the alignment.
2023-12-30 06:16:03 +00:00
thorpej 0aa7982a1c Re-factor the Goldfish RTC driver into attach-front-end and generic
back-end; Goldfish virtual devices can be found on virtual platforms
that don't use FDT.
2023-12-29 23:31:44 +00:00
chs bf002e116b tun: add missing kpreempt_enable() if pktq_enqueue() fails 2023-12-29 23:01:02 +00:00
chs 5b8c340b31 drm: put_cpu() should enable preemption, not disable it again 2023-12-29 22:58:23 +00:00
mrg 5971e316fd initial import of isl 0.26.
this enables additional optimisations in GCC.  from the README:

isl is a thread-safe C library for manipulating sets and relations
of integer points bounded by affine constraints.  The descriptions of
the sets and relations may involve both parameters and existentially
quantified variables.  All computations are performed in exact integer
arithmetic using GMP.

isl is released under the MIT license, but depends on the LGPL GMP
library.
2023-12-29 22:07:40 +00:00
rillig e13d43880d make: unexport list memory management functions
They are only used in a single source file.

No functional change.
2023-12-29 20:43:58 +00:00
rillig 3ef4ce2dc2 make: fix declared types of list nodes
No functional change.
2023-12-29 18:53:24 +00:00
kre 6654ff1c5a PR bin/57773
Fix another bug reported by Jarle Fredrik Greipsland and added
to PR bin/57773, which relates to calculating the length of a
positional parameter which contains CTL chars -- yes, this one
really is that specific, though it would also affect the special
param $0 if it were to contain CTL chars, and its length was
requested - that is fixed with the same change.  And note: $0
is not affected because it looks like a positional param (it
isn't, ${00} would be, but is always unset, ${0} isn't) all
special parame would be affected the same way, but the only one
that can ever contain a CTL char is $0 I believe.  ($@ and $*
were affected, but just because they're expanding the positional
params ... ${#@} and ${#*} are both technically unspecified
expansions - and different shells produce different results.

See the PR for the details of this one (and the previous).

Thanks for the PR.

XXX pullup to everything.
2023-12-29 15:49:23 +00:00
rillig 57b231c1d6 tests/make: test the '::=' assignment modifier 2023-12-29 15:47:03 +00:00
rillig dddafea765 make: simplify debug message for the ':@var@...@' modifier
The previous variant was hard to understand.
2023-12-29 14:57:00 +00:00
rillig 322a9b8797 make: clean up variable handling
All variables from the command line scope have the fromCmd flag set, so
there is no need to check for it.

Inline redundant local variables.

Variables from a scope cannot be short-lived, so there is no need to
call VarFreeShortLived.

No functional change.
2023-12-29 13:25:15 +00:00
rillig 045a444ef3 make: clean up comments
No binary change, except for line numbers in assertions.
2023-12-29 12:59:43 +00:00
rillig 27ffd1cd8f make: simplify memory allocation for string buffers
In edge cases and short-lived buffers, the initial buffer size is
irrelevant, so use the default.

No functional change.
2023-12-29 12:20:55 +00:00
wiz 5e3d878975 Update ARFLAGS for new binutils.
In binutils 2.34, 'l' was a no-op.
In binutils 2.39, it is used to specify library dependencies.

Remove 'l' from ARFLAGS.

From Takahiro Kambe in PR 57565.
2023-12-29 09:17:37 +00:00
skrll 82b93b2f78 dwcmmc_fdt_bus_clock: fix an aprint_debug_dev frequency units botch. 2023-12-29 08:02:47 +00:00
msaitoh 98b608b8a7 ixgbe: Use #ifdef LRO more to reduce the size of struct rx_ring. 2023-12-29 07:36:47 +00:00
msaitoh 06e59e1318 ixgbe: Remove unused to reduce the size of struct rx_ring. 2023-12-29 07:34:20 +00:00
tsutsui 7897550811 Use proper macro for the 030/040 TT registers to map LUNA's I/O spaces.
No binary change.
2023-12-29 02:30:35 +00:00
christos e7a5d8902b PR/57179: Christof Meerwald: Fix bugs in fetch_cache_{get,put}. 2023-12-29 00:55:46 +00:00
andvar 79548a514e s/synax/syntax/ in test description. 2023-12-28 20:04:10 +00:00
andvar 2e8b4c7fee s/informtion/information/ in comments. 2023-12-28 19:58:11 +00:00
mlelstv 7f0211635e Use correct status value SCSI_BUSY (0x08) instead of XS_BUSY (7) when running
out of sessions. The bug had no impact as scsipi was only comparing
against SCSI_CHECK (0x02) and SCSI_QUEUE_FULL (0x28).
2023-12-28 15:58:24 +00:00
thorpej 4dd68cb09a Missed 2 68060-specific cases in previous. 2023-12-28 15:33:12 +00:00
hannken 9db8c230ae Initialize mutex fileassoc_global.lock. 2023-12-28 12:49:06 +00:00
hannken a5288eef9a Include "veriexec.h" and <sys/verified_exec.h> to run
veriexec_unmountchk() on "NVERIEXEC > 0".
2023-12-28 12:48:08 +00:00
tsutsui ec5d1d8226 Use EXIT_SUCCESS and EXIT_FAILURE where appropriate per style guide. 2023-12-28 12:13:55 +00:00
msaitoh 05a30043ce ixgbe: Use kmem_zalloc() instead of malloc(,M_ZERO). 2023-12-28 10:13:51 +00:00
msaitoh 3d643fcf85 ixgbe: Simplify. No functional change.
The descriptor ring size and the alignment are tested in the attach
function, so it's not required to use roundup2(size, DBA_ALIGN).
2023-12-28 10:05:18 +00:00
msaitoh 0f6b75804b ixgbe: Use #ifdef IXGBE_FDIR more
Don't include the Flow Director related members to reduce the size of
struct tx_ring. On amd64 and aarch64, the real size is not changed
because of the alignment.
2023-12-28 10:02:14 +00:00
msaitoh dfec746082 pcidevs: Regen. 2023-12-28 09:46:11 +00:00
msaitoh ad5d9b0b80 Update Intel Raptor Lake devices. 2023-12-28 09:43:57 +00:00
msaitoh 137ed01a21 Add Intel C26[26] eSPI. 2023-12-28 09:42:39 +00:00
rin 994167df5a macppc/cardbus: Belatedly catch up with battable resolution change
Fix pmap_extract() failures on models with cardslot, for direct-mapped
buffers allocated by PMAP_ALLOC_POOLPAGE().

This driver had corrupted battable[] over 11 years, since resolution of
battable was changed from 256MB to 8MB:

413fb4c3c5

Now, indexes for battable[] should be calculated by (va >> 23), but
rather, use oea_iobat_add() instead of directly modifying battable[].

TODO:
- Add some consistency checks to oea_iobat_add().
- Map reasonable VA space for cardbus(4), if OFW does not. Note that
  hardcoded value of 0x90000000-0x9fffffff should be safe for now, not
  that elegant although. For macppc models, IIUC, RAM is *not* mapped to
  0x80000000-0xffffffff, and VA reserved for kernel and copy{in,out} is
  0xc0000000-0xefffffff.
2023-12-28 04:43:55 +00:00
rin 96f7cfd903 mklocale: XXX: Neglect TODIGIT at the moment
PR lib/57798

It was implemented with an assumption that all digit characters
can be mapped to numerical values <= 255.

This is no longer true for Unicode, and results in, e.g., wrong
return values of wcwidth(3) for U+5146 or U+16B60.

As a workaround, neglect TODIGIT for now, as done for OpenBSD:
https://github.com/OpenBSD/src/commit/4efe9bdeb34

XXX
At least netbsd-10 should be fixed, but it requires some tests.
2023-12-28 03:49:35 +00:00
thorpej 649e2b1f68 Be more careful with the types used for PTEs. 2023-12-28 01:33:05 +00:00
uwe b5470b48cc netwinder: kern.ldscript - preserve the .text section alignment
This change from evbarm was omitted in previous, but older binutils in
netbsd-10 seem to need it.
2023-12-27 19:58:22 +00:00
thorpej 341046f606 Define the values for the 68040 TT registers in terms of the definitions in
<m68k/mmu_40.h> rather than using magic numbers.
2023-12-27 19:47:00 +00:00
thorpej a6771b5ec5 Define values for the 68030 TT registers in terms of the definitions
in <m68k/mmu_30.h> rather than using magic numbers.
2023-12-27 19:26:29 +00:00
thorpej d244c3ab10 Add a header file for 68030-specific MMU definitions, specifically the
Transparent Translation registers, that do not exist on the 68851.  A
big comment at the top of the file describes the differences between
the 68851 and the 68030's MMU.
2023-12-27 19:22:10 +00:00
mlelstv 36c61755a2 Treat port 0 (unset) as ISCSI_DEFAULT_PORT like before. 2023-12-27 18:07:30 +00:00
thorpej 91a4cc8a7c Re-factor the 680x0 Function Code definitions into their own
separate file (as was done on the sun2/sun3 ports ages ago)
and switch everyone to the common header.
2023-12-27 17:35:34 +00:00
thorpej 7211acbf75 No need to export FC_PURGE here. 2023-12-27 16:20:39 +00:00