OpenBSD cvs log

created 2022-03-20T00:42:38Z
begin 2022-03-16T00:00:00Z
end 2022-03-17T00:00:00Z
path src/sys
commits 4

date 2022-03-16T14:13:01Z
author visa
files src/sys/kern/kern_synch.c log diff annotate
src/sys/sys/refcnt.h log diff annotate
message Add refcnt_shared() and refcnt_read()

refcnt_shared() checks whether the object has multiple references.
When refcnt_shared() returns zero, the caller is the only reference
holder.

refcnt_read() returns a snapshot of the counter value.

refcnt_shared() suggested by dlg@.

OK dlg@ mvs@

date 2022-03-16T14:38:43Z
author visa
files src/sys/kern/kern_event.c log diff annotate
src/sys/sys/eventvar.h log diff annotate
message Use the refcnt API in kqueue.

OK dlg@ bluhm@

date 2022-03-16T16:17:46Z
author visa
files src/sys/kern/kern_event.c log diff annotate
message Remove an unneeded include.

date 2022-03-16T22:32:50Z
author kettenis
files src/sys/arch/arm64/stand/efiboot/efiboot.c log diff annotate
message When we allocate space a buffer with some extra space for the FDT, adjust
the size of the FDT to reflect the size of that buffer. This prevents
an FDT overflow if the original FDT doesn't have enough space for the
additional properties that we add to it in our bootloader.

Fixes boot on the mcbin.
tested by bluhm@, ok patrick@