CVS commit: src/sys/dev/pci/ixgbe
Module Name:src Committed By: msaitoh Date: Wed Jan 24 05:18:59 UTC 2024 Modified Files: src/sys/dev/pci/ixgbe: ixgbe.c Log Message: ixgbe: Add QPRDC into iqdrops. A receive packet might drop at two different locations. One is the packet buffer that packets are received into the chip first. If the packet buffer is overflowed, the MPC register is incremented. It's currently added to iqdrops. It's no problem. Another is descriptor ring(s). A packet from the packet buffer is DMA'ed into main memory base on the descriptor ring. If the ring is full, the packet is dropped and the QPRDC register is incremented. It should be added to iqdrops but it was not done. Fix it. Reported by ozaki-r@. To generate a diff of this commit: cvs rdiff -u -r1.348 -r1.349 src/sys/dev/pci/ixgbe/ixgbe.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/pci/ixgbe/ixgbe.c diff -u src/sys/dev/pci/ixgbe/ixgbe.c:1.348 src/sys/dev/pci/ixgbe/ixgbe.c:1.349 --- src/sys/dev/pci/ixgbe/ixgbe.c:1.348 Wed Nov 15 03:50:22 2023 +++ src/sys/dev/pci/ixgbe/ixgbe.c Wed Jan 24 05:18:59 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: ixgbe.c,v 1.348 2023/11/15 03:50:22 msaitoh Exp $ */ +/* $NetBSD: ixgbe.c,v 1.349 2024/01/24 05:18:59 msaitoh Exp $ */ /** @@ -64,7 +64,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ixgbe.c,v 1.348 2023/11/15 03:50:22 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ixgbe.c,v 1.349 2024/01/24 05:18:59 msaitoh Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -1637,7 +1637,7 @@ ixgbe_update_stats_counters(struct ixgbe struct ixgbe_hw *hw = >hw; struct ixgbe_hw_stats *stats = >stats.pf; u32 missed_rx = 0, bprc, lxontxc, lxofftxc; - u64 total, total_missed_rx = 0; + u64 total, total_missed_rx = 0, total_qprdc = 0; uint64_t crcerrs, illerrc, rlec, ruc, rfc, roc, rjc; unsigned int queue_counters; int i; @@ -1656,13 +1656,18 @@ ixgbe_update_stats_counters(struct ixgbe IXGBE_EVC_REGADD(hw, stats, IXGBE_QPRC(i), qprc[i]); IXGBE_EVC_REGADD(hw, stats, IXGBE_QPTC(i), qptc[i]); if (hw->mac.type >= ixgbe_mac_82599EB) { + uint32_t qprdc; + IXGBE_EVC_ADD(>qbrc[i], IXGBE_READ_REG(hw, IXGBE_QBRC_L(i)) + ((u64)IXGBE_READ_REG(hw, IXGBE_QBRC_H(i)) << 32)); IXGBE_EVC_ADD(>qbtc[i], IXGBE_READ_REG(hw, IXGBE_QBTC_L(i)) + ((u64)IXGBE_READ_REG(hw, IXGBE_QBTC_H(i)) << 32)); - IXGBE_EVC_REGADD(hw, stats, IXGBE_QPRDC(i), qprdc[i]); + /* QPRDC will be added to iqdrops. */ + qprdc = IXGBE_READ_REG(hw, IXGBE_QPRDC(i)); + IXGBE_EVC_ADD(>qprdc[i], qprdc); + total_qprdc += qprdc; } else { /* 82598 */ IXGBE_EVC_REGADD(hw, stats, IXGBE_QBRC(i), qbrc[i]); @@ -1793,7 +1798,7 @@ ixgbe_update_stats_counters(struct ixgbe * normal RX counters are prepared in ether_input(). */ net_stat_ref_t nsr = IF_STAT_GETREF(ifp); - if_statadd_ref(nsr, if_iqdrops, total_missed_rx); + if_statadd_ref(nsr, if_iqdrops, total_missed_rx + total_qprdc); /* * Aggregate following types of errors as RX errors:
CVS commit: src/sys/dev/pci/ixgbe
Module Name:src Committed By: msaitoh Date: Wed Jan 24 05:18:59 UTC 2024 Modified Files: src/sys/dev/pci/ixgbe: ixgbe.c Log Message: ixgbe: Add QPRDC into iqdrops. A receive packet might drop at two different locations. One is the packet buffer that packets are received into the chip first. If the packet buffer is overflowed, the MPC register is incremented. It's currently added to iqdrops. It's no problem. Another is descriptor ring(s). A packet from the packet buffer is DMA'ed into main memory base on the descriptor ring. If the ring is full, the packet is dropped and the QPRDC register is incremented. It should be added to iqdrops but it was not done. Fix it. Reported by ozaki-r@. To generate a diff of this commit: cvs rdiff -u -r1.348 -r1.349 src/sys/dev/pci/ixgbe/ixgbe.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libm
Module Name:src Committed By: christos Date: Wed Jan 24 04:14:07 UTC 2024 Added Files: src/lib/libm: convertFreeBSD Log Message: add the script I used to convert the FreeBSD code. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/lib/libm/convertFreeBSD Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Added files: Index: src/lib/libm/convertFreeBSD diff -u /dev/null src/lib/libm/convertFreeBSD:1.1 --- /dev/null Tue Jan 23 23:14:07 2024 +++ src/lib/libm/convertFreeBSD Tue Jan 23 23:14:07 2024 @@ -0,0 +1,14 @@ +#!/bin/sh +# simple script to do some of the mechanical conversion from the FreeBSD +# sources +sed -i \ +-e 's/IEEEl2bits/ieee_ext_u/g' \ +-e 's/bits.man/extu_frac/g' \ +-e 's/\.\/\.extu_ld/g' \ +-e 's/LDBL_MANH_SIZE/EXT_FRACHBITS/g' \ +-e 's/LDBL_MANL_SIZE/EXT_FRACLBITS/g' \ +-e 's/u.xbits.expsign/GET_EXPSIGN(\)/g' \ +-e 's/bits.exp/extu_exp/g' \ +-e 's/bits.sign/extu_sign/g' \ +"$@" +
CVS commit: src/lib/libm
Module Name:src Committed By: christos Date: Wed Jan 24 04:14:07 UTC 2024 Added Files: src/lib/libm: convertFreeBSD Log Message: add the script I used to convert the FreeBSD code. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/lib/libm/convertFreeBSD Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/misc
Module Name:src Committed By: rin Date: Wed Jan 24 04:00:43 UTC 2024 Modified Files: src/share/misc: style Log Message: style: Fix typo, NFC "it it" --> "it is" (across a newline) To generate a diff of this commit: cvs rdiff -u -r1.75 -r1.76 src/share/misc/style Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/misc/style diff -u src/share/misc/style:1.75 src/share/misc/style:1.76 --- src/share/misc/style:1.75 Mon Aug 7 18:01:42 2023 +++ src/share/misc/style Wed Jan 24 04:00:43 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: style,v 1.75 2023/08/07 18:01:42 riastradh Exp $ */ +/* $NetBSD: style,v 1.76 2024/01/24 04:00:43 rin Exp $ */ /* * The revision control tag appears first, with a blank line after it. @@ -30,7 +30,7 @@ #include __COPYRIGHT("@(#) Copyright (c) 2008\ The NetBSD Foundation, inc. All rights reserved."); -__RCSID("$NetBSD: style,v 1.75 2023/08/07 18:01:42 riastradh Exp $"); +__RCSID("$NetBSD: style,v 1.76 2024/01/24 04:00:43 rin Exp $"); /* * VERY important single-line comments look like this. @@ -469,7 +469,7 @@ function(int a1, int a2, float fl, int a * where we don't have control over the NULL definition (on NetBSD * it is defined as ((void *)0), but on other systems it can be * defined as (0) and both definitions are valid), it - * it advised to cast NULL to a pointer on variadic functions, + * is advised to cast NULL to a pointer on variadic functions, * because on machines where sizeof(pointer) != sizeof(int) and in * the absence of a prototype in scope, passing an un-casted NULL, * will result in passing an int on the stack instead of a pointer.
CVS commit: src/share/misc
Module Name:src Committed By: rin Date: Wed Jan 24 04:00:43 UTC 2024 Modified Files: src/share/misc: style Log Message: style: Fix typo, NFC "it it" --> "it is" (across a newline) To generate a diff of this commit: cvs rdiff -u -r1.75 -r1.76 src/share/misc/style Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/sdmmc
Module Name:src Committed By: riastradh Date: Tue Jan 23 23:13:05 UTC 2024 Modified Files: src/sys/dev/sdmmc: ld_sdmmc.c Log Message: ld@sdmmc(4): Hack around deadlock in cache sync on detach. Yanking a card triggers the sdmmc discovery task, which runs in the sdmmc task thread, to detach any attached child devices. Detaching ld@sdmmc triggers a cache flush (via ldbegindetach -> disk_begindetach -> ld_lastclose -> ld_flush -> ioctl DIOCCACHESYNC), which is implemented by scheduling a task to do sdmmc_mem_flush_cache and then waiting for it to complete. The sdmmc_mem_cache_flush is done by an sdmmc task so it happens after all previously scheduled I/O operations -- that way the cache flush doesn't complete until the previously scheduled I/O operations are complete. However, when the cache flush task is issued from the discovery task, this doesn't work, because the cache flush task can't start until the discovery task has returned -- but the discovery task won't return until the cache flush task has completed. To work around this deadlock, which usually happens only when the device has been yanked anyway so further I/O would be lost anyway, just do the cache flush synchronously in DIOCCACHESYNC if we're running in the task thread. This isn't quite right -- implementation details of the task thread shouldn't bleed into ld@sdmmc, and running the cache sync _before_ any subsequently scheduled I/O tasks is asking for trouble -- but it should serve to avoid the deadlock in PR kern/57870 until we can fix a host of concurrency bugs in sdmmc by fixing the locking scheme and running discovery in a separate thread from tasks. XXX pullup-10 To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/sys/dev/sdmmc/ld_sdmmc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/sdmmc/ld_sdmmc.c diff -u src/sys/dev/sdmmc/ld_sdmmc.c:1.42 src/sys/dev/sdmmc/ld_sdmmc.c:1.43 --- src/sys/dev/sdmmc/ld_sdmmc.c:1.42 Mon May 16 10:03:23 2022 +++ src/sys/dev/sdmmc/ld_sdmmc.c Tue Jan 23 23:13:05 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: ld_sdmmc.c,v 1.42 2022/05/16 10:03:23 jmcneill Exp $ */ +/* $NetBSD: ld_sdmmc.c,v 1.43 2024/01/23 23:13:05 riastradh Exp $ */ /* * Copyright (c) 2008 KIYOHARA Takashi @@ -28,7 +28,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ld_sdmmc.c,v 1.42 2022/05/16 10:03:23 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ld_sdmmc.c,v 1.43 2024/01/23 23:13:05 riastradh Exp $"); #ifdef _KERNEL_OPT #include "opt_sdmmc.h" @@ -599,9 +599,24 @@ static int ld_sdmmc_cachesync(struct ld_softc *ld, bool poll) { struct ld_sdmmc_softc *sc = device_private(ld->sc_dv); + struct sdmmc_softc *sdmmc = device_private(device_parent(ld->sc_dv)); struct ld_sdmmc_task *task; int error = -1; + /* + * If we come here through the sdmmc discovery task, we can't + * wait for a new task because the new task can't even begin + * until the sdmmc discovery task has completed. + * + * XXX This is wrong, because there may already be queued I/O + * tasks ahead of us. Fixing this properly requires doing + * discovery in a separate thread. But this should avoid the + * deadlock of PR kern/57870 (https://gnats.NetBSD.org/57870) + * until we do split that up. + */ + if (curlwp == sdmmc->sc_tskq_lwp) + return sdmmc_mem_flush_cache(sc->sc_sf, poll); + mutex_enter(>sc_lock); /* Acquire a free task, or fail with EBUSY. */
CVS commit: src/sys/dev/sdmmc
Module Name:src Committed By: riastradh Date: Tue Jan 23 23:13:05 UTC 2024 Modified Files: src/sys/dev/sdmmc: ld_sdmmc.c Log Message: ld@sdmmc(4): Hack around deadlock in cache sync on detach. Yanking a card triggers the sdmmc discovery task, which runs in the sdmmc task thread, to detach any attached child devices. Detaching ld@sdmmc triggers a cache flush (via ldbegindetach -> disk_begindetach -> ld_lastclose -> ld_flush -> ioctl DIOCCACHESYNC), which is implemented by scheduling a task to do sdmmc_mem_flush_cache and then waiting for it to complete. The sdmmc_mem_cache_flush is done by an sdmmc task so it happens after all previously scheduled I/O operations -- that way the cache flush doesn't complete until the previously scheduled I/O operations are complete. However, when the cache flush task is issued from the discovery task, this doesn't work, because the cache flush task can't start until the discovery task has returned -- but the discovery task won't return until the cache flush task has completed. To work around this deadlock, which usually happens only when the device has been yanked anyway so further I/O would be lost anyway, just do the cache flush synchronously in DIOCCACHESYNC if we're running in the task thread. This isn't quite right -- implementation details of the task thread shouldn't bleed into ld@sdmmc, and running the cache sync _before_ any subsequently scheduled I/O tasks is asking for trouble -- but it should serve to avoid the deadlock in PR kern/57870 until we can fix a host of concurrency bugs in sdmmc by fixing the locking scheme and running discovery in a separate thread from tasks. XXX pullup-10 To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/sys/dev/sdmmc/ld_sdmmc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/sets/lists/tests
Module Name:src Committed By: rillig Date: Tue Jan 23 22:07:23 UTC 2024 Modified Files: src/distrib/sets/lists/tests: mi Log Message: tests/lint: revert accidental addition of test for lint message 356 To generate a diff of this commit: cvs rdiff -u -r1.1298 -r1.1299 src/distrib/sets/lists/tests/mi Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/sets/lists/tests/mi diff -u src/distrib/sets/lists/tests/mi:1.1298 src/distrib/sets/lists/tests/mi:1.1299 --- src/distrib/sets/lists/tests/mi:1.1298 Tue Jan 23 19:44:28 2024 +++ src/distrib/sets/lists/tests/mi Tue Jan 23 22:07:23 2024 @@ -1,4 +1,4 @@ -# $NetBSD: mi,v 1.1298 2024/01/23 19:44:28 rillig Exp $ +# $NetBSD: mi,v 1.1299 2024/01/23 22:07:23 rillig Exp $ # # Note: don't delete entries from here - mark them as "obsolete" instead. # @@ -7464,7 +7464,6 @@ ./usr/tests/usr.bin/xlint/lint1/msg_353.c tests-usr.bin-tests compattestfile,atf ./usr/tests/usr.bin/xlint/lint1/msg_354.c tests-usr.bin-tests compattestfile,atf ./usr/tests/usr.bin/xlint/lint1/msg_355.c tests-usr.bin-tests compattestfile,atf -./usr/tests/usr.bin/xlint/lint1/msg_356.c tests-usr.bin-tests compattestfile,atf ./usr/tests/usr.bin/xlint/lint1/op_colon.c tests-usr.bin-tests compattestfile,atf ./usr/tests/usr.bin/xlint/lint1/op_colon.exp tests-obsolete obsolete,atf ./usr/tests/usr.bin/xlint/lint1/op_shl_lp64.c tests-usr.bin-tests compattestfile,atf
CVS commit: src/distrib/sets/lists/tests
Module Name:src Committed By: rillig Date: Tue Jan 23 22:07:23 UTC 2024 Modified Files: src/distrib/sets/lists/tests: mi Log Message: tests/lint: revert accidental addition of test for lint message 356 To generate a diff of this commit: cvs rdiff -u -r1.1298 -r1.1299 src/distrib/sets/lists/tests/mi Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/evbppc/wii/dev
Module Name:src Committed By: jmcneill Date: Tue Jan 23 21:56:07 UTC 2024 Modified Files: src/sys/arch/evbppc/wii/dev: bwai.c ehci_hollywood.c hollywood.c hollywood.h ohci_hollywood.c resetbtn.c sdhc_hollywood.c Log Message: wii: provide device names to intr_establish wii$ intrctl list interrupt id CPU0 device name(s) pi irq 1464769* hollywood0 hollywood irq 36 5872* ehci0 hollywood irq 39 58907* sdhc0 hollywood irq 40 4* sdhc1 hollywood irq 49 0* resetbtn0 pi irq 5 0* bwai0 To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/evbppc/wii/dev/bwai.c cvs rdiff -u -r1.1 -r1.2 src/sys/arch/evbppc/wii/dev/ehci_hollywood.c \ src/sys/arch/evbppc/wii/dev/hollywood.c \ src/sys/arch/evbppc/wii/dev/hollywood.h \ src/sys/arch/evbppc/wii/dev/ohci_hollywood.c \ src/sys/arch/evbppc/wii/dev/resetbtn.c \ src/sys/arch/evbppc/wii/dev/sdhc_hollywood.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/evbppc/wii/dev/bwai.c diff -u src/sys/arch/evbppc/wii/dev/bwai.c:1.2 src/sys/arch/evbppc/wii/dev/bwai.c:1.3 --- src/sys/arch/evbppc/wii/dev/bwai.c:1.2 Tue Jan 23 21:49:20 2024 +++ src/sys/arch/evbppc/wii/dev/bwai.c Tue Jan 23 21:56:07 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: bwai.c,v 1.2 2024/01/23 21:49:20 jmcneill Exp $ */ +/* $NetBSD: bwai.c,v 1.3 2024/01/23 21:56:07 jmcneill Exp $ */ /*- * Copyright (c) 2024 Jared McNeill @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: bwai.c,v 1.2 2024/01/23 21:49:20 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bwai.c,v 1.3 2024/01/23 21:56:07 jmcneill Exp $"); #include #include @@ -118,7 +118,8 @@ bwai_dsp_init(kmutex_t *intr_lock) sc->sc_intr_lock = intr_lock; - intr_establish(sc->sc_irq, IST_LEVEL, IPL_AUDIO, bwai_intr, sc); + intr_establish_xname(sc->sc_irq, IST_LEVEL, IPL_AUDIO, bwai_intr, sc, + device_xname(dev)); return >sc_dai; } Index: src/sys/arch/evbppc/wii/dev/ehci_hollywood.c diff -u src/sys/arch/evbppc/wii/dev/ehci_hollywood.c:1.1 src/sys/arch/evbppc/wii/dev/ehci_hollywood.c:1.2 --- src/sys/arch/evbppc/wii/dev/ehci_hollywood.c:1.1 Sat Jan 20 21:36:00 2024 +++ src/sys/arch/evbppc/wii/dev/ehci_hollywood.c Tue Jan 23 21:56:07 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: ehci_hollywood.c,v 1.1 2024/01/20 21:36:00 jmcneill Exp $ */ +/* $NetBSD: ehci_hollywood.c,v 1.2 2024/01/23 21:56:07 jmcneill Exp $ */ /*- * Copyright (c) 2024 Jared McNeill @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ehci_hollywood.c,v 1.1 2024/01/20 21:36:00 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ehci_hollywood.c,v 1.2 2024/01/23 21:56:07 jmcneill Exp $"); #include #include @@ -84,7 +84,8 @@ ehci_hollywood_attach(device_t parent, d sc->sc_offs = EREAD1(sc, EHCI_CAPLENGTH); EOWRITE4(sc, EHCI_USBINTR, 0); - hollywood_intr_establish(haa->haa_irq, IPL_USB, ehci_intr, sc); + hollywood_intr_establish(haa->haa_irq, IPL_USB, ehci_intr, sc, + device_xname(self)); error = ehci_init(sc); if (error != 0) { Index: src/sys/arch/evbppc/wii/dev/hollywood.c diff -u src/sys/arch/evbppc/wii/dev/hollywood.c:1.1 src/sys/arch/evbppc/wii/dev/hollywood.c:1.2 --- src/sys/arch/evbppc/wii/dev/hollywood.c:1.1 Sat Jan 20 21:36:00 2024 +++ src/sys/arch/evbppc/wii/dev/hollywood.c Tue Jan 23 21:56:07 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: hollywood.c,v 1.1 2024/01/20 21:36:00 jmcneill Exp $ */ +/* $NetBSD: hollywood.c,v 1.2 2024/01/23 21:56:07 jmcneill Exp $ */ /*- * Copyright (c) 2024 Jared McNeill @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: hollywood.c,v 1.1 2024/01/20 21:36:00 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: hollywood.c,v 1.2 2024/01/23 21:56:07 jmcneill Exp $"); #include #include @@ -206,15 +206,16 @@ hollywood_intr_init(int irq) pic_add(_pic); - intr_establish(irq, IST_LEVEL, IPL_SCHED, pic_handle_intr, - _pic); + intr_establish_xname(irq, IST_LEVEL, IPL_SCHED, pic_handle_intr, + _pic, "hollywood0"); } void * -hollywood_intr_establish(int irq, int ipl, int (*func)(void *), void *arg) +hollywood_intr_establish(int irq, int ipl, int (*func)(void *), void *arg, +const char *name) { KASSERT(hollywood_pic.pic_intrbase != 0); - return intr_establish(hollywood_pic.pic_intrbase + irq, - IST_LEVEL, ipl, func, arg); + return intr_establish_xname(hollywood_pic.pic_intrbase + irq, + IST_LEVEL, ipl, func, arg, name); } Index: src/sys/arch/evbppc/wii/dev/hollywood.h diff -u src/sys/arch/evbppc/wii/dev/hollywood.h:1.1 src/sys/arch/evbppc/wii/dev/hollywood.h:1.2 --- src/sys/arch/evbppc/wii/dev/hollywood.h:1.1 Sat Jan 20 21:36:00 2024 +++ src/sys/arch/evbppc/wii/dev/hollywood.h Tue Jan 23 21:56:07 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: hollywood.h,v 1.1 2024/01/20 21:36:00 jmcneill Exp $ */ +/* $NetBSD: hollywood.h,v 1.2 2024/01/23 21:56:07 jmcneill Exp $ */ /*- * Copyright (c)
CVS commit: src/sys/arch/evbppc/wii/dev
Module Name:src Committed By: jmcneill Date: Tue Jan 23 21:56:07 UTC 2024 Modified Files: src/sys/arch/evbppc/wii/dev: bwai.c ehci_hollywood.c hollywood.c hollywood.h ohci_hollywood.c resetbtn.c sdhc_hollywood.c Log Message: wii: provide device names to intr_establish wii$ intrctl list interrupt id CPU0 device name(s) pi irq 1464769* hollywood0 hollywood irq 36 5872* ehci0 hollywood irq 39 58907* sdhc0 hollywood irq 40 4* sdhc1 hollywood irq 49 0* resetbtn0 pi irq 5 0* bwai0 To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/evbppc/wii/dev/bwai.c cvs rdiff -u -r1.1 -r1.2 src/sys/arch/evbppc/wii/dev/ehci_hollywood.c \ src/sys/arch/evbppc/wii/dev/hollywood.c \ src/sys/arch/evbppc/wii/dev/hollywood.h \ src/sys/arch/evbppc/wii/dev/ohci_hollywood.c \ src/sys/arch/evbppc/wii/dev/resetbtn.c \ src/sys/arch/evbppc/wii/dev/sdhc_hollywood.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/evbppc/wii/dev
Module Name:src Committed By: jmcneill Date: Tue Jan 23 21:49:51 UTC 2024 Modified Files: src/sys/arch/evbppc/wii/dev: bwdsp.c Log Message: wii: Simply DSP driver - no interrupt handler required. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/evbppc/wii/dev/bwdsp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/evbppc/wii/dev
Module Name:src Committed By: jmcneill Date: Tue Jan 23 21:49:51 UTC 2024 Modified Files: src/sys/arch/evbppc/wii/dev: bwdsp.c Log Message: wii: Simply DSP driver - no interrupt handler required. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/evbppc/wii/dev/bwdsp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/evbppc/wii/dev/bwdsp.c diff -u src/sys/arch/evbppc/wii/dev/bwdsp.c:1.1 src/sys/arch/evbppc/wii/dev/bwdsp.c:1.2 --- src/sys/arch/evbppc/wii/dev/bwdsp.c:1.1 Mon Jan 22 21:28:15 2024 +++ src/sys/arch/evbppc/wii/dev/bwdsp.c Tue Jan 23 21:49:51 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: bwdsp.c,v 1.1 2024/01/22 21:28:15 jmcneill Exp $ */ +/* $NetBSD: bwdsp.c,v 1.2 2024/01/23 21:49:51 jmcneill Exp $ */ /*- * Copyright (c) 2024 Jared McNeill @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: bwdsp.c,v 1.1 2024/01/22 21:28:15 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bwdsp.c,v 1.2 2024/01/23 21:49:51 jmcneill Exp $"); #include #include @@ -44,13 +44,6 @@ __KERNEL_RCSID(0, "$NetBSD: bwdsp.c,v 1. #define BWDSP_MAP_FLAGS BUS_DMA_NOCACHE -#define DSP_CONTROL_STATUS 0x0a -#define DSP_CONTROL_STATUS_DSPINT __BIT(7) -#define DSP_CONTROL_STATUS_ARINT __BIT(5) -#define DSP_CONTROL_STATUS_AIDINTMASK __BIT(4) -#define DSP_CONTROL_STATUS_AIDINT __BIT(3) -#define DSP_CONTROL_STATUS_HALT __BIT(2) -#define DSP_CONTROL_STATUS_PIINT __BIT(1) #define DSP_DMA_START_ADDR_H 0x30 #define DSP_DMA_START_ADDR_L 0x32 #define DSP_DMA_CONTROL_LENGTH 0x36 @@ -339,24 +332,6 @@ static const struct audio_hw_if bwdsp_hw .get_locks = bwdsp_get_locks, }; -static int -bwdsp_intr(void *priv) -{ - struct bwdsp_softc * const sc = priv; - uint16_t val; - - val = RD2(sc, DSP_CONTROL_STATUS); - if ((val & DSP_CONTROL_STATUS_AIDINT) != 0) { - /* Acknowledge audio interrupt */ - val &= ~(DSP_CONTROL_STATUS_DSPINT | - DSP_CONTROL_STATUS_ARINT | - DSP_CONTROL_STATUS_PIINT); - WR2(sc, DSP_CONTROL_STATUS, val); - } - - return 1; -} - static void bwdsp_late_attach(device_t dev) { @@ -386,7 +361,6 @@ bwdsp_attach(device_t parent, device_t s struct mainbus_attach_args * const maa = aux; bus_addr_t addr = maa->maa_addr; bus_size_t size = 0x200; - uint16_t val; sc->sc_dev = self; sc->sc_bst = maa->maa_bst; @@ -411,13 +385,6 @@ bwdsp_attach(device_t parent, device_t s sc->sc_format.frequency_type = 1; sc->sc_format.frequency[0] = 48000; - val = RD2(sc, DSP_CONTROL_STATUS); - val |= DSP_CONTROL_STATUS_AIDINTMASK; - val |= DSP_CONTROL_STATUS_PIINT; - WR2(sc, DSP_CONTROL_STATUS, val); - - intr_establish(maa->maa_irq, IST_LEVEL, IPL_AUDIO, bwdsp_intr, sc); - config_defer(self, bwdsp_late_attach); }
CVS commit: src/sys/arch/evbppc/wii/dev
Module Name:src Committed By: jmcneill Date: Tue Jan 23 21:49:20 UTC 2024 Modified Files: src/sys/arch/evbppc/wii/dev: bwai.c Log Message: wii: Use A/V encoder volume controls instead of using a software filter. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/evbppc/wii/dev/bwai.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/evbppc/wii/dev/bwai.c diff -u src/sys/arch/evbppc/wii/dev/bwai.c:1.1 src/sys/arch/evbppc/wii/dev/bwai.c:1.2 --- src/sys/arch/evbppc/wii/dev/bwai.c:1.1 Mon Jan 22 21:28:15 2024 +++ src/sys/arch/evbppc/wii/dev/bwai.c Tue Jan 23 21:49:20 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: bwai.c,v 1.1 2024/01/22 21:28:15 jmcneill Exp $ */ +/* $NetBSD: bwai.c,v 1.2 2024/01/23 21:49:20 jmcneill Exp $ */ /*- * Copyright (c) 2024 Jared McNeill @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: bwai.c,v 1.1 2024/01/22 21:28:15 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bwai.c,v 1.2 2024/01/23 21:49:20 jmcneill Exp $"); #include #include @@ -42,6 +42,7 @@ __KERNEL_RCSID(0, "$NetBSD: bwai.c,v 1.1 #include #include "mainbus.h" +#include "avenc.h" #include "bwai.h" #define AI_CONTROL 0x00 @@ -62,7 +63,6 @@ struct bwai_softc { struct audio_dai_device sc_dai; - uint8_t sc_swvol; void (*sc_intr)(void *); void *sc_intrarg; @@ -123,36 +123,16 @@ bwai_dsp_init(kmutex_t *intr_lock) return >sc_dai; } -static void -bwai_swvol_codec(audio_filter_arg_t *arg) -{ - struct bwai_softc * const sc = arg->context; - const aint_t *src; - int16_t *dst; - u_int sample_count; - u_int i; - - src = arg->src; - dst = arg->dst; - sample_count = arg->count * arg->srcfmt->channels; - for (i = 0; i < sample_count; i++) { - aint2_t v = (aint2_t)(*src++); - v = v * sc->sc_swvol / 255; - *dst++ = (aint_t)v; - } -} - static int bwai_set_port(void *priv, mixer_ctrl_t *mc) { - struct bwai_softc * const sc = priv; - if (mc->dev != BWAI_OUTPUT_MASTER_VOLUME && mc->dev != BWAI_INPUT_DAC_VOLUME) { return ENXIO; } - sc->sc_swvol = mc->un.value.level[AUDIO_MIXER_LEVEL_LEFT]; + avenc_set_volume(mc->un.value.level[AUDIO_MIXER_LEVEL_LEFT], + mc->un.value.level[AUDIO_MIXER_LEVEL_RIGHT]); return 0; } @@ -160,15 +140,13 @@ bwai_set_port(void *priv, mixer_ctrl_t * static int bwai_get_port(void *priv, mixer_ctrl_t *mc) { - struct bwai_softc * const sc = priv; - if (mc->dev != BWAI_OUTPUT_MASTER_VOLUME && mc->dev != BWAI_INPUT_DAC_VOLUME) { return ENXIO; } - mc->un.value.level[AUDIO_MIXER_LEVEL_LEFT] = sc->sc_swvol; - mc->un.value.level[AUDIO_MIXER_LEVEL_RIGHT] = sc->sc_swvol; + avenc_get_volume(>un.value.level[AUDIO_MIXER_LEVEL_LEFT], + >un.value.level[AUDIO_MIXER_LEVEL_RIGHT]); return 0; } @@ -220,11 +198,6 @@ bwai_set_format(void *priv, int setmode, const audio_params_t *play, const audio_params_t *rec, audio_filter_reg_t *pfil, audio_filter_reg_t *rfil) { - struct bwai_softc * const sc = priv; - - pfil->codec = bwai_swvol_codec; - pfil->context = sc; - return 0; } @@ -308,7 +281,6 @@ bwai_attach(device_t parent, device_t se sc->sc_dai.dai_hw_if = _hw_if; sc->sc_dai.dai_dev = self; sc->sc_dai.dai_priv = sc; - sc->sc_swvol = 255; } CFATTACH_DECL_NEW(bwai, sizeof(struct bwai_softc),
CVS commit: src/sys/arch/evbppc/wii/dev
Module Name:src Committed By: jmcneill Date: Tue Jan 23 21:49:20 UTC 2024 Modified Files: src/sys/arch/evbppc/wii/dev: bwai.c Log Message: wii: Use A/V encoder volume controls instead of using a software filter. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/evbppc/wii/dev/bwai.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/evbppc
Module Name:src Committed By: jmcneill Date: Tue Jan 23 21:48:12 UTC 2024 Modified Files: src/sys/arch/evbppc/conf: WII files.wii src/sys/arch/evbppc/include: wii.h Added Files: src/sys/arch/evbppc/wii/dev: avenc.c avenc.h hwgpio.c Log Message: wii: Add GPIO, I2C, and basic A/V encoder driver. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/evbppc/conf/WII \ src/sys/arch/evbppc/conf/files.wii cvs rdiff -u -r1.4 -r1.5 src/sys/arch/evbppc/include/wii.h cvs rdiff -u -r0 -r1.1 src/sys/arch/evbppc/wii/dev/avenc.c \ src/sys/arch/evbppc/wii/dev/avenc.h src/sys/arch/evbppc/wii/dev/hwgpio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/evbppc/conf/WII diff -u src/sys/arch/evbppc/conf/WII:1.2 src/sys/arch/evbppc/conf/WII:1.3 --- src/sys/arch/evbppc/conf/WII:1.2 Mon Jan 22 21:28:15 2024 +++ src/sys/arch/evbppc/conf/WII Tue Jan 23 21:48:12 2024 @@ -1,4 +1,4 @@ -# $NetBSD: WII,v 1.2 2024/01/22 21:28:15 jmcneill Exp $ +# $NetBSD: WII,v 1.3 2024/01/23 21:48:12 jmcneill Exp $ # # Nintendo Wii # @@ -131,6 +131,12 @@ hollywood0 at mainbus0 irq 14 bwai0 at mainbus0 addr 0x0d006c00 irq 5 # Audio interface bwdsp0 at mainbus0 addr 0x0c005000 irq 6 # DSP +hwgpio0 at hollywood0 addr 0x0dc0 irq 10 # GPIO +gpio0 at hwgpio0 +gpioiic0 at gpio0 offset 0 mask 0xc000 flag 1 +iic0 at gpioiic0 +avenc0 at iic0 addr 0x70 # A/V Encoder + #iosipc0 at hollywood0 addr 0x0d00 irq 30 # IOS IPC resetbtn0 at hollywood0 irq 17 # Reset button Index: src/sys/arch/evbppc/conf/files.wii diff -u src/sys/arch/evbppc/conf/files.wii:1.2 src/sys/arch/evbppc/conf/files.wii:1.3 --- src/sys/arch/evbppc/conf/files.wii:1.2 Mon Jan 22 21:28:15 2024 +++ src/sys/arch/evbppc/conf/files.wii Tue Jan 23 21:48:12 2024 @@ -1,4 +1,4 @@ -# $NetBSD: files.wii,v 1.2 2024/01/22 21:28:15 jmcneill Exp $ +# $NetBSD: files.wii,v 1.3 2024/01/23 21:48:12 jmcneill Exp $ # # maxpartitions 16 @@ -56,6 +56,10 @@ device resetbtn attach resetbtn at hollywood file arch/evbppc/wii/dev/resetbtn.c resetbtn +device hwgpio: gpiobus +attach hwgpio at hollywood +file arch/evbppc/wii/dev/hwgpio.c hwgpio + attach ehci at hollywood with ehci_hollywood file arch/evbppc/wii/dev/ehci_hollywood.c ehci_hollywood @@ -64,3 +68,7 @@ file arch/evbppc/wii/dev/ohci_hollywood. attach sdhc at hollywood with sdhc_hollywood file arch/evbppc/wii/dev/sdhc_hollywood.c sdhc_hollywood + +device avenc +attach avenc at iic +file arch/evbppc/wii/dev/avenc.c avenc Index: src/sys/arch/evbppc/include/wii.h diff -u src/sys/arch/evbppc/include/wii.h:1.4 src/sys/arch/evbppc/include/wii.h:1.5 --- src/sys/arch/evbppc/include/wii.h:1.4 Tue Jan 23 00:13:37 2024 +++ src/sys/arch/evbppc/include/wii.h Tue Jan 23 21:48:12 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: wii.h,v 1.4 2024/01/23 00:13:37 jmcneill Exp $ */ +/* $NetBSD: wii.h,v 1.5 2024/01/23 21:48:12 jmcneill Exp $ */ /*- * Copyright (c) 2024 Jared McNeill @@ -111,6 +111,8 @@ #define HW_ARMIRQMASK (HOLLYWOOD_PRIV_BASE + 0x03c) #define HW_AHBPROT (HOLLYWOOD_PRIV_BASE + 0x064) #define HW_GPIOB_OUT (HOLLYWOOD_BASE + 0x0c0) +#define HW_GPIOB_DIR (HOLLYWOOD_BASE + 0x0c4) +#define HW_GPIOB_IN (HOLLYWOOD_BASE + 0x0c8) #define HW_GPIO_OWNER (HOLLYWOOD_PRIV_BASE + 0x0fc) #define HW_RESETS (HOLLYWOOD_PRIV_BASE + 0x194) #define RSTB_IOP __BIT(23) Added files: Index: src/sys/arch/evbppc/wii/dev/avenc.c diff -u /dev/null src/sys/arch/evbppc/wii/dev/avenc.c:1.1 --- /dev/null Tue Jan 23 21:48:12 2024 +++ src/sys/arch/evbppc/wii/dev/avenc.c Tue Jan 23 21:48:12 2024 @@ -0,0 +1,171 @@ +/* $NetBSD: avenc.c,v 1.1 2024/01/23 21:48:12 jmcneill Exp $ */ + +/*- + * Copyright (c) 2024 Jared McNeill + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + *notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + *notice, this list of conditions and the following disclaimer in the + *documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + *
CVS commit: src/sys/arch/evbppc
Module Name:src Committed By: jmcneill Date: Tue Jan 23 21:48:12 UTC 2024 Modified Files: src/sys/arch/evbppc/conf: WII files.wii src/sys/arch/evbppc/include: wii.h Added Files: src/sys/arch/evbppc/wii/dev: avenc.c avenc.h hwgpio.c Log Message: wii: Add GPIO, I2C, and basic A/V encoder driver. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/evbppc/conf/WII \ src/sys/arch/evbppc/conf/files.wii cvs rdiff -u -r1.4 -r1.5 src/sys/arch/evbppc/include/wii.h cvs rdiff -u -r0 -r1.1 src/sys/arch/evbppc/wii/dev/avenc.c \ src/sys/arch/evbppc/wii/dev/avenc.h src/sys/arch/evbppc/wii/dev/hwgpio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/xlint/lint1
Module Name:src Committed By: rillig Date: Tue Jan 23 20:03:42 UTC 2024 Modified Files: src/usr.bin/xlint/lint1: decl.c tree.c Log Message: lint: unconst parameters These were leftovers from earlier refactorings and are no longer needed. No binary change. To generate a diff of this commit: cvs rdiff -u -r1.389 -r1.390 src/usr.bin/xlint/lint1/decl.c cvs rdiff -u -r1.597 -r1.598 src/usr.bin/xlint/lint1/tree.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.bin/xlint/lint1/decl.c diff -u src/usr.bin/xlint/lint1/decl.c:1.389 src/usr.bin/xlint/lint1/decl.c:1.390 --- src/usr.bin/xlint/lint1/decl.c:1.389 Tue Jan 23 19:44:28 2024 +++ src/usr.bin/xlint/lint1/decl.c Tue Jan 23 20:03:42 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: decl.c,v 1.389 2024/01/23 19:44:28 rillig Exp $ */ +/* $NetBSD: decl.c,v 1.390 2024/01/23 20:03:42 rillig Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. @@ -38,7 +38,7 @@ #include #if defined(__RCSID) -__RCSID("$NetBSD: decl.c,v 1.389 2024/01/23 19:44:28 rillig Exp $"); +__RCSID("$NetBSD: decl.c,v 1.390 2024/01/23 20:03:42 rillig Exp $"); #endif #include @@ -932,7 +932,7 @@ check_type(sym_t *sym) * implementation-defined type". */ static void -check_bit_field_type(sym_t *dsym, type_t **const inout_tp, tspec_t *inout_t) +check_bit_field_type(sym_t *dsym, type_t **inout_tp, tspec_t *inout_t) { type_t *tp = *inout_tp; tspec_t t = *inout_t; @@ -976,7 +976,7 @@ check_bit_field_type(sym_t *dsym, type_t } static void -check_bit_field(sym_t *dsym, tspec_t *inout_t, type_t **const inout_tp) +check_bit_field(sym_t *dsym, tspec_t *inout_t, type_t **inout_tp) { check_bit_field_type(dsym, inout_tp, inout_t); Index: src/usr.bin/xlint/lint1/tree.c diff -u src/usr.bin/xlint/lint1/tree.c:1.597 src/usr.bin/xlint/lint1/tree.c:1.598 --- src/usr.bin/xlint/lint1/tree.c:1.597 Tue Jan 23 19:44:28 2024 +++ src/usr.bin/xlint/lint1/tree.c Tue Jan 23 20:03:42 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: tree.c,v 1.597 2024/01/23 19:44:28 rillig Exp $ */ +/* $NetBSD: tree.c,v 1.598 2024/01/23 20:03:42 rillig Exp $ */ /* * Copyright (c) 1994, 1995 Jochen Pohl @@ -37,7 +37,7 @@ #include #if defined(__RCSID) -__RCSID("$NetBSD: tree.c,v 1.597 2024/01/23 19:44:28 rillig Exp $"); +__RCSID("$NetBSD: tree.c,v 1.598 2024/01/23 20:03:42 rillig Exp $"); #endif #include @@ -2670,11 +2670,11 @@ check_unconst_function(const type_t *lst static bool check_assign_void_pointer_compat(op_t op, int arg, - const type_t *const ltp, tspec_t const lt, - const type_t *const lstp, tspec_t const lst, - const tnode_t *const rn, - const type_t *const rtp, tspec_t const rt, - const type_t *const rstp, tspec_t const rst) + const type_t *ltp, tspec_t lt, + const type_t *lstp, tspec_t lst, + const tnode_t *rn, + const type_t *rtp, tspec_t rt, + const type_t *rstp, tspec_t rst) { if (!(lt == PTR && rt == PTR && (lst == VOID || rst == VOID || types_compatible(lstp, rstp, @@ -2713,8 +2713,8 @@ check_assign_void_pointer_compat(op_t op static bool check_assign_pointer_integer(op_t op, int arg, - const type_t *const ltp, tspec_t const lt, - const type_t *const rtp, tspec_t const rt) + const type_t *ltp, tspec_t lt, + const type_t *rtp, tspec_t rt) { if (!((lt == PTR && is_integer(rt)) || (is_integer(lt) && rt == PTR)))
CVS commit: src/usr.bin/xlint/lint1
Module Name:src Committed By: rillig Date: Tue Jan 23 20:03:42 UTC 2024 Modified Files: src/usr.bin/xlint/lint1: decl.c tree.c Log Message: lint: unconst parameters These were leftovers from earlier refactorings and are no longer needed. No binary change. To generate a diff of this commit: cvs rdiff -u -r1.389 -r1.390 src/usr.bin/xlint/lint1/decl.c cvs rdiff -u -r1.597 -r1.598 src/usr.bin/xlint/lint1/tree.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src
Module Name:src Committed By: rillig Date: Tue Jan 23 19:44:29 UTC 2024 Modified Files: src/distrib/sets/lists/tests: mi src/tests/usr.bin/xlint/lint1: decl.c src/usr.bin/xlint: Makefile.inc src/usr.bin/xlint/lint1: cgram.y debug.c decl.c externs1.h lex.c lint1.h tree.c Log Message: lint: rename symt_t to symbol_kind It was confusing to have two kinds of "symbol type" (s_type and s_symt), so rename all related identifiers to be more distinctive. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.1297 -r1.1298 src/distrib/sets/lists/tests/mi cvs rdiff -u -r1.26 -r1.27 src/tests/usr.bin/xlint/lint1/decl.c cvs rdiff -u -r1.27 -r1.28 src/usr.bin/xlint/Makefile.inc cvs rdiff -u -r1.483 -r1.484 src/usr.bin/xlint/lint1/cgram.y cvs rdiff -u -r1.65 -r1.66 src/usr.bin/xlint/lint1/debug.c cvs rdiff -u -r1.388 -r1.389 src/usr.bin/xlint/lint1/decl.c cvs rdiff -u -r1.211 -r1.212 src/usr.bin/xlint/lint1/externs1.h cvs rdiff -u -r1.199 -r1.200 src/usr.bin/xlint/lint1/lex.c cvs rdiff -u -r1.208 -r1.209 src/usr.bin/xlint/lint1/lint1.h cvs rdiff -u -r1.596 -r1.597 src/usr.bin/xlint/lint1/tree.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/sets/lists/tests/mi diff -u src/distrib/sets/lists/tests/mi:1.1297 src/distrib/sets/lists/tests/mi:1.1298 --- src/distrib/sets/lists/tests/mi:1.1297 Fri Nov 24 16:21:17 2023 +++ src/distrib/sets/lists/tests/mi Tue Jan 23 19:44:28 2024 @@ -1,4 +1,4 @@ -# $NetBSD: mi,v 1.1297 2023/11/24 16:21:17 riastradh Exp $ +# $NetBSD: mi,v 1.1298 2024/01/23 19:44:28 rillig Exp $ # # Note: don't delete entries from here - mark them as "obsolete" instead. # @@ -1330,8 +1330,8 @@ ./usr/tests/compat/Atffiletests-compat-tests compattestfile,atf ./usr/tests/compat/linuxtests-compat-tests compattestfile,atf ./usr/tests/compat/linux/Atffile tests-compat-tests compattestfile,atf -./usr/tests/compat/linux/h_inotify_init tests-compat-tests compattestfile,atf ./usr/tests/compat/linux/h_inotify_directory tests-compat-tests compattestfile,atf +./usr/tests/compat/linux/h_inotify_init tests-compat-tests compattestfile,atf ./usr/tests/compat/linux/h_inotify_single_file tests-compat-tests compattestfile,atf ./usr/tests/compat/linux/h_inotify_watch_change tests-compat-tests compattestfile,atf ./usr/tests/compat/linux/t_inotify tests-compat-tests compattestfile,atf @@ -7464,6 +7464,7 @@ ./usr/tests/usr.bin/xlint/lint1/msg_353.c tests-usr.bin-tests compattestfile,atf ./usr/tests/usr.bin/xlint/lint1/msg_354.c tests-usr.bin-tests compattestfile,atf ./usr/tests/usr.bin/xlint/lint1/msg_355.c tests-usr.bin-tests compattestfile,atf +./usr/tests/usr.bin/xlint/lint1/msg_356.c tests-usr.bin-tests compattestfile,atf ./usr/tests/usr.bin/xlint/lint1/op_colon.c tests-usr.bin-tests compattestfile,atf ./usr/tests/usr.bin/xlint/lint1/op_colon.exp tests-obsolete obsolete,atf ./usr/tests/usr.bin/xlint/lint1/op_shl_lp64.c tests-usr.bin-tests compattestfile,atf Index: src/tests/usr.bin/xlint/lint1/decl.c diff -u src/tests/usr.bin/xlint/lint1/decl.c:1.26 src/tests/usr.bin/xlint/lint1/decl.c:1.27 --- src/tests/usr.bin/xlint/lint1/decl.c:1.26 Tue Aug 1 19:52:15 2023 +++ src/tests/usr.bin/xlint/lint1/decl.c Tue Jan 23 19:44:28 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: decl.c,v 1.26 2023/08/01 19:52:15 rillig Exp $ */ +/* $NetBSD: decl.c,v 1.27 2024/01/23 19:44:28 rillig Exp $ */ # 3 "decl.c" /* @@ -224,7 +224,7 @@ symbol_type_in_unnamed_bit_field_member( struct s { // Since there is no name in the declarator, the next symbol // after the ':' must not be interpreted as a member name, but - // instead as a variable, type or function (FVFT). + // instead as a variable, type or function (SK_VCFT). unsigned int :bits; int named_member; }; Index: src/usr.bin/xlint/Makefile.inc diff -u src/usr.bin/xlint/Makefile.inc:1.27 src/usr.bin/xlint/Makefile.inc:1.28 --- src/usr.bin/xlint/Makefile.inc:1.27 Sun Jan 21 14:59:18 2024 +++ src/usr.bin/xlint/Makefile.inc Tue Jan 23 19:44:28 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.27 2024/01/21 14:59:18 rillig Exp $ +# $NetBSD: Makefile.inc,v 1.28 2024/01/23 19:44:28 rillig Exp $ .include Index: src/usr.bin/xlint/lint1/cgram.y diff -u src/usr.bin/xlint/lint1/cgram.y:1.483 src/usr.bin/xlint/lint1/cgram.y:1.484 --- src/usr.bin/xlint/lint1/cgram.y:1.483 Sat Jan 13 11:24:57 2024 +++ src/usr.bin/xlint/lint1/cgram.y Tue Jan 23 19:44:28 2024 @@ -1,5 +1,5 @@ %{ -/* $NetBSD: cgram.y,v 1.483 2024/01/13 11:24:57 rillig Exp $ */ +/* $NetBSD: cgram.y,v 1.484 2024/01/23 19:44:28 rillig Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. @@ -35,7 +35,7 @@ #include #if defined(__RCSID) -__RCSID("$NetBSD: cgram.y,v 1.483 2024/01/13 11:24:57 rillig Exp $"); +__RCSID("$NetBSD: cgram.y,v 1.484 2024/01/23 19:44:28 rillig Exp $");
CVS commit: src
Module Name:src Committed By: rillig Date: Tue Jan 23 19:44:29 UTC 2024 Modified Files: src/distrib/sets/lists/tests: mi src/tests/usr.bin/xlint/lint1: decl.c src/usr.bin/xlint: Makefile.inc src/usr.bin/xlint/lint1: cgram.y debug.c decl.c externs1.h lex.c lint1.h tree.c Log Message: lint: rename symt_t to symbol_kind It was confusing to have two kinds of "symbol type" (s_type and s_symt), so rename all related identifiers to be more distinctive. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.1297 -r1.1298 src/distrib/sets/lists/tests/mi cvs rdiff -u -r1.26 -r1.27 src/tests/usr.bin/xlint/lint1/decl.c cvs rdiff -u -r1.27 -r1.28 src/usr.bin/xlint/Makefile.inc cvs rdiff -u -r1.483 -r1.484 src/usr.bin/xlint/lint1/cgram.y cvs rdiff -u -r1.65 -r1.66 src/usr.bin/xlint/lint1/debug.c cvs rdiff -u -r1.388 -r1.389 src/usr.bin/xlint/lint1/decl.c cvs rdiff -u -r1.211 -r1.212 src/usr.bin/xlint/lint1/externs1.h cvs rdiff -u -r1.199 -r1.200 src/usr.bin/xlint/lint1/lex.c cvs rdiff -u -r1.208 -r1.209 src/usr.bin/xlint/lint1/lint1.h cvs rdiff -u -r1.596 -r1.597 src/usr.bin/xlint/lint1/tree.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libc
Module Name:src Committed By: christos Date: Tue Jan 23 17:24:38 UTC 2024 Modified Files: src/lib/libc: Makefile.inc src/lib/libc/resolv: res_data.c res_private.h src/lib/libc/rpc: __rpc_getxid.c auth_unix.c clnt_bcast.c clnt_dg.c clnt_raw.c clnt_vc.c pmap_clnt.c rpc_internal.h rpc_soc.c rpcb_clnt.c svc.c svc_auth.c svc_dg.c svc_generic.c svc_raw.c svc_run.c svc_simple.c svc_vc.c xdr_rec.c src/lib/libc/sys: __sigaction_siginfo.c Log Message: fix nested extern warnings To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/lib/libc/Makefile.inc cvs rdiff -u -r1.14 -r1.15 src/lib/libc/resolv/res_data.c cvs rdiff -u -r1.4 -r1.5 src/lib/libc/resolv/res_private.h cvs rdiff -u -r1.3 -r1.4 src/lib/libc/rpc/__rpc_getxid.c cvs rdiff -u -r1.27 -r1.28 src/lib/libc/rpc/auth_unix.c cvs rdiff -u -r1.26 -r1.27 src/lib/libc/rpc/clnt_bcast.c cvs rdiff -u -r1.32 -r1.33 src/lib/libc/rpc/clnt_dg.c cvs rdiff -u -r1.33 -r1.34 src/lib/libc/rpc/clnt_raw.c \ src/lib/libc/rpc/svc_simple.c cvs rdiff -u -r1.28 -r1.29 src/lib/libc/rpc/clnt_vc.c \ src/lib/libc/rpc/svc_run.c cvs rdiff -u -r1.19 -r1.20 src/lib/libc/rpc/pmap_clnt.c cvs rdiff -u -r1.8 -r1.9 src/lib/libc/rpc/rpc_internal.h cvs rdiff -u -r1.23 -r1.24 src/lib/libc/rpc/rpc_soc.c cvs rdiff -u -r1.31 -r1.32 src/lib/libc/rpc/rpcb_clnt.c cvs rdiff -u -r1.40 -r1.41 src/lib/libc/rpc/svc.c cvs rdiff -u -r1.18 -r1.19 src/lib/libc/rpc/svc_auth.c cvs rdiff -u -r1.17 -r1.18 src/lib/libc/rpc/svc_dg.c \ src/lib/libc/rpc/svc_generic.c cvs rdiff -u -r1.25 -r1.26 src/lib/libc/rpc/svc_raw.c cvs rdiff -u -r1.36 -r1.37 src/lib/libc/rpc/svc_vc.c cvs rdiff -u -r1.39 -r1.40 src/lib/libc/rpc/xdr_rec.c cvs rdiff -u -r1.1 -r1.2 src/lib/libc/sys/__sigaction_siginfo.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libc/Makefile.inc diff -u src/lib/libc/Makefile.inc:1.21 src/lib/libc/Makefile.inc:1.22 --- src/lib/libc/Makefile.inc:1.21 Sat Jan 20 09:52:45 2024 +++ src/lib/libc/Makefile.inc Tue Jan 23 12:24:38 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.21 2024/01/20 14:52:45 christos Exp $ +# $NetBSD: Makefile.inc,v 1.22 2024/01/23 17:24:38 christos Exp $ # @(#)Makefile 8.2 (Berkeley) 2/3/94 # # All library objects contain sccsid strings by default; they may be @@ -57,8 +57,6 @@ LINTFLAGS+= -w LINTFLAGS+= -X 272 # XXX: ignore 'missing header declaration' warnings (for now). LINTFLAGS+= -X 351 -# XXX: ignore 'nested extern' warnings (for now). -LINTFLAGS+= -X 352 .include "libcincludes.mk" Index: src/lib/libc/resolv/res_data.c diff -u src/lib/libc/resolv/res_data.c:1.14 src/lib/libc/resolv/res_data.c:1.15 --- src/lib/libc/resolv/res_data.c:1.14 Sat Oct 24 01:35:37 2009 +++ src/lib/libc/resolv/res_data.c Tue Jan 23 12:24:38 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: res_data.c,v 1.14 2009/10/24 05:35:37 christos Exp $ */ +/* $NetBSD: res_data.c,v 1.15 2024/01/23 17:24:38 christos Exp $ */ /* * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") @@ -22,7 +22,7 @@ #ifdef notdef static const char rcsid[] = "Id: res_data.c,v 1.7 2008/12/11 09:59:00 marka Exp"; #else -__RCSID("$NetBSD: res_data.c,v 1.14 2009/10/24 05:35:37 christos Exp $"); +__RCSID("$NetBSD: res_data.c,v 1.15 2024/01/23 17:24:38 christos Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -117,8 +117,6 @@ res_init(void) { * size as the original res structure, and then copy fields to * it so that we achieve the same initialization */ - extern void *__res_get_old_state(void); - extern void __res_put_old_state(void *); res_state ores = __res_get_old_state(); if (ores->options != 0) Index: src/lib/libc/resolv/res_private.h diff -u src/lib/libc/resolv/res_private.h:1.4 src/lib/libc/resolv/res_private.h:1.5 --- src/lib/libc/resolv/res_private.h:1.4 Thu Sep 30 08:35:55 2021 +++ src/lib/libc/resolv/res_private.h Tue Jan 23 12:24:38 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: res_private.h,v 1.4 2021/09/30 12:35:55 christos Exp $ */ +/* $NetBSD: res_private.h,v 1.5 2024/01/23 17:24:38 christos Exp $ */ #ifndef res_private_h #define res_private_h @@ -21,6 +21,11 @@ struct __res_state_ext { extern int res_ourserver_p(const res_state, const struct sockaddr *); extern int __res_vinit(res_state, int); +#ifdef COMPAT__RES +extern void *__res_get_old_state(void); +extern void __res_put_old_state(void *); +#endif + #endif Index: src/lib/libc/rpc/__rpc_getxid.c diff -u src/lib/libc/rpc/__rpc_getxid.c:1.3 src/lib/libc/rpc/__rpc_getxid.c:1.4 --- src/lib/libc/rpc/__rpc_getxid.c:1.3 Sat Sep 13 17:27:46 2003 +++ src/lib/libc/rpc/__rpc_getxid.c Tue Jan 23 12:24:38 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: __rpc_getxid.c,v 1.3 2003/09/13 21:27:46 itojun Exp $ */ +/* $NetBSD: __rpc_getxid.c,v 1.4 2024/01/23 17:24:38 christos Exp $ */ /* $OpenBSD: ip_id.c,v 1.6 2002/03/15 18:19:52 millert Exp $ */ /* @@ -32,12
CVS commit: src/lib/libc
Module Name:src Committed By: christos Date: Tue Jan 23 17:24:38 UTC 2024 Modified Files: src/lib/libc: Makefile.inc src/lib/libc/resolv: res_data.c res_private.h src/lib/libc/rpc: __rpc_getxid.c auth_unix.c clnt_bcast.c clnt_dg.c clnt_raw.c clnt_vc.c pmap_clnt.c rpc_internal.h rpc_soc.c rpcb_clnt.c svc.c svc_auth.c svc_dg.c svc_generic.c svc_raw.c svc_run.c svc_simple.c svc_vc.c xdr_rec.c src/lib/libc/sys: __sigaction_siginfo.c Log Message: fix nested extern warnings To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/lib/libc/Makefile.inc cvs rdiff -u -r1.14 -r1.15 src/lib/libc/resolv/res_data.c cvs rdiff -u -r1.4 -r1.5 src/lib/libc/resolv/res_private.h cvs rdiff -u -r1.3 -r1.4 src/lib/libc/rpc/__rpc_getxid.c cvs rdiff -u -r1.27 -r1.28 src/lib/libc/rpc/auth_unix.c cvs rdiff -u -r1.26 -r1.27 src/lib/libc/rpc/clnt_bcast.c cvs rdiff -u -r1.32 -r1.33 src/lib/libc/rpc/clnt_dg.c cvs rdiff -u -r1.33 -r1.34 src/lib/libc/rpc/clnt_raw.c \ src/lib/libc/rpc/svc_simple.c cvs rdiff -u -r1.28 -r1.29 src/lib/libc/rpc/clnt_vc.c \ src/lib/libc/rpc/svc_run.c cvs rdiff -u -r1.19 -r1.20 src/lib/libc/rpc/pmap_clnt.c cvs rdiff -u -r1.8 -r1.9 src/lib/libc/rpc/rpc_internal.h cvs rdiff -u -r1.23 -r1.24 src/lib/libc/rpc/rpc_soc.c cvs rdiff -u -r1.31 -r1.32 src/lib/libc/rpc/rpcb_clnt.c cvs rdiff -u -r1.40 -r1.41 src/lib/libc/rpc/svc.c cvs rdiff -u -r1.18 -r1.19 src/lib/libc/rpc/svc_auth.c cvs rdiff -u -r1.17 -r1.18 src/lib/libc/rpc/svc_dg.c \ src/lib/libc/rpc/svc_generic.c cvs rdiff -u -r1.25 -r1.26 src/lib/libc/rpc/svc_raw.c cvs rdiff -u -r1.36 -r1.37 src/lib/libc/rpc/svc_vc.c cvs rdiff -u -r1.39 -r1.40 src/lib/libc/rpc/xdr_rec.c cvs rdiff -u -r1.1 -r1.2 src/lib/libc/sys/__sigaction_siginfo.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/misc
Module Name:src Committed By: jschauma Date: Tue Jan 23 15:58:17 UTC 2024 Modified Files: src/share/misc: acronyms.comp Log Message: +HNDL harvest now, decrypt later To generate a diff of this commit: cvs rdiff -u -r1.386 -r1.387 src/share/misc/acronyms.comp Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/misc/acronyms.comp diff -u src/share/misc/acronyms.comp:1.386 src/share/misc/acronyms.comp:1.387 --- src/share/misc/acronyms.comp:1.386 Thu Jan 18 03:33:08 2024 +++ src/share/misc/acronyms.comp Tue Jan 23 15:58:17 2024 @@ -1,4 +1,4 @@ -$NetBSD: acronyms.comp,v 1.386 2024/01/18 03:33:08 jschauma Exp $ +$NetBSD: acronyms.comp,v 1.387 2024/01/23 15:58:17 jschauma Exp $ 3WHS three-way handshake 8VSB 8-state vestigial side band modulation AA anti-aliasing @@ -724,6 +724,7 @@ HLE hardware lock elision (Intel) HLL high-level language HMA high memory area HMI human-machine interface +HNDL harvest now, decrypt later HOOD hierarchical object oriented design HOTP HMAC-based one time password HP Hewlett-Packard
CVS commit: src/share/misc
Module Name:src Committed By: jschauma Date: Tue Jan 23 15:58:17 UTC 2024 Modified Files: src/share/misc: acronyms.comp Log Message: +HNDL harvest now, decrypt later To generate a diff of this commit: cvs rdiff -u -r1.386 -r1.387 src/share/misc/acronyms.comp Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libm/src
Module Name:src Committed By: christos Date: Tue Jan 23 15:45:07 UTC 2024 Modified Files: src/lib/libm/src: b_tgammal.c e_atan2l.c e_lgammal_r.c math_private.h s_atanl.c s_cospil.c s_erfl.c s_exp2l.c s_expl.c s_logl.c s_remquol.c s_sinpil.c s_tanpil.c Log Message: move inclusion of to the ieee source files instead of including it in math_private.h which is also used by the vax which is not ieee. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/lib/libm/src/b_tgammal.c \ src/lib/libm/src/e_atan2l.c src/lib/libm/src/e_lgammal_r.c \ src/lib/libm/src/s_cospil.c src/lib/libm/src/s_erfl.c \ src/lib/libm/src/s_exp2l.c src/lib/libm/src/s_expl.c \ src/lib/libm/src/s_logl.c src/lib/libm/src/s_sinpil.c \ src/lib/libm/src/s_tanpil.c cvs rdiff -u -r1.30 -r1.31 src/lib/libm/src/math_private.h cvs rdiff -u -r1.2 -r1.3 src/lib/libm/src/s_atanl.c \ src/lib/libm/src/s_remquol.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libm/src
Module Name:src Committed By: christos Date: Tue Jan 23 15:45:07 UTC 2024 Modified Files: src/lib/libm/src: b_tgammal.c e_atan2l.c e_lgammal_r.c math_private.h s_atanl.c s_cospil.c s_erfl.c s_exp2l.c s_expl.c s_logl.c s_remquol.c s_sinpil.c s_tanpil.c Log Message: move inclusion of to the ieee source files instead of including it in math_private.h which is also used by the vax which is not ieee. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/lib/libm/src/b_tgammal.c \ src/lib/libm/src/e_atan2l.c src/lib/libm/src/e_lgammal_r.c \ src/lib/libm/src/s_cospil.c src/lib/libm/src/s_erfl.c \ src/lib/libm/src/s_exp2l.c src/lib/libm/src/s_expl.c \ src/lib/libm/src/s_logl.c src/lib/libm/src/s_sinpil.c \ src/lib/libm/src/s_tanpil.c cvs rdiff -u -r1.30 -r1.31 src/lib/libm/src/math_private.h cvs rdiff -u -r1.2 -r1.3 src/lib/libm/src/s_atanl.c \ src/lib/libm/src/s_remquol.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libm/src/b_tgammal.c diff -u src/lib/libm/src/b_tgammal.c:1.1 src/lib/libm/src/b_tgammal.c:1.2 --- src/lib/libm/src/b_tgammal.c:1.1 Sun Jan 21 13:53:17 2024 +++ src/lib/libm/src/b_tgammal.c Tue Jan 23 10:45:07 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: b_tgammal.c,v 1.1 2024/01/21 18:53:17 christos Exp $ */ +/* $NetBSD: b_tgammal.c,v 1.2 2024/01/23 15:45:07 christos Exp $ */ /*- * Copyright (c) 2023 The NetBSD Foundation, Inc. @@ -30,12 +30,13 @@ */ #include #if defined(LIBM_SCCS) && !defined(lint) -__RCSID("$NetBSD: b_tgammal.c,v 1.1 2024/01/21 18:53:17 christos Exp $"); +__RCSID("$NetBSD: b_tgammal.c,v 1.2 2024/01/23 15:45:07 christos Exp $"); #endif #include "namespace.h" #include "math.h" #include +#include #ifdef __HAVE_LONG_DOUBLE Index: src/lib/libm/src/e_atan2l.c diff -u src/lib/libm/src/e_atan2l.c:1.1 src/lib/libm/src/e_atan2l.c:1.2 --- src/lib/libm/src/e_atan2l.c:1.1 Sun Jan 21 13:53:17 2024 +++ src/lib/libm/src/e_atan2l.c Tue Jan 23 10:45:07 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: e_atan2l.c,v 1.1 2024/01/21 18:53:17 christos Exp $ */ +/* $NetBSD: e_atan2l.c,v 1.2 2024/01/23 15:45:07 christos Exp $ */ /* @(#)e_atan2.c 1.3 95/01/18 */ /* FreeBSD: head/lib/msun/src/e_atan2.c 176451 2008-02-22 02:30:36Z das */ /* @@ -14,7 +14,7 @@ */ #include -__RCSID("$NetBSD: e_atan2l.c,v 1.1 2024/01/21 18:53:17 christos Exp $"); +__RCSID("$NetBSD: e_atan2l.c,v 1.2 2024/01/23 15:45:07 christos Exp $"); /* * See comments in e_atan2.c. @@ -28,6 +28,7 @@ __weak_alias(atan2l, _atan2l) #endif #include +#include #include "math.h" #include "math_private.h" Index: src/lib/libm/src/e_lgammal_r.c diff -u src/lib/libm/src/e_lgammal_r.c:1.1 src/lib/libm/src/e_lgammal_r.c:1.2 --- src/lib/libm/src/e_lgammal_r.c:1.1 Sun Jan 21 13:53:18 2024 +++ src/lib/libm/src/e_lgammal_r.c Tue Jan 23 10:45:07 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: e_lgammal_r.c,v 1.1 2024/01/21 18:53:18 christos Exp $ */ +/* $NetBSD: e_lgammal_r.c,v 1.2 2024/01/23 15:45:07 christos Exp $ */ /*- * Copyright (c) 2023 The NetBSD Foundation, Inc. @@ -30,12 +30,13 @@ */ #include #if defined(LIBM_SCCS) && !defined(lint) -__RCSID("$NetBSD: e_lgammal_r.c,v 1.1 2024/01/21 18:53:18 christos Exp $"); +__RCSID("$NetBSD: e_lgammal_r.c,v 1.2 2024/01/23 15:45:07 christos Exp $"); #endif #include "namespace.h" #include "math.h" #include +#include #ifdef __weak_alias __weak_alias(lgammal_r,_lgammal_r) Index: src/lib/libm/src/s_cospil.c diff -u src/lib/libm/src/s_cospil.c:1.1 src/lib/libm/src/s_cospil.c:1.2 --- src/lib/libm/src/s_cospil.c:1.1 Sun Jan 21 13:53:18 2024 +++ src/lib/libm/src/s_cospil.c Tue Jan 23 10:45:07 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: s_cospil.c,v 1.1 2024/01/21 18:53:18 christos Exp $ */ +/* $NetBSD: s_cospil.c,v 1.2 2024/01/23 15:45:07 christos Exp $ */ /*- * Copyright (c) 2023 The NetBSD Foundation, Inc. @@ -30,12 +30,13 @@ */ #include #if defined(LIBM_SCCS) && !defined(lint) -__RCSID("$NetBSD: s_cospil.c,v 1.1 2024/01/21 18:53:18 christos Exp $"); +__RCSID("$NetBSD: s_cospil.c,v 1.2 2024/01/23 15:45:07 christos Exp $"); #endif #include "namespace.h" #include "math.h" #include +#include #ifdef __HAVE_LONG_DOUBLE Index: src/lib/libm/src/s_erfl.c diff -u src/lib/libm/src/s_erfl.c:1.1 src/lib/libm/src/s_erfl.c:1.2 --- src/lib/libm/src/s_erfl.c:1.1 Sun Jan 21 13:53:18 2024 +++ src/lib/libm/src/s_erfl.c Tue Jan 23 10:45:07 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: s_erfl.c,v 1.1 2024/01/21 18:53:18 christos Exp $ */ +/* $NetBSD: s_erfl.c,v 1.2 2024/01/23 15:45:07 christos Exp $ */ /*- * Copyright (c) 2023 The NetBSD Foundation, Inc. @@ -30,12 +30,13 @@ */ #include #if defined(LIBM_SCCS) && !defined(lint) -__RCSID("$NetBSD: s_erfl.c,v 1.1 2024/01/21 18:53:18 christos Exp $"); +__RCSID("$NetBSD: s_erfl.c,v 1.2 2024/01/23 15:45:07 christos Exp $"); #endif #include "namespace.h" #include
CVS commit: src/lib/libc
Module Name:src Committed By: christos Date: Tue Jan 23 15:32:54 UTC 2024 Modified Files: src/lib/libc/regex: engine.c regsub.c src/lib/libc/stdio: open_memstream.c open_wmemstream.c Log Message: handle sizeof(off_t) > sizeof(size_t) To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/lib/libc/regex/engine.c cvs rdiff -u -r1.3 -r1.4 src/lib/libc/regex/regsub.c cvs rdiff -u -r1.1 -r1.2 src/lib/libc/stdio/open_memstream.c \ src/lib/libc/stdio/open_wmemstream.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libc/regex/engine.c diff -u src/lib/libc/regex/engine.c:1.29 src/lib/libc/regex/engine.c:1.30 --- src/lib/libc/regex/engine.c:1.29 Thu Feb 25 16:47:46 2021 +++ src/lib/libc/regex/engine.c Tue Jan 23 10:32:54 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: engine.c,v 1.29 2021/02/25 21:47:46 christos Exp $ */ +/* $NetBSD: engine.c,v 1.30 2024/01/23 15:32:54 christos Exp $ */ /*- * SPDX-License-Identifier: BSD-3-Clause @@ -41,7 +41,7 @@ #ifdef __FBSDID __FBSDID("$FreeBSD: head/lib/libc/regex/engine.c 368358 2020-12-05 03:16:05Z kevans $"); #endif -__RCSID("$NetBSD: engine.c,v 1.29 2021/02/25 21:47:46 christos Exp $"); +__RCSID("$NetBSD: engine.c,v 1.30 2024/01/23 15:32:54 christos Exp $"); #include @@ -784,13 +784,13 @@ backref( if (m->pmatch[i].rm_eo == -1) return(NULL); assert(m->pmatch[i].rm_so != -1); - len = m->pmatch[i].rm_eo - m->pmatch[i].rm_so; + len = (size_t)(m->pmatch[i].rm_eo - m->pmatch[i].rm_so); if (len == 0 && rec++ > MAX_RECURSION) return(NULL); assert(stop - m->beginp >= len); if (sp > stop - len) return(NULL); /* not enough left to match */ - ssp = m->offp + m->pmatch[i].rm_so; + ssp = m->offp + (size_t)m->pmatch[i].rm_so; if (memcmp(sp, ssp, len) != 0) return(NULL); while (m->g->strip[ss] != SOP(O_BACK, i)) Index: src/lib/libc/regex/regsub.c diff -u src/lib/libc/regex/regsub.c:1.3 src/lib/libc/regex/regsub.c:1.4 --- src/lib/libc/regex/regsub.c:1.3 Mon Feb 29 17:10:13 2016 +++ src/lib/libc/regex/regsub.c Tue Jan 23 10:32:54 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: regsub.c,v 1.3 2016/02/29 22:10:13 aymeric Exp $ */ +/* $NetBSD: regsub.c,v 1.4 2024/01/23 15:32:54 christos Exp $ */ /*- * Copyright (c) 2015 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: regsub.c,v 1.3 2016/02/29 22:10:13 aymeric Exp $"); +__RCSID("$NetBSD: regsub.c,v 1.4 2024/01/23 15:32:54 christos Exp $"); #endif #include @@ -134,7 +134,7 @@ regsub1(char **buf, size_t len, const ch addchar(, c); } else if (rm[i].rm_so != -1 && rm[i].rm_eo != -1) { size_t l = (size_t)(rm[i].rm_eo - rm[i].rm_so); - addnstr(, str + rm[i].rm_so, l); + addnstr(, str + (size_t)rm[i].rm_so, l); } } Index: src/lib/libc/stdio/open_memstream.c diff -u src/lib/libc/stdio/open_memstream.c:1.1 src/lib/libc/stdio/open_memstream.c:1.2 --- src/lib/libc/stdio/open_memstream.c:1.1 Sun Oct 12 20:40:36 2014 +++ src/lib/libc/stdio/open_memstream.c Tue Jan 23 10:32:54 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: open_memstream.c,v 1.1 2014/10/13 00:40:36 christos Exp $ */ +/* $NetBSD: open_memstream.c,v 1.2 2024/01/23 15:32:54 christos Exp $ */ /*- * Copyright (c) 2013 Advanced Computing Technologies LLC @@ -31,7 +31,7 @@ #if 0 __FBSDID("$FreeBSD: head/lib/libc/stdio/open_memstream.c 247411 2013-02-27 19:50:46Z jhb $"); #endif -__RCSID("$NetBSD: open_memstream.c,v 1.1 2014/10/13 00:40:36 christos Exp $"); +__RCSID("$NetBSD: open_memstream.c,v 1.2 2024/01/23 15:32:54 christos Exp $"); #include "namespace.h" #include @@ -51,16 +51,21 @@ struct memstream { size_t offset; }; +static __inline size_t +off_t_to_size_t(off_t off) +{ + if (off < 0 || off >= SSIZE_MAX) + return SSIZE_MAX - 1; + return (size_t)off; +} + static int memstream_grow(struct memstream *ms, off_t newoff) { char *buf; size_t newsize; - if (newoff < 0 || newoff >= SSIZE_MAX) - newsize = SSIZE_MAX - 1; - else - newsize = newoff; + newsize = off_t_to_size_t(newoff); if (newsize > ms->len) { buf = realloc(*ms->bufp, newsize + 1); if (buf != NULL) { @@ -125,7 +130,7 @@ memstream_seek(void *cookie, off_t pos, case SEEK_SET: /* _fseeko() checks for negative offsets. */ assert(pos >= 0); - ms->offset = pos; + ms->offset = off_t_to_size_t(pos); break; case SEEK_CUR: /* This is only called by _ftello(). */ @@ -153,7 +158,7 @@ memstream_seek(void *cookie, off_t pos, return (-1); } } - ms->offset = ms->len + pos; + ms->offset = off_t_to_size_t(ms->len + pos); break; } memstream_update(ms); Index: src/lib/libc/stdio/open_wmemstream.c diff -u src/lib/libc/stdio/open_wmemstream.c:1.1 src/lib/libc/stdio/open_wmemstream.c:1.2 --- src/lib/libc/stdio/open_wmemstream.c:1.1 Sun Oct 12 20:40:36 2014 +++
CVS commit: src/lib/libc
Module Name:src Committed By: christos Date: Tue Jan 23 15:32:54 UTC 2024 Modified Files: src/lib/libc/regex: engine.c regsub.c src/lib/libc/stdio: open_memstream.c open_wmemstream.c Log Message: handle sizeof(off_t) > sizeof(size_t) To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/lib/libc/regex/engine.c cvs rdiff -u -r1.3 -r1.4 src/lib/libc/regex/regsub.c cvs rdiff -u -r1.1 -r1.2 src/lib/libc/stdio/open_memstream.c \ src/lib/libc/stdio/open_wmemstream.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libc/compiler_rt
Module Name:src Committed By: christos Date: Tue Jan 23 15:32:18 UTC 2024 Modified Files: src/lib/libc/compiler_rt: Makefile.inc Log Message: Add vax To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.46 src/lib/libc/compiler_rt/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libc/compiler_rt/Makefile.inc diff -u src/lib/libc/compiler_rt/Makefile.inc:1.45 src/lib/libc/compiler_rt/Makefile.inc:1.46 --- src/lib/libc/compiler_rt/Makefile.inc:1.45 Tue Jan 23 07:23:34 2024 +++ src/lib/libc/compiler_rt/Makefile.inc Tue Jan 23 10:32:18 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.45 2024/01/23 12:23:34 christos Exp $ +# $NetBSD: Makefile.inc,v 1.46 2024/01/23 15:32:18 christos Exp $ COMPILER_RT_DIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt COMPILER_RT_SRCDIR= ${COMPILER_RT_DIR}/dist @@ -317,10 +317,13 @@ COPTS.${src}+= -D__SOFT_FP__ .endfor LINTFLAGS.GCDAProfiling.c += -X 123,132,351 # Ok, this is just sloppy +LINTFLAGS.GCDAProfiling.c += -X 298 # vax LINTFLAGS.InstrProfiling.c += -X 351 +LINTFLAGS.InstrProfiling.c += -X 298 # vax LINTFLAGS.InstrProfilingFile.c += -X 351 LINTFLAGS.InstrProfilingPlatformLinux.c += -X 190,351 LINTFLAGS.InstrProfilingValue.c += -X 132,231,275,351 +LINTFLAGS.InstrProfilingValue.c += -X 298 # vax LINTFLAGS.InstrProfilingWriter.c += -X 132 LINTFLAGS.absvdi2.c += -X 117,351 LINTFLAGS.absvsi2.c += -X 117,351 @@ -331,6 +334,7 @@ LINTFLAGS.addvsi3.c += -X 351 LINTFLAGS.addvti3.c += -X 351 LINTFLAGS.ashlti3.c += -X 351 LINTFLAGS.ashrti3.c += -X 117,351 +LINTFLAGS.ashrdi3.c += -X 117 # vax LINTFLAGS.clzdi2.c += -X 351 LINTFLAGS.clzsi2.c += -X 351 LINTFLAGS.cmpti2.c += -X 351 @@ -339,6 +343,7 @@ LINTFLAGS.crzdi2.c += -X 351 LINTFLAGS.ctzdi2.c += -X 351 LINTFLAGS.ctzsi2.c += -X 351 LINTFLAGS.ctzti2.c += -X 351 +LINTFLAGS.divdi3.c += -X 117 # vax LINTFLAGS.divmodsi4.c += -X 351 LINTFLAGS.divsi3.c += -X 117 LINTFLAGS.divti3.c += -X 117,351 @@ -377,6 +382,7 @@ LINTFLAGS.floatuntixf.c += -X 122,351 LINTFLAGS.floatuntixf.c += -X 141 # alpha LINTFLAGS.int_util.c += -X 231 LINTFLAGS.lshrti3.c += -X 351 +LINTFLAGS.moddi3.c += -X 117 # vax LINTFLAGS.modsi3.c += -X 117,351 LINTFLAGS.modti3.c += -X 117,351 LINTFLAGS.muldc3.c += -X 117,351 @@ -405,6 +411,7 @@ LINTFLAGS.subvsi3.c += -X 351 LINTFLAGS.subvti3.c += -X 351 LINTFLAGS.ucmpti2.c += -X 351 LINTFLAGS.ucmpti2.c += -X 351 +LINTFLAGS.udivmoddi4.c += -X 117 # vax LINTFLAGS.udivmodti4.c += -X 117,132 LINTFLAGS.udivsi3.c += -X 117 LINTFLAGS.udivti3.c += -X 351
CVS commit: src/lib/libc/compiler_rt
Module Name:src Committed By: christos Date: Tue Jan 23 15:32:18 UTC 2024 Modified Files: src/lib/libc/compiler_rt: Makefile.inc Log Message: Add vax To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.46 src/lib/libc/compiler_rt/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libc/gdtoa
Module Name:src Committed By: christos Date: Tue Jan 23 15:31:58 UTC 2024 Modified Files: src/lib/libc/gdtoa: strtod.c Log Message: fix vax build (unused variable) To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/lib/libc/gdtoa/strtod.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libc/gdtoa/strtod.c diff -u src/lib/libc/gdtoa/strtod.c:1.19 src/lib/libc/gdtoa/strtod.c:1.20 --- src/lib/libc/gdtoa/strtod.c:1.19 Fri Aug 11 02:02:46 2023 +++ src/lib/libc/gdtoa/strtod.c Tue Jan 23 10:31:58 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: strtod.c,v 1.19 2023/08/11 06:02:46 mrg Exp $ */ +/* $NetBSD: strtod.c,v 1.20 2024/01/23 15:31:58 christos Exp $ */ / @@ -96,7 +96,7 @@ _int_strtod_l(CONST char *s00, char **se #ifdef Avoid_Underflow int scale; #endif - int bb2, bb5, bbe, bd2, bd5, bbbits, bs2, c, decpt, dsign, + int bb2, bb5, bbe, bd2, bd5, bbbits, bs2, c, dsign, e, e1, esign, i, j, k, nd, nd0, nf, nz, nz0, sign; CONST char *s, *s0, *s1; double aadj; @@ -117,7 +117,7 @@ _int_strtod_l(CONST char *s00, char **se #endif /*USE_LOCALE}}*/ #ifdef Honor_FLT_ROUNDS /*{*/ - int Rounding; + int Rounding, decpt = 0; #ifdef Trust_FLT_ROUNDS /*{{ only define this if FLT_ROUNDS really works! */ Rounding = Flt_Rounds; #else /*}{*/ @@ -130,7 +130,7 @@ _int_strtod_l(CONST char *s00, char **se #endif /*}}*/ #endif /*}*/ - sign = nz0 = nz = decpt = 0; + sign = nz0 = nz = 0; dval() = 0.; for(s = s00;;s++) switch(*s) { case '-': @@ -211,7 +211,9 @@ _int_strtod_l(CONST char *s00, char **se if (c == '.') { c = *++s; #endif +#ifdef Honor_FLT_ROUNDS decpt = 1; +#endif if (!nd) { for(; c == '0'; c = *++s) nz++; @@ -349,6 +351,7 @@ _int_strtod_l(CONST char *s00, char **se if (nd <= DBL_DIG #ifndef RND_PRODQUOT #ifndef Honor_FLT_ROUNDS + /*CONSTCOND*/ && Flt_Rounds == 1 #endif #endif
CVS commit: src/lib/libc/gdtoa
Module Name:src Committed By: christos Date: Tue Jan 23 15:31:58 UTC 2024 Modified Files: src/lib/libc/gdtoa: strtod.c Log Message: fix vax build (unused variable) To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/lib/libc/gdtoa/strtod.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libc/compiler_rt
Module Name:src Committed By: christos Date: Tue Jan 23 12:23:34 UTC 2024 Modified Files: src/lib/libc/compiler_rt: Makefile.inc Log Message: more annotation for powerpc To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/lib/libc/compiler_rt/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libc/compiler_rt/Makefile.inc diff -u src/lib/libc/compiler_rt/Makefile.inc:1.44 src/lib/libc/compiler_rt/Makefile.inc:1.45 --- src/lib/libc/compiler_rt/Makefile.inc:1.44 Sat Jan 20 19:43:34 2024 +++ src/lib/libc/compiler_rt/Makefile.inc Tue Jan 23 07:23:34 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.44 2024/01/21 00:43:34 christos Exp $ +# $NetBSD: Makefile.inc,v 1.45 2024/01/23 12:23:34 christos Exp $ COMPILER_RT_DIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt COMPILER_RT_SRCDIR= ${COMPILER_RT_DIR}/dist @@ -342,6 +342,7 @@ LINTFLAGS.ctzti2.c += -X 351 LINTFLAGS.divmodsi4.c += -X 351 LINTFLAGS.divsi3.c += -X 117 LINTFLAGS.divti3.c += -X 117,351 +LINTFLAGS.divtc3.c += -X 351 # ppc LINTFLAGS.dlfcn_elf.c += -X 351 LINTFLAGS.ffsdi2.c += -X 132,351 LINTFLAGS.ffsti2.c += -X 132,351
CVS commit: src/lib/libc/compiler_rt
Module Name:src Committed By: christos Date: Tue Jan 23 12:23:34 UTC 2024 Modified Files: src/lib/libc/compiler_rt: Makefile.inc Log Message: more annotation for powerpc To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/lib/libc/compiler_rt/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/doc
Module Name:src Committed By: nia Date: Tue Jan 23 08:08:36 UTC 2024 Modified Files: src/doc: CHANGES Log Message: indent To generate a diff of this commit: cvs rdiff -u -r1.3029 -r1.3030 src/doc/CHANGES Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES diff -u src/doc/CHANGES:1.3029 src/doc/CHANGES:1.3030 --- src/doc/CHANGES:1.3029 Tue Jan 23 08:01:15 2024 +++ src/doc/CHANGES Tue Jan 23 08:08:36 2024 @@ -1,4 +1,4 @@ -# LIST OF CHANGES FROM LAST RELEASE: <$Revision: 1.3029 $> +# LIST OF CHANGES FROM LAST RELEASE: <$Revision: 1.3030 $> # # # [Note: This file does not mention every change made to the NetBSD source tree. @@ -252,7 +252,7 @@ Changes from NetBSD 10.0 to NetBSD 11.0: interrupt controller. [thorpej 20240102] gftty(4): New driver for the Goldfish virtual tty. [thorpej 20240102] virt68k: Add new port for virtual Motorola 68040 machines in - QEMU using VirtIO devices. [thorpej 20240102] + QEMU using VirtIO devices. [thorpej 20240102] urtwn(4): Add Mercusys NW150US V2 USB support. [maya 20240106] riscv: Add a SiFive FU[57]40/ L2 Cache controller driver. [skrll 20240113]
CVS commit: src/doc
Module Name:src Committed By: nia Date: Tue Jan 23 08:08:36 UTC 2024 Modified Files: src/doc: CHANGES Log Message: indent To generate a diff of this commit: cvs rdiff -u -r1.3029 -r1.3030 src/doc/CHANGES Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/doc
Module Name:src Committed By: nia Date: Tue Jan 23 08:01:15 UTC 2024 Modified Files: src/doc: CHANGES Log Message: doc: Changes for January To generate a diff of this commit: cvs rdiff -u -r1.3028 -r1.3029 src/doc/CHANGES Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/doc
Module Name:src Committed By: nia Date: Tue Jan 23 08:01:15 UTC 2024 Modified Files: src/doc: CHANGES Log Message: doc: Changes for January To generate a diff of this commit: cvs rdiff -u -r1.3028 -r1.3029 src/doc/CHANGES Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES diff -u src/doc/CHANGES:1.3028 src/doc/CHANGES:1.3029 --- src/doc/CHANGES:1.3028 Thu Jan 18 04:08:44 2024 +++ src/doc/CHANGES Tue Jan 23 08:01:15 2024 @@ -1,4 +1,4 @@ -# LIST OF CHANGES FROM LAST RELEASE: <$Revision: 1.3028 $> +# LIST OF CHANGES FROM LAST RELEASE: <$Revision: 1.3029 $> # # # [Note: This file does not mention every change made to the NetBSD source tree. @@ -246,5 +246,26 @@ Changes from NetBSD 10.0 to NetBSD 11.0: tzdata: Updated to 2023d (via 2023dgtz) [kre 20231223] postfix(1): Import version 3.8.4. [christos 20231223] tzcode: Updated to 2023d. [christos 20231223] + postfix(1): Install postfix-tls-script (for "postfix tls") + [kim 20240101] + gfpic(4): New driver for the Goldfish virtual programmable + interrupt controller. [thorpej 20240102] + gftty(4): New driver for the Goldfish virtual tty. [thorpej 20240102] + virt68k: Add new port for virtual Motorola 68040 machines in + QEMU using VirtIO devices. [thorpej 20240102] + urtwn(4): Add Mercusys NW150US V2 USB support. [maya 20240106] + riscv: Add a SiFive FU[57]40/ L2 Cache controller driver. + [skrll 20240113] + cp(1): Always copy regular files, even if they appear to be zero-sized. + [christos 20240115] + riscv: Add a StarTech JH7100 SoC clock driver, seen in the Beagle-V + board. [skrll 20240116] wm(4): Add some Meteor Lake devices (I219 V20-V21 and LM 20-21). [msaitoh 20240118] + cpuctl(8): Recognize Intel Meteor Lake and Emerald Rapids. + [msaitoh 20240118] + m68k: Made many ports share common code for interrupt dispatch + and vector tables. [thorpej 20240118] + evbppc: Add initial support for the Nintendo Wii. [jmcneill 20240120] + libm: Import more long double functions from FreeBSD. + [christos 20240121]