Allow comments in /etc/bsd.re-config

2022-10-20 Thread Lyndon Nerenberg (VE7TFX/VE6BBM)
It would be handy if bsd.re-config allowed comments so we can annotate why we're frobbing those kernel settings (and to allow version control headers). Diff attached. --lyndon Index: ukcutil.c === RCS file:

acpisbs: constify battery check table

2022-10-20 Thread Klemens Nanni
Another global that can go to .rodata: 8227fec0 g O .data 0420 acpisbs_battery_checks Builds fine on amd64, but I don't have access to this hardware. Tests? OK? diff --git a/sys/dev/acpi/acpisbs.c b/sys/dev/acpi/acpisbs.c index 7fd85860f79..252588da591 100644 ---

Re: macppc hw.power, machdep.lidaction, machdep.pwraction

2022-10-20 Thread George Koehler
On Sun, 16 Oct 2022 18:05:28 +0200 Mark Kettenis wrote: > The consensus is that calling prsignal() from interrupt context isn't > safe. See dev/fdt/dapmic.c for a way to avoid that. I put prsignal() in interrupt context after "grep -R 'prsignal.*USR2'" found other files that might do the same,

Re: 7.2 miniroot pointed to /pub/OpenBSD/snapshots for sets

2022-10-20 Thread Stuart Henderson
On 2022/10/20 09:44, Heppler, J. Scott wrote: > I was testing the full setup for a lightweight desktop I posted on > https://daemonforums.org/showpost.php?p=67677=1 > > My downloaded miniroot: > -rw-r--r--1 jsh jsh 5832704 Oct 20 08:51 miniroot72.img > > The system had previously been

Re: 7.2 miniroot pointed to /pub/OpenBSD/snapshots for sets

2022-10-20 Thread Heppler, J. Scott
I was testing the full setup for a lightweight desktop I posted on https://daemonforums.org/showpost.php?p=67677=1 My downloaded miniroot: -rw-r--r--1 jsh jsh 5832704 Oct 20 08:51 miniroot72.img The system had previously been running snapshot, but I had selected Install(I) and whole disk

Re: 7.2 miniroot pointed to /pub/OpenBSD/snapshots for sets

2022-10-20 Thread Stuart Henderson
On 2022/10/20 09:05, Heppler, J. Scott wrote: > Using the miniroot img from https://cdn.openbsd.org/pub/OpenBSD/7.2, the > set retrival still points to snapshots. You (or someone else using the same IP) must have done an install from a full URL previously rather than picking a mirror from the

Re: 7.2 miniroot pointed to /pub/OpenBSD/snapshots for sets

2022-10-20 Thread Klemens Nanni
On Thu, Oct 20, 2022 at 09:05:42AM -0700, Heppler, J. Scott wrote: > Using the miniroot img from https://cdn.openbsd.org/pub/OpenBSD/7.2, the > set retrival still points to snapshots. Can't confirm, default install points at 7.2/ for me: $ ftp

7.2 miniroot pointed to /pub/OpenBSD/snapshots for sets

2022-10-20 Thread Heppler, J. Scott
Using the miniroot img from https://cdn.openbsd.org/pub/OpenBSD/7.2, the set retrival still points to snapshots. -- J. Scott Heppler - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Re: asmc: constify global product table

2022-10-20 Thread Joerg Jung
On Wed, Oct 19, 2022 at 02:39:33PM +, Klemens Nanni wrote: > Looking at symbols in /bsd .data again for .rodata candidates: > 82281b70 l O .data 1688 asmc_prods > > amsc(4) never writes, but a const table requires a const softc member: > > 263 for (i = 0;

Re: Towards unlocking mmap(2) & munmap(2)

2022-10-20 Thread Martin Pieuchot
On 11/09/22(Sun) 12:26, Martin Pieuchot wrote: > Diff below adds a minimalist set of assertions to ensure proper locks > are held in uvm_mapanon() and uvm_unmap_remove() which are the guts of > mmap(2) for anons and munmap(2). > > Please test it with WITNESS enabled and report back. New version

hyperv(4): ifnetlist read: replace kernel lock with shared net lock

2022-10-20 Thread Klemens Nanni
Looking at users of the global interface list `ifnetlist', drivers like this read out an IP or MAC address to report to the hypervisor. None of this modifies any of the fields in the global list, they iterate over and read from it. net/if_var.h documents the `if_list' member as kernel lock