CVS commit: src/etc

2018-07-09 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Jul  9 08:24:33 UTC 2018

Modified Files:
src/etc: Makefile.params

Log Message:
Remove debug hack (revert previous)


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/etc/Makefile.params

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



CVS commit: [pgoyette-compat] src/sys/kern

2018-07-09 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Mon Jul  9 08:26:29 UTC 2018

Modified Files:
src/sys/kern [pgoyette-compat]: kern_module.c

Log Message:
Reverse order of flags checking to appease compiler.  It seems
that gcc doesn't like

if (expr && !ISSET(t, f)) ...


To generate a diff of this commit:
cvs rdiff -u -r1.130.2.11 -r1.130.2.12 src/sys/kern/kern_module.c

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



CVS commit: [pgoyette-compat] src/sys/kern

2018-07-09 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Mon Jul  9 08:45:42 UTC 2018

Modified Files:
src/sys/kern [pgoyette-compat]: kern_module.c

Log Message:
Put the checks back in the original order, and remove extra ')'

Thanks to soda for finding the real error.


To generate a diff of this commit:
cvs rdiff -u -r1.130.2.12 -r1.130.2.13 src/sys/kern/kern_module.c

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



CVS commit: src/sys

2018-07-09 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Mon Jul  9 08:51:19 UTC 2018

Modified Files:
src/sys/arch/evbarm/stand/boot2440: dev_sdmmc.c
src/sys/arch/mips/sibyte/dev: sbjcnvar.h
src/sys/dev/sbus: magmareg.h spifreg.h

Log Message:
Avoid redefining SET/CLR/ISSET (which in the kernel are normally
defined in ).   These redefinitions (when they are,
that is, when types.h is included) were sneaking through because
they were defined identically ... until CLR in  was
changed...Avoid that issue arising again.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/evbarm/stand/boot2440/dev_sdmmc.c
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/mips/sibyte/dev/sbjcnvar.h
cvs rdiff -u -r1.18 -r1.19 src/sys/dev/sbus/magmareg.h
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/sbus/spifreg.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/aarch64/include

2018-07-09 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Mon Jul  9 09:09:47 UTC 2018

Modified Files:
src/sys/arch/aarch64/include: locore.h

Log Message:
Include aarch64/machdep.h for arm32 compat.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/aarch64/include/locore.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/arm/fdt

2018-07-09 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Mon Jul  9 09:10:29 UTC 2018

Modified Files:
src/sys/arch/arm/fdt: psci_fdt.c

Log Message:
Add aarch64 support.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/arm/fdt/psci_fdt.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

2018-07-09 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Mon Jul  9 09:11:21 UTC 2018

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

Log Message:
Use PSCI to spinup secondary CPUs on sun50i family SoCs.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/arm/sunxi/sunxi_platform.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/fdt

2018-07-09 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Mon Jul  9 09:13:20 UTC 2018

Modified Files:
src/sys/arch/arm/fdt: psci_fdt.c

Log Message:
Fix arm32 build


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/fdt/psci_fdt.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/evbarm/conf

2018-07-09 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Mon Jul  9 09:13:50 UTC 2018

Modified Files:
src/sys/arch/evbarm/conf: GENERIC64

Log Message:
Enable options MULTIPROCESSOR


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/evbarm/conf/GENERIC64

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



CVS commit: src/share/mk

2018-07-09 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Jul  9 09:22:55 UTC 2018

Modified Files:
src/share/mk: sys.mk

Log Message:
Debug hack: print out full random-seed for C++ compile/link.


To generate a diff of this commit:
cvs rdiff -u -r1.133 -r1.134 src/share/mk/sys.mk

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



CVS commit: src/sys/arch/evbarm/conf

2018-07-09 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Mon Jul  9 09:55:59 UTC 2018

Modified Files:
src/sys/arch/evbarm/conf: RPI64

Log Message:
enable options MULTIPROCESSOR


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/evbarm/conf/RPI64

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



CVS commit: src/sys/arch/aarch64/aarch64

2018-07-09 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Mon Jul  9 09:58:15 UTC 2018

Modified Files:
src/sys/arch/aarch64/aarch64: TODO

Log Message:
check off SMP


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/aarch64/aarch64/TODO

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/dts

2018-07-09 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Mon Jul  9 10:07:42 UTC 2018

Modified Files:
src/sys/arch/arm/dts: sun50i-a64-pinebook.dts

Log Message:
Make brightness-levels available in increments of 10% from 0 to 100, and set 
the default brightness level to match the one used by U-Boot (30%)


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/arm/dts/sun50i-a64-pinebook.dts

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



CVS commit: src/doc

2018-07-09 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Mon Jul  9 10:08:35 UTC 2018

Modified Files:
src/doc: CHANGES

Log Message:
SMP support for aarch64


To generate a diff of this commit:
cvs rdiff -u -r1.2405 -r1.2406 src/doc/CHANGES

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

2018-07-09 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Mon Jul  9 10:24:44 UTC 2018

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

Log Message:
Put RSB controller into known state at the start of every transfer.


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

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



CVS commit: src/share/man/man9

2018-07-09 Thread Radoslaw Kujawa
Module Name:src
Committed By:   rkujawa
Date:   Mon Jul  9 10:36:30 UTC 2018

Modified Files:
src/share/man/man9: radio.9

Log Message:
Try to bring this man page up to NetBSD standards.

This page is bad and we should feel bad about it. But perhaps now it is
considerably less bad.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man9/radio.9

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



CVS commit: src/sys/dev/ic

2018-07-09 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Mon Jul  9 10:44:44 UTC 2018

Modified Files:
src/sys/dev/ic: ahcisata_core.c

