Commit Graph

304183 Commits

Author SHA1 Message Date
riastradh 4002f84f7c httpd(8): Add missing newline to `SSL Error' messages.
Matches the pattern in all other printf/syslog calls.

XXX pullup-10
XXX pullup-9
XXX pullup-8
2023-12-18 03:48:57 +00:00
rillig 5ad30ed912 tests/make: test the fast code path for ':M' patterns like '*.c' 2023-12-17 23:19:02 +00:00
rillig c45c2cbe57 make: speed up pattern matching in the ':M' modifier
In the common patterns where '*' is followed by a regular character,
such as in the patterns '*.c' or '*.mk', search the next possible
matching position in a small loop, instead of repeatedly comparing the
first remaining pattern character to all special characters.
2023-12-17 22:46:44 +00:00
andvar 9644efb543 Pass periph_target from xs->xs_periph, since periph is not defined.
Fixes SPC_DEBUG build option.
2023-12-17 22:07:34 +00:00
andvar 98a046270d Remove accidentally added i in previous commit.. 2023-12-17 22:03:50 +00:00
andvar 9e5e920980 Fix DMAC_ARRAYCHAIN enabled build:
pass dmac->sc_dev instead of undefined self in dmac_start_xfer_offset().
remove unused chan/ch variables in dmac_program_arraychain().
initialize c to zero in dmac_start_xfer_offset() and add check that is bigger
than 0 before calling dma_cachectl() to fix potentially uninitialized error
(seems to be false positive though).
2023-12-17 22:01:56 +00:00
andvar 1c8a2705a0 s/FD_DEBUG/FDDEBUG/ for consistency. 2023-12-17 21:52:11 +00:00
andvar 82bbbd4849 Fix format specifiers and use BMD_UNIT(dev) macro to fix BMD_DEBUG build. 2023-12-17 21:51:29 +00:00
jkoshy bb7a167aa1 Sync ut{array,hash}.h to elftoolchain [r4024].
This change updates these files to UTARRAY/UTHASH v2.3.0.
2023-12-17 18:59:19 +00:00
andvar 03e1d80d8c s/keyboad/keyboard/ in wsmux description comment. 2023-12-17 18:48:53 +00:00
martin 0578ab99d9 Add a https transfer method (sharing all host details with the http
transfer). Make this method the default for all downloads.

Try to make sure the binary pkg installation (which runs in a chroot
in the already installed system) can make use of SSL verification.

This does NOT fix the missing SSL verification in most install media
even if using https (due to not fully populated /etc/openssl/certs).
2023-12-17 18:46:42 +00:00
andvar 10e8a7f20c Fix TRENDATA option build by moving TRENDATA code block with memlog() definition
over its usage in ka780_memerr() and making it static. Also return type is
changed to void and removed unnecessary break at the end of the method.

Finally fixed struct memlogtab initialization by adding missing braces around
each member in the array.

The code builds, but I am not sure weather it was fully finished.
2023-12-17 18:39:02 +00:00
andvar 05682c6705 Fix format specifier for ka820port_ptr->csr.
Fixed CRXDEBUG build option for vax.
2023-12-17 15:06:33 +00:00
andvar 87d769fc01 Fix printf format specifier for size. Fixes DEBUG_DMA build option. 2023-12-17 14:54:49 +00:00
andvar 57a185009a s/Adapatation/Adaptation/ in l2cap sysctl description. 2023-12-17 14:38:49 +00:00
rillig e7a4688626 tests/make: extend tests for include guards and empty expressions 2023-12-17 14:07:22 +00:00
andvar 0504d75067 Reshuffle ifdef HAVECACHE/DIAGNOSTIC blocks with the main purpose to make
code build without HAVECACHE/DIAGNOSTIC options, as well as some cleanup:
flags in pv_link is used for HAVECACHE only, declare/define it in the block.
flush_by_page declaration can omit ifdef when only conditional body is guarded.
segva is used only in DIAGNOSTIC/HAVECACHE in pmap_protect_mmu.
combine consecutive DIAGNOSTIC/HAVECACHE blocks were possible.

No functional changes intended.
2023-12-17 13:28:59 +00:00
rillig 8e6814b7da make: on cleandir, clean the unit-tests as well 2023-12-17 10:48:10 +00:00
rillig b4747d0de9 tests/indent: don't create an unneeded file 2023-12-17 10:02:09 +00:00
rillig 16175e1f2d error.1: fix markup 2023-12-17 09:46:57 +00:00
rillig 150501f9b0 tests/make: in 'expect' lines, require the complete text of the line 2023-12-17 09:44:00 +00:00
rillig ba87c41048 tests/make: add tests for spacing in multiple-inclusion guards 2023-12-17 09:17:16 +00:00
rillig 9bb158b559 make: clean up unused return value of str2Lst_Append
No functional change.
2023-12-17 09:02:26 +00:00
rillig 81cbe5a1c0 make: clean up names of local variables
No binary change.
2023-12-17 08:53:54 +00:00
rillig 2e8093b271 tests/make: add basic tests for the ':M' modifier 2023-12-17 00:19:11 +00:00
rillig ff1b52f721 tests/make: fix line numbers in expected test output for ':M' 2023-12-16 23:40:33 +00:00
rillig 879c461a18 tests/make: reorganize tests for the ':M' modifier
Add a table of contents.  Group the existing tests into sections.  Fix
the pattern of the test for the malformed ':M[\' modifier, now in line
283.

Note that the tests for the pattern characters '*?\' are missing.
2023-12-16 23:38:35 +00:00
rillig 9b0d37462a make: eliminate a local variable in Str_Match
No functional change.
2023-12-16 21:26:07 +00:00
skrll c7f83ce504 Free memory on failure 2023-12-16 18:02:02 +00:00
mlelstv 9a4c4a4c5a - handle stuck transmitter (descriptor still owned)
- restart send queue after transmit
- count output packets
- use deferred start

Should fix PR 57694
2023-12-16 16:35:49 +00:00
wiz e7e8421e9c cvslatest(1): remove RETURN VALUES
Pages in section one should use EXIT STATUS instead (which this one
already provides).

Closes PR 57778 by Kouichi Hashikawa
2023-12-16 14:32:33 +00:00
gutteridge 04662bc40a main: minor style fix 2023-12-15 22:09:16 +00:00
rin d102777cf6 powerpc: Make sure direct-mapped buffer fits within correct range
For OEA and OEA64_BRIDGE, only first 3GiB memory is direct-mapped.

Part of PR kern/57621
2023-12-15 09:43:59 +00:00
rin 5bbca87a4d powerpc: oea: For OEA64_BRIDGE, 1:1 map up to 3GiB memory
As done for OEA. Note that kva over 3GiB is reserved.

Provide PMAP_MAP_POOLPAGE for OEA64_BRIDGE at the same time, by
which direct-mapped memory is utilized in order to work around
starvation of 512MiB kernel virtual space.

PR kern/57621
2023-12-15 09:42:33 +00:00
rin c1d0b02ba2 powerpc/oea: pmap_create: Use PR_ZERO and drop memset(9), NFC
Part of PR kern/57621
2023-12-15 09:36:35 +00:00
rin eaff34a759 powerpc/oea: pmap: Fix mostly-pointless overhead of pmap_pvo_pool
(1) Drop __aligned(32) from struct pvo_entry; otherwise,
    sizeof(struct pvo_entry) is round-up'ed to a multiple of 32.

(2) Do not set sizeof(struct pvo_entry) to `align` argument for
    pool_init(9); it must be power of 2.

(3) Align pvo_entry to 32-byte boundary only if reasonably possible,
    i.e., OEA without DIAGNOSTIC (--> POOL_REDZONE) for now.

Part of PR kern/57621
2023-12-15 09:35:29 +00:00
rin 39c430d79c powerpc/oea: pmap: Rework pmap_pte_spill()
It was broken in many ways... Now, it gets working stable both for
OEA and OEA64_BRIDGE, as far as I can see.

Part of PR kern/57621
2023-12-15 09:33:29 +00:00
rin 9b2e61139c powerpc/oea: pmap: Drop unused argument for pmap_pvo_reclaim(), NFC
Part of PR kern/57621
2023-12-15 09:32:05 +00:00
rin 1820877c95 powerpc/oea: trap: pmap_{pte,ste}_spill() even in the interrupt context
Page table for oea is something like L2 TLB on memory; kernel and
processes share its entries, and process entries can be spilled out.

As done for MMU based on software-managed TLB, we need to restore
such entries even in the interrupt context.

Note that pmap_pte_spill() require no resouce to restore entries.
Still-not-implemented pmap_ste_spill() for OEA64 should also.

Part of PR kern/57621
2023-12-15 09:31:02 +00:00
abs 21aef130ed Add note about zfs mount behaviour change in NetBSD 10 2023-12-14 20:46:45 +00:00
andvar 3194cf25b2 Use console_debugger() vs Debugger() which allows to avoid #ifdef DDB blocks.
From uwe@
2023-12-14 20:17:18 +00:00
mlelstv 7aa6293004 Align again with libsa (NFS_NOSYMLINK fix). 2023-12-14 08:06:23 +00:00
mrg 50f07ffd8e avoid crashes when proc_from_thread() returns NULL.
XXX: pullup-10, ...
2023-12-14 07:18:44 +00:00
rin 8584480840 libsa: nfs: Fix NFS_NOSYMLINK option for previous
Used only by mvme68k.
2023-12-14 05:39:00 +00:00
mrg 6b3ee451d6 make malloc_usable_size() visible with old jemalloc.
it's in <malloc.h> and applications like firefox expect it.

XXX: pullup-10
2023-12-13 23:53:50 +00:00
andvar 713cc3c7aa Add #ifdef DDB blocks around Debugger(); calls to make kernel build without DDB. 2023-12-13 23:11:35 +00:00
andvar fd86cb87a6 Make NBPFILTER build by adopting NetBSD's bpf_mtap() interface and definitions.
Condition is also not needed, since this check is performed inside function.
2023-12-13 22:53:04 +00:00
andvar 0aeb5daea0 Add (intptr_t) casts to fix "cast to pointer from integer of different size",
mainly for GENERIC64_32_* configs.
Also change segp->ds_len format specifier to %lld, which fixes DMA_DEBUG build.
2023-12-13 20:53:14 +00:00
andvar 40470a808e Removing obsolete TTY_DEBUG option from ALL kernels. 2023-12-13 10:53:15 +00:00
msaitoh 44076bb50e ixgbe: micro-optimize ixgbe_txeof()
Update txr->packets outside the loop in ixgbe_txeof().
2023-12-13 08:25:54 +00:00