CVS commit: src

2017-10-31 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Oct 31 08:10:12 UTC 2017

Modified Files:
src/distrib/sets/lists/comp: mi
src/share/man/man9: Makefile
Removed Files:
src/share/man/man9: ppi.9

Log Message:
remove ppi(9) manpage, the actual subsystem got never implemented

PR kern/52665 by Kamil Rytarowski


To generate a diff of this commit:
cvs rdiff -u -r1.2153 -r1.2154 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.415 -r1.416 src/share/man/man9/Makefile
cvs rdiff -u -r1.5 -r0 src/share/man/man9/ppi.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/makemandb

2017-10-31 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Tue Oct 31 10:14:27 UTC 2017

Modified Files:
src/usr.sbin/makemandb: custom_apropos_tokenizer.c

Log Message:
Casting variable of type int *  to size_t *, may cause
alignment issues on some platforms (e.g. Sparc64)
So, Use a temporary variable to avoid the cast.

Thanks to Martin@ for noticing the issue and also suggesting the issue.
Fixes PR bin/52678


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/makemandb/custom_apropos_tokenizer.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/x86/x86

2017-10-31 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Oct 31 10:35:58 UTC 2017

Modified Files:
src/sys/arch/x86/x86: fpu.c

Log Message:
Remove comments that are more misleading than anything else. While here
make sure we zero out the FPU area entirely, and not just its legacy
region.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/x86/x86/fpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/x86/include

2017-10-31 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Oct 31 10:39:13 UTC 2017

Modified Files:
src/sys/arch/x86/include: cpu_extended_state.h

Log Message:
Add xsh_xcomp_bv and fx_zero, and use uint8_t instead.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/x86/include/cpu_extended_state.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2017-10-31 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Oct 31 10:45:19 UTC 2017

Modified Files:
src/sys/arch/sparc64/dev: sab.c
src/sys/dev/ic: com.c z8530tty.c
src/sys/sys: tty.h

Log Message:
As discussed on tech-kern: define a new tty internal state flag: TS_KERN_ONLY

Implement it in a few tty drivers. If this flag is set, the underlying
hardware is used by another driver and userland has no right to open
it. A few uses will appear soon in sys/dev/sun/sun{kbd,ms}.c.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sys/arch/sparc64/dev/sab.c
cvs rdiff -u -r1.344 -r1.345 src/sys/dev/ic/com.c
cvs rdiff -u -r1.131 -r1.132 src/sys/dev/ic/z8530tty.c
cvs rdiff -u -r1.93 -r1.94 src/sys/sys/tty.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/sun

2017-10-31 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Oct 31 10:46:47 UTC 2017

Modified Files:
src/sys/dev/sun: sunkbd.c sunms.c

Log Message:
PR port-sparc64/52622: mark the parent device as TS_KERN_ONLY,
so userland will not touch it (and change serial params w/o our
controll).


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/dev/sun/sunkbd.c
cvs rdiff -u -r1.32 -r1.33 src/sys/dev/sun/sunms.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/x86/x86

2017-10-31 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Oct 31 11:37:05 UTC 2017

Modified Files:
src/sys/arch/x86/x86: fpu.c identcpu.c

Log Message:
Always use x86_fpu_save, clearer.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/x86/x86/fpu.c
cvs rdiff -u -r1.60 -r1.61 src/sys/arch/x86/x86/identcpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/distrib/sets/lists/comp

2017-10-31 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Oct 31 11:46:46 UTC 2017

Modified Files:
src/distrib/sets/lists/comp: mi

Log Message:
Also mark ppi.html as obsolete


To generate a diff of this commit:
cvs rdiff -u -r1.2154 -r1.2155 src/distrib/sets/lists/comp/mi

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2017-10-31 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Oct 31 12:02:20 UTC 2017

Modified Files:
src/sys/arch/amd64/include: pcb.h
src/sys/arch/i386/include: pcb.h
src/sys/arch/x86/include: cpu_extended_state.h
src/sys/arch/x86/x86: fpu.c

Log Message:
Don't embed our own values in the reserved fields of the XSAVE area, it
really is a bad idea. Move them into the PCB.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/amd64/include/pcb.h
cvs rdiff -u -r1.56 -r1.57 src/sys/arch/i386/include/pcb.h
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/x86/include/cpu_extended_state.h
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/x86/x86/fpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2017-10-31 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Oct 31 12:37:23 UTC 2017

Modified Files:
src/sys/arch/arm/arm32: arm32_machdep.c
src/sys/arch/arm/include: netbsd32_machdep.h proc.h
src/sys/arch/mips/include: netbsd32_machdep.h
src/sys/arch/mips/mips: netbsd32_machdep.c
src/sys/compat/netbsd32: netbsd32_sysctl.c
src/sys/kern: init_sysctl_base.c

Log Message:
Allow architectures to define a macro PROC_MACHINE_ARCH(P) and
PROC_MACHINE_ARCH32(P) to override the value for sysctl hw.machine_arch
(native and netbsd32 commpat resp.).

Use these for arm and mips instead of the (not working, noisy, in case
of arm) sysctl override and #ifdef __mips__ in architecture neutral
code.


To generate a diff of this commit:
cvs rdiff -u -r1.114 -r1.115 src/sys/arch/arm/arm32/arm32_machdep.c
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/include/netbsd32_machdep.h
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/arm/include/proc.h
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/mips/include/netbsd32_machdep.h
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/mips/mips/netbsd32_machdep.c
cvs rdiff -u -r1.36 -r1.37 src/sys/compat/netbsd32/netbsd32_sysctl.c
cvs rdiff -u -r1.7 -r1.8 src/sys/kern/init_sysctl_base.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/compat/netbsd32