Log Message:
Avoid undefined behavior of signedness bit shift in ahcisata_core.c

sys/dev/ic/ahcisata_core.c:365:31, left shift of 1 by 31 places cannot be 
represented in type 'int'
sys/dev/ic/ahcisata_core.c:558:16, left shift of 1 by 31 places cannot be 
represented in type 'int'

Detected with Kernel Undefined Behavior Sanitizer.

This code could be refactored in future and switched to ISSET(9) API,
instead of reinventing the common functionality.


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/sys/dev/ic/ahcisata_core.c

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



CVS commit: src/external/gpl3/binutils.old

2018-07-09 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Mon Jul  9 11:55:45 UTC 2018

Modified Files:
src/external/gpl3/binutils.old/dist/bfd: config.bfd
src/external/gpl3/binutils.old/lib/libbfd/arch/i386: defs.mk

Log Message:
Apply the change made to binutils:

  Committed By:   christos
  Date:   Sun Jul  8 16:53:56 UTC 2018

  Modified Files:
src/external/gpl3/binutils/dist/bfd: config.bfd
src/external/gpl3/binutils/lib/libbfd/arch/i386: defs.mk

  Log Message:
  enable coff/pe executable vectors for i386 for the efi bootblocks.
  XXX: pullup-8

to binutils.old (which is what i386 is using).  Should unbreak the build.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/binutils.old/dist/bfd/config.bfd
cvs rdiff -u -r1.5 -r1.6 \
src/external/gpl3/binutils.old/lib/libbfd/arch/i386/defs.mk

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



CVS commit: src/external/gpl3/binutils.old/dist/bfd

2018-07-09 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jul  9 12:15:31 UTC 2018

Modified Files:
src/external/gpl3/binutils.old/dist/bfd: peXXigen.c

Log Message:
FIx reproducible builds for EFI boot blocks (from HEAD)


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/binutils.old/dist/bfd/peXXigen.c

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



CVS commit: src/sys

2018-07-09 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jul  9 14:07:37 UTC 2018

Modified Files:
src/sys/arch/evbarm/stand/boot2440: dev_sdmmc.c
src/sys/arch/mips/sibyte/dev: sbjcnvar.h
src/sys/dev/sbus: magmareg.h spifreg.h

Log Message:
Remove duplicate copies of the SET/CLR/ISSET macros.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/evbarm/stand/boot2440/dev_sdmmc.c
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/mips/sibyte/dev/sbjcnvar.h
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/sbus/magmareg.h
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/sbus/spifreg.h

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



CVS commit: src/sys/net

2018-07-09 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jul  9 14:54:01 UTC 2018

Modified Files:
src/sys/net: if.c

Log Message:
Calling rtinit(sa_family = AF_LINK, RTM_DELETE, 0) is guaranteed not to
work. Remove bogus call leaving a KASSERT behind.


To generate a diff of this commit:
cvs rdiff -u -r1.429 -r1.430 src/sys/net/if.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/amd64/amd64

2018-07-09 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Mon Jul  9 18:43:05 UTC 2018

Modified Files:
src/sys/arch/amd64/amd64: locore.S

Log Message:
Small optimization: don't execute the Meltdown/SpectreV2 cswitch code if
we're leaving a softint. We were executing the softint with the LWP's
context, so no need to switch the SVS/IBRS contexts, we already are in
the desired contexts.


To generate a diff of this commit:
cvs rdiff -u -r1.167 -r1.168 src/sys/arch/amd64/amd64/locore.S

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



CVS commit: src/sys/arch/amd64/amd64

2018-07-09 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Mon Jul  9 18:52:04 UTC 2018

Modified Files:
src/sys/arch/amd64/amd64: locore.S

Log Message:
Don't push/pop %rdx, we don't care about preserving its value.


To generate a diff of this commit:
cvs rdiff -u -r1.168 -r1.169 src/sys/arch/amd64/amd64/locore.S

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



CVS commit: src/sys/net

2018-07-09 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Tue Jul 10 01:23:13 UTC 2018

Modified Files:
src/sys/net: if_llatbl.c

Log Message:
Don't overwrite an existing llentry on RTM_ADD to avoid race conditions

Reported and tested by christos@


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/net/if_llatbl.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/videomode

2018-07-09 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Tue Jul 10 01:44:30 UTC 2018

Modified Files:
src/sys/dev/videomode: edid.c

Log Message:
add quirk to find the native resolution on certain Iiyama monitors
tested by MOCHIDA Shuji


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/videomode/edid.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/pci

2018-07-09 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Jul 10 06:44:49 UTC 2018

Modified Files:
src/sys/arch/x86/pci: pci_machdep.c

Log Message:
Fix bug, SPINOUT() is not supposed to take the value given to BACKOFF().
Here the exponential backoff is wrecked.


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 src/sys/arch/x86/pci/pci_machdep.c

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



CVS commit: src

2018-07-09 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Tue Jul 10 06:49:30 UTC 2018

Modified Files:
src/distrib/sets/lists/tests: mi
src/tests/bin/sh: Makefile
Added Files:
src/tests/bin/sh: t_patterns.sh

Log Message:
Add tests for pattern matching (filename expansion (glob), case statement
patterns, and variable expansion substring matching)

Currently (2018-07-10) all 3 sub-tests fail (sh bugs...)
Expect to see 14 (of 261) case matching sub-tests fail, 11 (of 167) filename
expansion (glob) sub-tests fail, and 6 (of 87) var substring sub-tests fail.

Also expect those numbers to reduce as sh bugs are fixed.


To generate a diff of this commit:
cvs rdiff -u -r1.788 -r1.789 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.12 -r1.13 src/tests/bin/sh/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/bin/sh/t_patterns.sh

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