CVS commit: src/sys/arch/sparc64/sparc64

2015-11-22 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Nov 22 09:32:34 UTC 2015

Modified Files:
src/sys/arch/sparc64/sparc64: machdep.c netbsd32_machdep.c
sunos_machdep.c

Log Message:
remove all MD uses of suword(), replace by copyout()


To generate a diff of this commit:
cvs rdiff -u -r1.282 -r1.283 src/sys/arch/sparc64/sparc64/machdep.c
cvs rdiff -u -r1.106 -r1.107 src/sys/arch/sparc64/sparc64/netbsd32_machdep.c
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/sparc64/sparc64/sunos_machdep.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/man3

2015-11-22 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sun Nov 22 09:37:33 UTC 2015

Modified Files:
src/share/man/man3: intro.3

Log Message:
Bump date for previous.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/share/man/man3/intro.3

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



CVS commit: src/sys/arch/sparc64/sparc64

2015-11-22 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Nov 22 10:18:14 UTC 2015

Modified Files:
src/sys/arch/sparc64/sparc64: copy.S

Log Message:
Removy now unused {s,f}uword


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

2015-11-22 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Nov 22 10:19:00 UTC 2015

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

Log Message:
Clarify:
 - add some comments
 - rename some jumps
 - KNF
No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 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/sparc64/sparc64

2015-11-22 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Nov 22 11:24:08 UTC 2015

Modified Files:
src/sys/arch/sparc64/sparc64: netbsd32_machdep.c

Log Message:
Use NETBSD32PTR32I() for pointer-to-32bit value conversion, requested
by mrg.


To generate a diff of this commit:
cvs rdiff -u -r1.107 -r1.108 src/sys/arch/sparc64/sparc64/netbsd32_machdep.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/sparc64/include

2015-11-22 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Nov 22 11:42:55 UTC 2015

Modified Files:
src/sys/arch/sparc64/include: vmparam.h

Log Message:
Reduce the "MAXDSIZ" limit for bottom-up-VA (i.e. old binaries) processes
to the old limit of 1 GB. Some old binaries can not deal with more.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/arch/sparc64/include/vmparam.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/nvidia

2015-11-22 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Nov 22 12:26:11 UTC 2015

Modified Files:
src/sys/arch/arm/nvidia: tegra_mc.c

Log Message:
replace inline mc_read/write with MC_READ/WRITE macros, install intr handler 
with IST_MPSAFE flag


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/arm/nvidia/tegra_mc.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

2015-11-22 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Nov 22 13:41:24 UTC 2015

Modified Files:
src/sys/arch/amd64/amd64: amd64_trap.S autoconf.c bios32.c gdt.c
kgdb_machdep.c linux32_sigcode.S machdep.c mptramp.S
netbsd32_machdep.c spl.S trap.c vector.S

Log Message:
KNF a bit, so I don't get scared each time I open a file


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/amd64/amd64/amd64_trap.S \
src/sys/arch/amd64/amd64/linux32_sigcode.S
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/amd64/amd64/autoconf.c
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/amd64/amd64/bios32.c
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/amd64/amd64/gdt.c
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/amd64/amd64/kgdb_machdep.c
cvs rdiff -u -r1.213 -r1.214 src/sys/arch/amd64/amd64/machdep.c
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/amd64/amd64/mptramp.S
cvs rdiff -u -r1.93 -r1.94 src/sys/arch/amd64/amd64/netbsd32_machdep.c
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/amd64/amd64/spl.S
cvs rdiff -u -r1.80 -r1.81 src/sys/arch/amd64/amd64/trap.c
cvs rdiff -u -r1.44 -r1.45 src/sys/arch/amd64/amd64/vector.S

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



CVS commit: [netbsd-7] src/sys/fs/adosfs

2015-11-22 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Nov 22 14:02:31 UTC 2015

Modified Files:
src/sys/fs/adosfs [netbsd-7]: advfsops.c

