OpenBSD cvs log

created 2020-07-28T20:03:52Z
begin 2020-05-17T00:00:00Z
end 2020-05-18T00:00:00Z
path src/sys
commits 24

date 2020-05-17T08:27:51Z
author jsg
files src/sys/dev/pci/if_bnx.c log diff annotate
message fix typo in a comment

from Delyan Raychev

date 2020-05-17T08:46:05Z
author anton
files src/sys/dev/kcov.c log diff annotate
message Prevent kcov from collecting coverage after the kernel has panicked.
This could happen if curproc had kcov enabled while panicking.

ok mpi@ visa@

date 2020-05-17T08:48:15Z
author visa
files src/sys/arch/sparc64/sparc64/clock.c log diff annotate
message Do not redefine todr_handle. The variable now lives in kern_time.c.

OK kettenis@ cheloha@

date 2020-05-17T10:53:14Z
author visa
files src/sys/kern/kern_event.c log diff annotate
src/sys/sys/event.h log diff annotate
message Add kqueue_scan_state struct

The struct keeps track of the end point of an event queue scan by
persisting the end marker. This will be needed when kqueue_scan() is
called repeatedly to complete a scan in a piecewise fashion. The end
marker has to be preserved between calls because otherwise the scan
might collect an event more than once. If a collected event gets
reactivated during scanning, it will be added at the tail of the queue,
out of reach because of the end marker.

OK mpi@

date 2020-05-17T11:05:15Z
author kettenis
files src/sys/arch/arm64/arm64/machdep.c log diff annotate
src/sys/arch/arm64/include/cpu.h log diff annotate
message Add machdep.compatible.

ok jsg@

date 2020-05-17T11:12:55Z
author kn
files src/sys/arch/arm/arm/mem.c log diff annotate
src/sys/arch/sparc64/sparc64/mem.c log diff annotate
message Fix WITNESS build

sparc64 (and arm mem.c) are the only architectures/places where
RWLOCK_INITIALIZER() is used with static function variables, all other
(mem.c) usages place it into the global scope.

Fix builds with WITNESS enabled for sparc64 and arm by moving physlock
into global scope:

mem.c:93: error: initializer element is not constant
mem.c:93: error: (near initialization for 'physlock.rwl_lock_obj.lo_type')

OK visa

date 2020-05-17T12:01:11Z
author kettenis
files src/sys/arch/powerpc64/include/cpu.h log diff annotate
src/sys/arch/powerpc64/powerpc64/machdep.c log diff annotate
message The 64-bit Power ABI reserves r13 for the thread pointer, so use that
to hold a pointer to our struct cpu_info.

date 2020-05-17T13:21:20Z
author visa
files src/sys/dev/clock_subr.h log diff annotate
message Add function for attaching RTC drivers, to reduce direct use
of todr_handle.

OK kettenis@

date 2020-05-17T13:21:21Z
author visa
files src/sys/kern/kern_time.c log diff annotate
message Add function for attaching RTC drivers, to reduce direct use
of todr_handle.

OK kettenis@

date 2020-05-17T13:36:33Z
author kettenis
files src/sys/arch/arm64/include/cpu.h log diff annotate
message Fix typo in comment.

date 2020-05-17T13:48:29Z
author deraadt
files src/sys/arch/alpha/alpha/locore.s log diff annotate
message Put setjmp+longjmp inside #ifdef DDB the only kernel-side user.
This shrinks the ramdisks a tiny bit.

date 2020-05-17T13:48:30Z
author deraadt
files src/sys/arch/amd64/amd64/locore.S log diff annotate
src/sys/arch/arm/arm/locore.S log diff annotate
message Put setjmp+longjmp inside #ifdef DDB the only kernel-side user.
This shrinks the ramdisks a tiny bit.

date 2020-05-17T13:48:31Z
author deraadt
files src/sys/arch/hppa/hppa/locore.S log diff annotate
src/sys/arch/i386/i386/locore.s log diff annotate
src/sys/arch/sparc64/sparc64/locore.s log diff annotate
message Put setjmp+longjmp inside #ifdef DDB the only kernel-side user.
This shrinks the ramdisks a tiny bit.

date 2020-05-17T14:06:02Z
author jsg
files src/sys/dev/ic/vga.c log diff annotate
message restore VGA fonts on VT switch

Avoids an unusable screen when switching to a VT with a custom VGA font
from X. While it is possible to modify the xserver to invoke an ioctl
for this kettenis@ points out the xserver may have crashed so doing it
in the kernel is preferred.

Problem reported by and patch from John Carmack. Changed slightly to
do the vga_restore_fonts() (write to video memory) call before
vga_setfont() (pointing the character generator at it) at the suggestion
of kettenis@.

ok kettenis@

date 2020-05-17T14:32:12Z
author kettenis
files src/sys/arch/armv7/stand/efiboot/conf.c log diff annotate
src/sys/arch/armv7/stand/efiboot/efiboot.c log diff annotate
src/sys/arch/armv7/stand/efiboot/efiboot.h log diff annotate
src/sys/arch/armv7/stand/efiboot/exec.c log diff annotate
message Remove board ID support. 6.7 shipped with a kernel that doesn't need
it anymore.

jsg@

date 2020-05-17T14:54:14Z
author kettenis
files src/sys/arch/powerpc64/include/vmparam.h log diff annotate
message Hand those pages over to uvm.

date 2020-05-17T14:54:15Z
author kettenis
files src/sys/arch/powerpc64/powerpc64/machdep.c log diff annotate
message Hand those pages over to uvm.

date 2020-05-17T15:03:06Z
author kettenis
files src/sys/arch/arm64/arm64/machdep.c log diff annotate
message Look at the openbsd,boothowto property.

ok visa@

date 2020-05-17T15:36:50Z
author kettenis
files src/sys/arch/arm/arm/arm32_machdep.c log diff annotate
src/sys/arch/arm/include/cpu.h log diff annotate
message Add machdep.compatible.

ok jsg@

date 2020-05-17T22:09:32Z
author kettenis
files src/sys/arch/powerpc64/include/cpu.h log diff annotate
message Use a register varible ro implement curpcu().

date 2020-05-17T22:11:50Z
author kettenis
files src/sys/dev/fdt/amlclock.c log diff annotate
message Add support for the SM1 variant and (probably) fix support for the CPU
clock on the G12A variant.

date 2020-05-17T22:19:43Z
author kettenis
files src/sys/dev/fdt/amlmmc.c log diff annotate
message Fix typo in comment.

date 2020-05-17T23:27:44Z
author gkoehler
files src/sys/arch/powerpc64/conf/files.powerpc64 log diff annotate
src/sys/arch/powerpc64/include/cpu.h log diff annotate
src/sys/arch/powerpc64/include/db_machdep.h log diff annotate
message Add enough stubs to allow "option DDB" to build.

ok kettenis@

date 2020-05-17T23:27:45Z
author gkoehler
files src/sys/arch/powerpc64/powerpc64/db_disasm.c log diff annotate
src/sys/arch/powerpc64/powerpc64/db_memrw.c log diff annotate
src/sys/arch/powerpc64/powerpc64/db_trace.c log diff annotate
src/sys/arch/powerpc64/powerpc64/locore.S log diff annotate
message Add enough stubs to allow "option DDB" to build.

ok kettenis@