OpenBSD cvs log

created 2022-10-22T00:49:20Z
begin 2022-10-17T00:00:00Z
end 2022-10-18T00:00:00Z
path src/sys
commits 6

date 2022-10-17T14:49:01Z
author mvs
files src/sys/kern/uipc_usrreq.c log diff annotate
src/sys/net/pfkeyv2.c log diff annotate
message Change pru_abort() return type to the type of void and make pru_abort()
optional.

We have no interest on pru_abort() return value. We call it only from
soabort() which is dummy pru_abort() wrapper and has no return value.

Only the connection oriented sockets need to implement (*pru_abort)()
handler. Such sockets are tcp(4) and unix(4) sockets, so remove existing
code for all others, it doesn't called.

ok guenther@

date 2022-10-17T14:49:02Z
author mvs
files src/sys/net/rtsock.c log diff annotate
src/sys/netinet/ip_divert.c log diff annotate
src/sys/netinet/ip_divert.h log diff annotate
src/sys/netinet/ip_gre.c log diff annotate
src/sys/netinet/ip_var.h log diff annotate
src/sys/netinet/raw_ip.c log diff annotate
src/sys/netinet/tcp_usrreq.c log diff annotate
src/sys/netinet/tcp_var.h log diff annotate
src/sys/netinet/udp_usrreq.c log diff annotate
src/sys/netinet/udp_var.h log diff annotate
src/sys/netinet6/ip6_divert.c log diff annotate
src/sys/netinet6/ip6_divert.h log diff annotate
src/sys/netinet6/ip6_var.h log diff annotate
src/sys/netinet6/raw_ip6.c log diff annotate
src/sys/sys/protosw.h log diff annotate
src/sys/sys/unpcb.h log diff annotate
message Change pru_abort() return type to the type of void and make pru_abort()
optional.

We have no interest on pru_abort() return value. We call it only from
soabort() which is dummy pru_abort() wrapper and has no return value.

Only the connection oriented sockets need to implement (*pru_abort)()
handler. Such sockets are tcp(4) and unix(4) sockets, so remove existing
code for all others, it doesn't called.

ok guenther@

date 2022-10-17T18:49:06Z
author kettenis
files src/sys/arch/sparc64/sparc64/ofw_machdep.c log diff annotate
message Fix "map" OpenFirmware call. It does not return a value according to the
IEEE 1275 specification.

Based on a diff provided by Harald Gutch (hgutch@netbsd). Also see
NetBSD PR#56829.

ok miod@

date 2022-10-17T18:55:20Z
author kettenis
files src/sys/arch/sparc64/stand/ofwboot/Locore.c log diff annotate
message Fix "map" OpenFirmware call. It does not return a value according to the
IEEE 1275 specification. This should fix booting on machines that would
fail with something like:

OF_map_phys(3fe44000,8192,fed58000,-1) failed
no space for symbol table
Program terminated

Based on a diff provided by Harald Gutch (hgutch@netbsd). Also see
NetBSD PR#56829.

There were (and still are) some questions about whether this diff breaks
the blade1.5k. However the failure in question might have been hardware
related and subsequent testing of the equivalent kernel diff (which
was just committed) was successful. So committing this in the hope it
sticks to ease testing.

ok miod@

date 2022-10-17T19:09:46Z
author kettenis
files src/sys/dev/fdt/acrtc.c log diff annotate
src/sys/dev/fdt/exrtc.c log diff annotate
src/sys/dev/fdt/gfrtc.c log diff annotate
src/sys/dev/fdt/imxrtc.c log diff annotate
src/sys/dev/fdt/mvrtc.c log diff annotate
src/sys/dev/fdt/plrtc.c log diff annotate
src/sys/dev/fdt/sxirtc.c log diff annotate
message Convert more drivers to use todr_attach(). The quality of the RTC is
set such that "discrete" RTC chips are preferred over RTCs integrated on
a SoC.

ok deraadt@, miod@

date 2022-10-17T19:51:54Z
author kettenis
files src/sys/arch/riscv64/riscv64/pmap.c log diff annotate
message Implement uncached mappings on the StarFive JH7100 SoC, where the hardware
provides allows bypassing the L2 cache by using a physical address alias.

ok miod@