OpenBSD cvs log

created 2023-10-27T02:27:46Z
begin 2023-10-24T00:00:00Z
end 2023-10-25T00:00:00Z
path src/sys
commits 7

date 2023-10-24T09:13:22Z
author jmatthew
files src/sys/dev/usb/if_umb.c log diff annotate
message Delete any existing v4 address before setting a new one. This allows us
to keep a working default route when the address changes.

ok dlg@ kn@

date 2023-10-24T10:00:22Z
author mpi
files src/sys/uvm/uvm_pdaemon.c log diff annotate
message Merge two equivalent if blocks.

No functional change, ok tb@

date 2023-10-24T10:12:09Z
author jsg
files src/sys/dev/pci/drm/radeon/atombios_encoders.c log diff annotate
message revert rev 1.19 'drm/radeon: Fix eDP for single-display iMac11,2'

mglocker@ reports this caused the screen to stay black on iMac11,2 when
radeondrm takes over

date 2023-10-24T13:20:09Z
author claudio
files src/sys/arch/alpha/alpha/cpu.c log diff annotate
src/sys/arch/alpha/alpha/locore.s log diff annotate
src/sys/arch/alpha/alpha/vm_machdep.c log diff annotate
src/sys/arch/amd64/amd64/cpu.c log diff annotate
src/sys/arch/amd64/amd64/locore.S log diff annotate
src/sys/arch/arm/arm/cpu.c log diff annotate
src/sys/arch/arm/arm/cpuswitch7.S log diff annotate
src/sys/arch/arm64/arm64/cpu.c log diff annotate
src/sys/arch/arm64/arm64/cpuswitch.S log diff annotate
src/sys/arch/hppa/dev/cpu.c log diff annotate
message Normally context switches happen in mi_switch() but there are 3 cases
where a switch happens outside. Cleanup these code paths and make the
machine independent.

- when a process forks (fork, tfork, kthread), the new proc needs to
somehow be scheduled for the first time. This is done by proc_trampoline.
Since proc_trampoline is machine dependent assembler code change
the MP specific proc_trampoline_mp() to proc_trampoline_mi() and make
sure it is now always called.
- cpu_hatch: when booting APs the code needs to jump to the first proc
running on that CPU. This should be the idle thread for that CPU.
- sched_exit: when a proc exits it needs to switch away from itself and
then instruct the reaper to clean up the rest. This is done by switching
to the idle loop.

Since the last two cases require a context switch to the idle proc factor
out the common code to sched_toidle() and use it in those places.

Tested by many on all archs.
OK miod@ mpi@ cheloha@

date 2023-10-24T13:20:10Z
author claudio
files src/sys/arch/hppa/hppa/locore.S log diff annotate
src/sys/arch/i386/i386/cpu.c log diff annotate
src/sys/arch/i386/i386/locore.s log diff annotate
src/sys/arch/loongson/loongson/machdep.c log diff annotate
src/sys/arch/luna88k/luna88k/machdep.c log diff annotate
src/sys/arch/m88k/m88k/eh_common.S log diff annotate
src/sys/arch/macppc/macppc/cpu.c log diff annotate
src/sys/arch/macppc/macppc/locore.S log diff annotate
src/sys/arch/macppc/macppc/machdep.c log diff annotate
src/sys/arch/mips64/mips64/clock.c log diff annotate
src/sys/arch/mips64/mips64/context.S log diff annotate
src/sys/arch/octeon/octeon/machdep.c log diff annotate
src/sys/arch/powerpc64/powerpc64/cpu.c log diff annotate
src/sys/arch/powerpc64/powerpc64/locore.S log diff annotate
src/sys/arch/riscv64/riscv64/cpu.c log diff annotate
src/sys/arch/riscv64/riscv64/cpuswitch.S log diff annotate
src/sys/arch/sh/sh/locore_subr.S log diff annotate
src/sys/arch/sh/sh/vm_machdep.c log diff annotate
src/sys/arch/sparc64/sparc64/cpu.c log diff annotate
message Normally context switches happen in mi_switch() but there are 3 cases
where a switch happens outside. Cleanup these code paths and make the
machine independent.

- when a process forks (fork, tfork, kthread), the new proc needs to
somehow be scheduled for the first time. This is done by proc_trampoline.
Since proc_trampoline is machine dependent assembler code change
the MP specific proc_trampoline_mp() to proc_trampoline_mi() and make
sure it is now always called.
- cpu_hatch: when booting APs the code needs to jump to the first proc
running on that CPU. This should be the idle thread for that CPU.
- sched_exit: when a proc exits it needs to switch away from itself and
then instruct the reaper to clean up the rest. This is done by switching
to the idle loop.

Since the last two cases require a context switch to the idle proc factor
out the common code to sched_toidle() and use it in those places.

Tested by many on all archs.
OK miod@ mpi@ cheloha@

date 2023-10-24T13:20:11Z
author claudio
files src/sys/arch/sparc64/sparc64/locore.s log diff annotate
src/sys/kern/kern_fork.c log diff annotate
src/sys/kern/kern_sched.c log diff annotate
src/sys/sys/sched.h log diff annotate
message Normally context switches happen in mi_switch() but there are 3 cases
where a switch happens outside. Cleanup these code paths and make the
machine independent.

- when a process forks (fork, tfork, kthread), the new proc needs to
somehow be scheduled for the first time. This is done by proc_trampoline.
Since proc_trampoline is machine dependent assembler code change
the MP specific proc_trampoline_mp() to proc_trampoline_mi() and make
sure it is now always called.
- cpu_hatch: when booting APs the code needs to jump to the first proc
running on that CPU. This should be the idle thread for that CPU.
- sched_exit: when a proc exits it needs to switch away from itself and
then instruct the reaper to clean up the rest. This is done by switching
to the idle loop.

Since the last two cases require a context switch to the idle proc factor
out the common code to sched_toidle() and use it in those places.

Tested by many on all archs.
OK miod@ mpi@ cheloha@

date 2023-10-24T13:52:49Z
author fcambus
files src/sys/dev/wsfont/Attic/bold8x16.h log diff annotate
src/sys/dev/wsfont/wsfont.c log diff annotate
message Remove bold8x16 font.

Since we have imported the IBM encoded version of "Spleen 8x16" as a
replacement, there is no reason to keep it anymore.

OK miod@