OpenBSD cvs log

created 2020-07-28T20:00:26Z
begin 2020-05-16T00:00:00Z
end 2020-05-17T00:00:00Z
path src/sys
commits 13

date 2020-05-16T03:35:52Z
author visa
files src/sys/arch/mips64/mips64/mips64_machdep.c log diff annotate
message Use todr_gettime() in cp0_calibrate() on mips64.

This allows changing RTC drivers from <mips64/dev/clockvar.h>
to <dev/clock_subr.h> API.

OK kettenis@

date 2020-05-16T08:35:49Z
author anton
files src/sys/dev/kcov.c log diff annotate
message In preparation for stopping coverage collection once the kernel has
panicked, extract common parts between the two coverage collection
functions to a new helper called kd_curproc(). While here, sprinkle a
few branch prediction hints borrowed from NetBSD.
ok mpi@ visa@

date 2020-05-16T08:38:34Z
author anton
files src/sys/dev/kcov.c log diff annotate
message remove unused debug statements

date 2020-05-16T10:47:22Z
author mpi
files src/sys/dev/video.c log diff annotate
message Implement kqueue(2) support.

ok visa@

date 2020-05-16T11:07:52Z
author ratchov
files src/sys/dev/audio.c log diff annotate
message Use softintr to call selwakeup() in the mixer code code-path

ok mpi

date 2020-05-16T11:07:54Z
author jsg
files src/sys/dev/ic/vga.c log diff annotate
message Don't attempt to reset the state of the flip-flop associated with the
vga attribute controller index or set the enable/'palette address source'
bit when saving and restoring 256 colour vga palette with 0x3c6-0x3c9 as
this does not touch the attribute registers.

When this code was ported from FreeBSD in vga.c rev 1.48 the flip-flop
reset parts were mistakenly made to read 0x3ca instead of 0x3da.

Fixes a problem with VirtualBox where the text mode background was a dim
red colour instead of black after VT switch.

Problem reported by and patch from John Carmack.

ok matthieu@ who notes this also fixes a similiar problem with a KVM /
virt-manager virtual machine.

date 2020-05-16T11:26:51Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
src/sys/dev/pci/if_iwxreg.h log diff annotate
message Fix PHY_CONTEXT commands sent to iwx(4) firmware.

iwx(4) firmware understands two different variants of these commands.
Both variants are documented with the same command API version number,
but they use different sizes for an embedded struct which contains
information about channels. Which variant to use depends on whether
the firmware advertises support for the "ULTRA_HB_CHANNELS" feature.

The code I wrote to handle both cases had a bug in case this feature is
not supported: The channel info size difference was only accounted for
while computing the command's length, but not while writing command data.

This bug does not affect devices presently matched by iwx(4).
But it is possible that other devices may need this fix in the future.
So, for now, fix the buggy code path instead of removing it.

ok mpi@

date 2020-05-16T14:44:44Z
author kettenis
files src/sys/arch/alpha/alpha/machdep.c log diff annotate
src/sys/arch/amd64/amd64/machdep.c log diff annotate
src/sys/arch/arm/arm/arm32_machdep.c log diff annotate
src/sys/arch/arm64/arm64/machdep.c log diff annotate
src/sys/arch/hppa/hppa/machdep.c log diff annotate
src/sys/arch/i386/i386/machdep.c log diff annotate
src/sys/arch/luna88k/luna88k/machdep.c log diff annotate
message Make inittodr() and resettodr() MI.

ok deraadt@, mpi@, visa@
ok cheloha@ as well (would have preferred in new file for this code)

date 2020-05-16T14:44:45Z
author kettenis
files src/sys/arch/macppc/macppc/machdep.c log diff annotate
src/sys/arch/mips64/mips64/mips64_machdep.c log diff annotate
src/sys/arch/sh/sh/sh_machdep.c log diff annotate
src/sys/arch/sparc64/sparc64/machdep.c log diff annotate
src/sys/kern/kern_time.c log diff annotate
message Make inittodr() and resettodr() MI.

ok deraadt@, mpi@, visa@
ok cheloha@ as well (would have preferred in new file for this code)

date 2020-05-16T15:53:48Z
author deraadt
files src/sys/dev/rnd.c log diff annotate
message be more consistant about with using sizeof(object) rather than the constant
defining the [size]

