OpenBSD cvs log

created 2021-05-09T03:53:34Z
begin 2021-05-04T00:00:00Z
end 2021-05-05T00:00:00Z
path src/sys
commits 11

date 2021-05-04T06:32:58Z
author jsg
files src/sys/arch/riscv64/dev/mainbus.c log diff annotate
src/sys/arch/riscv64/riscv64/machdep.c log diff annotate
message Check that fdt hart id matches boot hart id before associating an fdt
node with the primary cpu.

Prompted by the polarfire icicle where hart 0 is an mmuless e51 core.

ok drahn@ mlarkin@

date 2021-05-04T09:27:22Z
author mvs
files src/sys/net/pfkeyv2.c log diff annotate
message Remove unused `spd_tables' declaration.

ok bluhm@ mpi@

date 2021-05-04T09:28:04Z
author mvs
files src/sys/net/pfkeyv2.c log diff annotate
src/sys/netinet/ip_ipsp.h log diff annotate
src/sys/netinet/ip_spd.c log diff annotate
message Initialize `ipsec_policy_pool' within pfkey_init() instead of doing that
in runtime within pfkeyv2_send(). Also set it's interrupt protection
level to IPL_SOFTNET.

ok bluhm@ mpi@

date 2021-05-04T12:46:28Z
author kettenis
files src/sys/arch/riscv64/dev/mainbus.c log diff annotate
message Add a boot hart ID check in the function that matches secondary CPUs
as well.

ok jsg@

date 2021-05-04T14:05:12Z
author aoyama
files src/sys/arch/m88k/include/atomic.h log diff annotate
message Fix 2nd and 3rd arguments' cast in atomic_cas_ptr().

This fixes compile errors (actually warnings) on m88k in sys/net/pf.c
revision 1.1116 changes.

Diff from Miod Vallat, tested on GENERIC and GENERIC.MP by me.

date 2021-05-04T16:38:06Z
author kettenis
files src/sys/arch/riscv64/conf/GENERIC log diff annotate
src/sys/arch/riscv64/conf/RAMDISK log diff annotate
src/sys/arch/riscv64/conf/files.riscv64 log diff annotate
src/sys/arch/riscv64/dev/mainbus.c log diff annotate
src/sys/arch/riscv64/dev/Attic/timer.c log diff annotate
src/sys/arch/riscv64/dev/Attic/timer.h log diff annotate
src/sys/arch/riscv64/include/cpu.h log diff annotate
src/sys/arch/riscv64/riscv64/clock.c log diff annotate
src/sys/arch/riscv64/riscv64/cpu.c log diff annotate
src/sys/arch/riscv64/riscv64/intr.c log diff annotate
src/sys/arch/riscv64/riscv64/machdep.c log diff annotate
message The clock on RISC-V is architectural, so we really don't need the
whole abstraction layer to support multiple timers. And we don't
really need a separate driver. Replace timer(4) with code based on
the powerpc64 implementation of the randomized statclock code.

Fixes hangs seen on real hardware.

ok jsg@, drahn@

date 2021-05-04T18:10:24Z
author cheloha
files src/sys/kern/syscalls.master log diff annotate
message getitimer(2), setitimer(2): unlock syscalls

With the changes in kern_time.c v1.150, neither getitimer(2) nor
setitimer(2) need the kernel lock anymore.

ok anton@, mpi@

date 2021-05-04T18:14:58Z
author cheloha
files src/sys/kern/syscalls.c log diff annotate
src/sys/sys/syscall.h log diff annotate
src/sys/sys/syscallargs.h log diff annotate
message syscalls.c, init_sysent.c, syscall.h, syscallargs.h: regen

Regen after unlocking getitimer(2) and setitimer(2).

ok anton@, mpi@

date 2021-05-04T18:14:59Z
author cheloha
files src/sys/kern/init_sysent.c log diff annotate
message syscalls.c, init_sysent.c, syscall.h, syscallargs.h: regen

Regen after unlocking getitimer(2) and setitimer(2).

ok anton@, mpi@

date 2021-05-04T19:04:56Z
author bluhm
files src/sys/kern/kern_sysctl.c log diff annotate
message As the unbouded feature in sysctl_int_bounded() is no longer used,
remove it. This also fixes a defective check of the dynamic boundary
in sysctl_sysvshm().
OK mvs@ gnezdo@

date 2021-05-04T21:57:15Z
author bluhm
files src/sys/kern/kern_sysctl.c log diff annotate
src/sys/sys/sysctl.h log diff annotate
message Reorder the integer sysctl functions. Then the traditional 4.4BSD
comment 'As above...' makes sense again. Improve comments for
sysctl_int_bounded() and sysctl_bounded_arr().
OK gnezdo@ mvs@