Log Message:
Pull up following revision(s) (requested by phx in ticket #1042):
sys/fs/adosfs/advfsops.c: revision 1.75
Patch by hannken@ to fix a bug which has been introduced with 1.71.
The kernel crashed with uvm fault when mounting an ados file system.


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.71.2.1 src/sys/fs/adosfs/advfsops.c

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



CVS commit: [netbsd-7-0] src/sys/fs/adosfs

2015-11-22 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Nov 22 14:02:40 UTC 2015

Modified Files:
src/sys/fs/adosfs [netbsd-7-0]: advfsops.c

Log Message:
Pull up following revision(s) (requested by phx in ticket #1042):
sys/fs/adosfs/advfsops.c: revision 1.75
Patch by hannken@ to fix a bug which has been introduced with 1.71.
The kernel crashed with uvm fault when mounting an ados file system.


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.71.6.1 src/sys/fs/adosfs/advfsops.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

2015-11-22 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Nov 22 14:06:08 UTC 2015

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

Log Message:
Remove cpu_vendorname (unused). It is retrieved later in identcpu.c.


To generate a diff of this commit:
cvs rdiff -u -r1.81 -r1.82 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: [netbsd-7] src/lib/libc/db/hash

2015-11-22 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Nov 22 14:15:14 UTC 2015

Modified Files:
src/lib/libc/db/hash [netbsd-7]: hash.c hash.h hash_bigkey.c
hash_page.c

Log Message:
Pull up following revision(s) (requested by christos in ticket #1046):
lib/libc/db/hash/hash_page.c: revision 1.27
lib/libc/db/hash/hash_page.c: revision 1.28
lib/libc/db/hash/hash.h: revision 1.16
lib/libc/db/hash/hash.c: revision 1.36
lib/libc/db/hash/hash.c: revision 1.37
lib/libc/db/hash/hash.c: revision 1.38
lib/libc/db/hash/hash_bigkey.c: revision 1.25
Account for the -1 hack to fit 0x1 in a short in hash_page.c
Introduce a HASH_BSIZE macro to return the blocksize; in the 64K case this
returns 0x to avoid overflow. This is used where sizes are stored.
If MAX_BSIZE == hashp->BSIZE (65536) then it does not fit in a short, and
we end up storing 0... This means that every entry needs a page. We store
MAX_BSIZE - 1 here, but it would be better to always store (avail - 1) here
so that we don't waste a byte and be consistent.
PR/50441: Manuel Bouyer: hash seq enumeration skips keys on big data.
XXX: pullup-7


To generate a diff of this commit:
cvs rdiff -u -r1.33.4.1 -r1.33.4.2 src/lib/libc/db/hash/hash.c
cvs rdiff -u -r1.15 -r1.15.40.1 src/lib/libc/db/hash/hash.h
cvs rdiff -u -r1.24 -r1.24.10.1 src/lib/libc/db/hash/hash_bigkey.c
cvs rdiff -u -r1.26 -r1.26.4.1 src/lib/libc/db/hash/hash_page.c

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



CVS commit: [netbsd-7-0] src/share/terminfo

2015-11-22 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Nov 22 14:19:19 UTC 2015

Modified Files:
src/share/terminfo [netbsd-7-0]: terminfo

Log Message:
Pull up following revision(s) (requested by isaki in ticket #1047):
share/terminfo/terminfo: revision 1.8
Correct the x68k's Backspace key behavior.
With this fix, the Backspace key on x68k keyboard erases
previous one character, instead of outputting '^?' character.
Reported by Yasushi Oshima (two months ago..)


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.7.6.1 src/share/terminfo/terminfo

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



CVS commit: [netbsd-7] src/share/terminfo

2015-11-22 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Nov 22 14:20:06 UTC 2015

Modified Files:
src/share/terminfo [netbsd-7]: terminfo

Log Message:
Pull up following revision(s) (requested by isaki in ticket #1047):
share/terminfo/terminfo: revision 1.8
Correct the x68k's Backspace key behavior.
With this fix, the Backspace key on x68k keyboard erases
previous one character, instead of outputting '^?' character.
Reported by Yasushi Oshima (two months ago..)


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.7.4.1 src/share/terminfo/terminfo

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



CVS commit: [netbsd-7-0] src/doc

2015-11-22 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Nov 22 14:21:20 UTC 2015

Modified Files:
src/doc [netbsd-7-0]: CHANGES-7.0.1

Log Message:
tickets 1042, 1047


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.17 -r1.1.2.18 src/doc/CHANGES-7.0.1

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



CVS commit: [netbsd-7-0] src/doc

2015-11-22 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Nov 22 14:22:16 UTC 2015

Modified Files:
src/doc [netbsd-7-0]: CHANGES-7.0.1

Log Message:
Formatting fix


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.18 -r1.1.2.19 src/doc/CHANGES-7.0.1

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



CVS commit: [netbsd-7] src/doc

2015-11-22 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Nov 22 14:23:41 UTC 2015

Modified Files:
src/doc [netbsd-7]: CHANGES-7.1

Log Message:
tickets 1042, 1046, 1047


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.35 -r1.1.2.36 src/doc/CHANGES-7.1

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



CVS commit: src/sbin/fdisk

2015-11-22 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Nov 22 15:53:10 UTC 2015

Modified Files:
src/sbin/fdisk: fdisk.c

Log Message:
explain how to clear an entry (without reading the source)


To generate a diff of this commit:
cvs rdiff -u -r1.152 -r1.153 src/sbin/fdisk/fdisk.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/allwinner

2015-11-22 Thread Aymeric Vincent
Module Name:src
Committed By:   aymeric
Date:   Sun Nov 22 17:50:48 UTC 2015

Modified Files:
src/sys/arch/arm/allwinner: awin_debe.c files.awin

Log Message:
do not fail if no awintcon is present so that ALLWINNER_A80 compiles again


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/arm/allwinner/awin_debe.c
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/arm/allwinner/files.awin

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



CVS commit: src/sys/arch

2015-11-22 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Sun Nov 22 18:44:25 UTC 2015

Modified Files:
src/sys/arch/landisk/landisk: machdep.c
src/sys/arch/sh3/sh3: sh3_machdep.c

Log Message:
Remove \n from set_cpumodel(), and explicitly print \n during boot instead.

Fixes dmesg on NetBSD/dreamcast 7.0 (and probably NetBSD/hpcsh 7.0):
---
NetBSD 7.0 (GENERIC.201509250726Z)
SEGA Dreamcasttotal memory = 16384 KB
avail memory = 13668 KB
---
which was mangled when cpu_getmode() and cpu_setmodel() were introduced:
 http://mail-index.netbsd.org/source-changes/2014/03/24/msg053273.html

Should be pulled up to netbsd-7 and netbsd-7-0.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/landisk/landisk/machdep.c
cvs rdiff -u -r1.102 -r1.103 src/sys/arch/sh3/sh3/sh3_machdep.c

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



CVS commit: src/sbin/cgdconfig

2015-11-22 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Nov 22 20:24:19 UTC 2015

Modified Files:
src/sbin/cgdconfig: cgdconfig.c cgdconfig.h params.c

Log Message:
Don't chdir to the config directory; just form the parameters file with a
path if needed.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sbin/cgdconfig/cgdconfig.c
cvs rdiff -u -r1.1 -r1.2 src/sbin/cgdconfig/cgdconfig.h
cvs rdiff -u -r1.26 -r1.27 src/sbin/cgdconfig/params.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/gcc/dist/gcc/config/i386

2015-11-22 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Nov 22 20:47:05 UTC 2015

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/i386: cpuid.h

Log Message:
Fix logic bug where __cpuid gets called when __get_cpuid_max() returns 0.
This happens when __level == 0, from libgcc/config/i386/cpuinfo.c#285.
This breaks early i486 CPUs which don't have cpuid
XXX: pullup-7


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 \
src/external/gpl3/gcc/dist/gcc/config/i386/cpuid.h

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



CVS commit: src/external/gpl3/gcc.old/dist/gcc/config/i386

2015-11-22 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Nov 22 20:47:42 UTC 2015

Modified Files:
src/external/gpl3/gcc.old/dist/gcc/config/i386: cpuid.h

Log Message:
Fix logic bug where __cpuid gets called when __get_cpuid_max() returns 0.
This happens when __level == 0, from libgcc/config/i386/cpuinfo.c#285.
This breaks early i486 CPUs which don't have cpuid


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc.old/dist/gcc/config/i386/cpuid.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/filemon

2015-11-22 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Mon Nov 23 00:47:43 UTC 2015

Modified Files:
src/sys/dev/filemon: filemon_wrapper.c

Log Message:
Retrieve the pathname of the exec'd file before we call sys_execve().

We cannot rely on using copyinstr() to retrieve the pathname from
user mode after a successful exec, since the user mode address space
is no longer valid (and may not even be accessible).  This worked in
earlier code but was broken by rev 1.7.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/filemon/filemon_wrapper.c

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



CVS import: othersrc/external/bsd/ibbs

2015-11-22 Thread Alistair G. Crooks
Module Name:othersrc
Committed By:   agc
Date:   Mon Nov 23 05:56:01 UTC 2015

Update of /cvsroot/othersrc/external/bsd/ibbs
In directory ivanova.netbsd.org:/tmp/cvs-serv12751

Log Message:
Import an integer-based version of the Blum Blum Shub random number
generator into othersrc.

IBBS - Integer Blum Blum Shub Random Number Generator
=

This is a small Blum Blum Shub implementation which uses a Mersenne
Twister to take 4 bytes of entropy (retrieved from the microseconds
part of gettimeofday(2)), and generates 2 prime numbers and a seed from
this.  Each prime number and seed is 16 bits.  A deterministic prime
check is used to ensure we are dealing with safe/unsafe prime numbers.

Since 16 bits are used for the two primes, care is taken to avoid
cycles in the BBS output. If a cycle is detected, the generator is
re-seeded, and output starts again.

The RNG seems to be quite efficient, generating numbers at 10 MBps
on a NetBSD VM running in Fusion hosted on Mac OS X.


Blum Blum Shub
==

More information can be found in:

https://en.wikipedia.org/wiki/Blum_Blum_Shub

In short, it's a simple, but slow (in theory), random number generator.


Time to generate random data


% time ./ibbs -n 10 -o 1.out
99.453u 1.379s 1:41.53 99.3%0+0k 0+128io 0pf+0w
%

% bc
scale = 5
10 / 101
9900990.09900

Looks like almost 10MB/s.  Tests run on a NetBSD-7.99.21 VM running
under Fusion hosted on an early 2015 Mac Book Pro.


How random is it?
=

For the dieharder tests, a file with 10^9 random bytes was generated
and handed to dieharder.

2 WEAK tests using dieharder-2 - these seem to vary in successive runs
of tests.  1 FAILED test using dieharder-2.  Every test seems to fail
this test, though, so something is weird with it.

For dieharder-3, it's much easier to egrep output:

% grep PASSED dist/dieharder.out | wc -l
 109
% egrep '(FAILED|WEAK)' dist/dieharder.out
 marsaglia_tsang_gcd|   0|  1000| 100|0.00374452|   WEAK
sts_runs|   2|10| 100|0.99938591|   WEAK
  sts_serial|  12|10| 100|0.99799268|   WEAK
  rgb_lagged_sum|  29|   100| 100|0.00041886|   WEAK
  rgb_lagged_sum|  31|   100| 100|0.0006|  
FAILED
%

If you're worried about a random number generator failing these tests,
please note the p-value, and read the dieharder man page, specifically
the section on p-values.


Provenance
==
The Mersenne Twister code comes from (the BSD-licensed):


http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/emt19937ar.html

and is used with thanks.

Inspiration for the BBS code came from Pate Williams, who wrote some
code based on multiple-precision numbers. However, ibbs has no
common code with that.


Reproducible Results


The API has been structured so that it's possible to have multiple
ibbs generators in action at any one time. It's also possible to
seed the ibbs generator so that it produces reproducible results
(assuming the same seed is used, of course). Standard operation
will be to have differing results on each run if ibbs_srandom()
is not used.

I'd be really interested to hear other people's opinions on this code; I have
no idea how predictable this random number generator is - the focus was on
producing something which could be used earlier in the boot sequence, or on
smaller, embedded CPUs.

Status:

Vendor Tag: CROOKS
Release Tags:   ibbs-base

N othersrc/external/bsd/ibbs/Makefile
N othersrc/external/bsd/ibbs/bin/Makefile
N othersrc/external/bsd/ibbs/dist/Makefile
N othersrc/external/bsd/ibbs/dist/dieharder.out
N othersrc/external/bsd/ibbs/dist/README
N othersrc/external/bsd/ibbs/dist/libibbs.3
N othersrc/external/bsd/ibbs/dist/ibbs.1
N othersrc/external/bsd/ibbs/dist/ibbs.c
N othersrc/external/bsd/ibbs/dist/ibbs.h
N othersrc/external/bsd/ibbs/dist/mersenne.h
N othersrc/external/bsd/ibbs/dist/main.c
N othersrc/external/bsd/ibbs/dist/mt19937ar.c
N othersrc/external/bsd/ibbs/dist/provenance
N othersrc/external/bsd/ibbs/lib/shlib_version
N othersrc/external/bsd/ibbs/lib/Makefile

No conflicts created by this import