2017-10-31 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Oct 31 12:43:57 UTC 2017

Modified Files:
src/sys/compat/netbsd32: netbsd32_conv.h

Log Message:
PR kern/52681: fix msghdr conversion.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sys/compat/netbsd32/netbsd32_conv.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/luna68k/stand/boot

2017-10-31 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Oct 31 14:55:45 UTC 2017

Modified Files:
src/sys/arch/luna68k/stand/boot: sc.c

Log Message:
PR/52680: David Binderman: Remove dedundant assignment.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/luna68k/stand/boot/sc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2017-10-31 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Oct 31 15:00:03 UTC 2017

Modified Files:
src/sys/dist/pf/net: pf.c

Log Message:
PR/52682: David Binderman: Fix wrong assignment (in the !__NetBSD__ code)


To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/sys/dist/pf/net/pf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/luna68k/stand/boot

2017-10-31 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Oct 31 15:10:28 UTC 2017

Modified Files:
src/sys/arch/luna68k/stand/boot: sc.c

Log Message:
undo - pointed out this is a register assignment.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/luna68k/stand/boot/sc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/x86/x86

2017-10-31 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Oct 31 15:16:10 UTC 2017

Modified Files:
src/sys/arch/x86/x86: fpu.c

Log Message:
Initialize xstate_bv with the structures that were just filled in,
otherwise xrstor does not restore them. This can happen only if userland
calls setcontext without having used the FPU before.

Until rev1.15 xstate_bv was implicitly initialized because the xsave area
was not zeroed out properly.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/x86/x86/fpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/compat/netbsd32

2017-10-31 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Tue Oct 31 16:10:25 UTC 2017

Modified Files:
src/sys/compat/netbsd32: netbsd32_sysctl.c

Log Message:
unconst machine_arch32 for sysctl data .. pointed out by Riccardo Mottola


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/compat/netbsd32/netbsd32_sysctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/x86/x86

2017-10-31 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Oct 31 18:13:37 UTC 2017

Modified Files:
src/sys/arch/x86/x86: fpu.c

Log Message:
Mask mxcsr, otherwise userland could set reserved bits to 1 and make
xrstor fault.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/x86/x86/fpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/x86/x86

2017-10-31 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Oct 31 18:23:29 UTC 2017

Modified Files:
src/sys/arch/x86/x86: fpu.c

Log Message:
Zero out the buffer entirely.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/x86/x86/fpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/x86/include

2017-10-31 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Oct 31 18:30:36 UTC 2017

Modified Files:
src/sys/arch/x86/include: cpu_extended_state.h

Log Message:
Remove outdated comment.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/x86/include/cpu_extended_state.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/doc/roadmaps

2017-10-31 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Oct 31 19:03:32 UTC 2017

Modified Files:
src/doc/roadmaps: storage

Log Message:
bring the WAPBL entry more up-to-date and sound less desperate,
there is not really much preventing it to be enabled by default for
new installs again actually


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/doc/roadmaps/storage

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev

2017-10-31 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Tue Oct 31 21:09:27 UTC 2017

Modified Files:
src/sys/dev: audio.c

Log Message:
round_blocksize is only used for the hardware ring buffer.  All other
buffers (mix ring, streams) are set to be a power of 2.

This allows for consistent latency where a static blocksize is enforced by
the underlying audio device driver.

Ok christos@.


To generate a diff of this commit:
cvs rdiff -u -r1.418 -r1.419 src/sys/dev/audio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev

2017-10-31 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Tue Oct 31 21:13:24 UTC 2017

Modified Files:
src/sys/dev: audio.c

Log Message:
Move calculation of sc_latency into a function.

The latency of the audio device is updated on attach in the audio auto
config and shown on screen.

Ok christos@.


To generate a diff of this commit:
cvs rdiff -u -r1.419 -r1.420 src/sys/dev/audio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev

2017-10-31 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Tue Oct 31 21:18:02 UTC 2017

Modified Files:
src/sys/dev: audio.c

Log Message:
Only allow blocksizes greater or equal to the calculated one.

This should help applications as the blocksize obtained (AUDIO_SET/GETINFO)
will work without stutter.

Ok christos@.


To generate a diff of this commit:
cvs rdiff -u -r1.420 -r1.421 src/sys/dev/audio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/isa

2017-10-31 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Tue Oct 31 21:53:48 UTC 2017

Modified Files:
src/sys/dev/isa: gus.c

Log Message:
Add padding to gus.c so fields match up when it ts cast to a ad1848_isa
softc for the allocation of hw ring buffers.

Locking fixes as gus KASSERTS / uses the codec locks.

Ok christos@.


To generate a diff of this commit:
cvs rdiff -u -r1.111 -r1.112 src/sys/dev/isa/gus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/arm/sunxi

2017-10-31 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Wed Nov  1 01:47:00 UTC 2017

Modified Files:
src/sys/arch/arm/sunxi: sunxi_thermal.c

Log Message:
Simplify, and avoid compiler warning for variable format string.

As discussed on IRC.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/sunxi/sunxi_thermal.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/arm/sunxi

2017-10-31 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Wed Nov  1 05:42:32 UTC 2017

Modified Files:
src/sys/arch/arm/sunxi: sunxi_thermal.c

Log Message:
Complete last change...


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/arm/sunxi/sunxi_thermal.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.