date 2020-05-16T17:11:14Z
author kettenis
files src/sys/arch/powerpc64/compile/Makefile log diff annotate
src/sys/arch/powerpc64/compile/Makefile.inc log diff annotate
src/sys/arch/powerpc64/compile/GENERIC/Makefile log diff annotate
src/sys/arch/powerpc64/conf/GENERIC log diff annotate
src/sys/arch/powerpc64/conf/Makefile.powerpc64 log diff annotate
src/sys/arch/powerpc64/conf/files.powerpc64 log diff annotate
src/sys/arch/powerpc64/conf/ld.script log diff annotate
src/sys/arch/powerpc64/include/_types.h log diff annotate
src/sys/arch/powerpc64/include/atomic.h log diff annotate
src/sys/arch/powerpc64/include/bus.h log diff annotate
src/sys/arch/powerpc64/include/cdefs.h log diff annotate
src/sys/arch/powerpc64/include/conf.h log diff annotate
src/sys/arch/powerpc64/include/cpu.h log diff annotate
src/sys/arch/powerpc64/include/db_machdep.h log diff annotate
src/sys/arch/powerpc64/include/disklabel.h log diff annotate
src/sys/arch/powerpc64/include/endian.h log diff annotate
src/sys/arch/powerpc64/include/exec.h log diff annotate
src/sys/arch/powerpc64/include/fpu.h log diff annotate
src/sys/arch/powerpc64/include/frame.h log diff annotate
src/sys/arch/powerpc64/include/intr.h log diff annotate
src/sys/arch/powerpc64/include/limits.h log diff annotate
src/sys/arch/powerpc64/include/mutex.h log diff annotate
src/sys/arch/powerpc64/include/param.h log diff annotate
src/sys/arch/powerpc64/include/pcb.h log diff annotate
src/sys/arch/powerpc64/include/pmap.h log diff annotate
src/sys/arch/powerpc64/include/proc.h log diff annotate
src/sys/arch/powerpc64/include/psl.h log diff annotate
src/sys/arch/powerpc64/include/ptrace.h log diff annotate
src/sys/arch/powerpc64/include/reg.h log diff annotate
src/sys/arch/powerpc64/include/signal.h log diff annotate
src/sys/arch/powerpc64/include/softintr.h log diff annotate
src/sys/arch/powerpc64/include/spinlock.h log diff annotate
src/sys/arch/powerpc64/include/tcb.h log diff annotate
src/sys/arch/powerpc64/include/vmparam.h log diff annotate
src/sys/arch/powerpc64/powerpc64/autoconf.c log diff annotate
src/sys/arch/powerpc64/powerpc64/conf.c log diff annotate
src/sys/arch/powerpc64/powerpc64/cpu.c log diff annotate
src/sys/arch/powerpc64/powerpc64/disksubr.c log diff annotate
src/sys/arch/powerpc64/powerpc64/genassym.cf log diff annotate
src/sys/arch/powerpc64/powerpc64/locore.S log diff annotate
src/sys/arch/powerpc64/powerpc64/locore0.S log diff annotate
src/sys/arch/powerpc64/powerpc64/machdep.c log diff annotate
src/sys/arch/powerpc64/powerpc64/pmap.c log diff annotate
src/sys/arch/powerpc64/powerpc64/process_machdep.c log diff annotate
src/sys/arch/powerpc64/powerpc64/softintr.c log diff annotate
src/sys/arch/powerpc64/powerpc64/sys_machdep.c log diff annotate
src/sys/arch/powerpc64/powerpc64/syscall.c log diff annotate
src/sys/arch/powerpc64/powerpc64/vm_machdep.c log diff annotate
message Planting the first seed for OpenBSD/powerpc64.

date 2020-05-16T19:07:04Z
author deraadt
files src/sys/dev/rnd.c log diff annotate
message entropy_add_ptr and entropy_input_rotate are only used inside
enqueue_randomness(), so make them local static instead of global.

date 2020-05-16T23:06:27Z
author kettenis
files src/sys/arch/powerpc64/conf/ld.script log diff annotate
src/sys/arch/powerpc64/powerpc64/machdep.c log diff annotate
message Get memory information from the device tree.