CVS commit: src/sys/gdbscripts

2016-05-11 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed May 11 09:22:55 UTC 2016

Added Files:
src/sys/gdbscripts: kernhist

Log Message:
add a gdb script to dump kernel histories.  based upon a script by skrll,
updated by myself to run faster and more stupidly (but more workingly.)

normal gdb scripts don't seem to be able to call printf with the format
string as a variable, so we simply print the format itself as a string
and the (upto 4) arguments as unsigned long (how they're strored.)


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/sys/gdbscripts/kernhist

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

2016-05-11 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed May 11 10:10:09 UTC 2016

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

Log Message:
Ticket #1166


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.53 -r1.1.2.54 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: src/sys/gdbscripts

2016-05-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed May 11 10:39:31 UTC 2016

Modified Files:
src/sys/gdbscripts: Makefile.inc

Log Message:
Add kernhist to SYS_GDBINIT


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/gdbscripts/Makefile.inc

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



CVS commit: [netbsd-7] src/external/gpl3/gcc/dist/gcc

2016-05-11 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed May 11 11:08:14 UTC 2016

Modified Files:
src/external/gpl3/gcc/dist/gcc [netbsd-7]: config.gcc

Log Message:
Pull up following revision(s) (requested by skrll in ticket #1160):
external/gpl3/gcc.old/dist/gcc/config.gcc: revision 1.5
Re-order includes so that ARM_TARGET2_DWARF_FORMAT takes effect
Fixes PR/51066: C++ text relocations


To generate a diff of this commit:
cvs rdiff -u -r1.26.2.4 -r1.26.2.5 src/external/gpl3/gcc/dist/gcc/config.gcc

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



CVS commit: [netbsd-7] src/usr.bin/config

2016-05-11 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed May 11 11:21:18 UTC 2016

Modified Files:
src/usr.bin/config [netbsd-7]: config.5 gram.y sem.c

Log Message:
Pull up following revision(s) (requested by mlelstv in ticket #1164):
usr.bin/config/sem.c: revision 1.74
usr.bin/config/config.5: revision 1.35
usr.bin/config/gram.y: revision 1.53
Extend syntax of config phrase, a quoted string instead of a device name
is passed as root specification string. This can be used to specify a
wedge by name.


To generate a diff of this commit:
cvs rdiff -u -r1.24.2.1 -r1.24.2.2 src/usr.bin/config/config.5
cvs rdiff -u -r1.39.2.1 -r1.39.2.2 src/usr.bin/config/gram.y
cvs rdiff -u -r1.43.2.1 -r1.43.2.2 src/usr.bin/config/sem.c

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

2016-05-11 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed May 11 11:37:24 UTC 2016

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

Log Message:
Tickets #1160, #1164 and #1166


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.86 -r1.1.2.87 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/share/mk

2016-05-11 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed May 11 13:41:56 UTC 2016

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
Switch alpha and sparc64 back to gcc 4.8 and old binutils for now - too much
fallout from gcc 5.3 and no quick solution, it needs more work.
Binutils 2.26 does not play well with old gcc and causes random fallout
when building pkgs (e.g. /usr/pkg/lib/libgthread-2.0.so.0:
Trying to call undefined weak symbol `__deregister_frame_info' when
build gstremeer0.10)


To generate a diff of this commit:
cvs rdiff -u -r1.922 -r1.923 src/share/mk/bsd.own.mk

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



CVS commit: src/sys/dev/pci

2016-05-11 Thread NONAKA Kimihiro
Module Name:src
Committed By:   nonaka
Date:   Wed May 11 13:55:28 UTC 2016

Modified Files:
src/sys/dev/pci: nvme_pci.c

Log Message:
Don't establish interrupt in nvme_pci_attach() when multi queue isn't used.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/pci/nvme_pci.c

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



CVS commit: src/bin/sh

2016-05-11 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Wed May 11 17:28:30 UTC 2016

Modified Files:
src/bin/sh: show.c

Log Message:
It was twenty(-two) years ago today
J.T. Conklin told us not this way
Berkeley 4.4 lite's changed which file
And it's traced differently all this while


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/bin/sh/show.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/i386/i386

2016-05-11 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed May 11 17:48:05 UTC 2016

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

Log Message:
Switch to C-style comments, and reduce a little the diff between i386 and
amd64. No functional changes.


To generate a diff of this commit:
cvs rdiff -u -r1.114 -r1.115 src/sys/arch/i386/i386/locore.S

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



CVS commit: src/tests/bin/sh

2016-05-11 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Wed May 11 17:43:17 UTC 2016

Modified Files:
src/tests/bin/sh: t_redir.sh

Log Message:
Add a test for fd redirections on functions in loops (the etcupdate issue)
and also fix a quoting bug which was causing a test to fail, though
ATF was ignoring (an ATF bug to be investigated later.)

OK christos@


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/bin/sh/t_redir.sh

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



CVS commit: src/sys

2016-05-11 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Wed May 11 18:33:40 UTC 2016

Modified Files:
src/sys/arch/arm/allwinner: awin_gpio.c awin_io.c awin_reg.h
src/sys/dev/gpio: gpio.c gpiovar.h

Log Message:
As proposed in
http://mail-index.netbsd.org/tech-kern/2016/04/28/msg020504.html
add gpio interrupt support to the gpio framework, and an implementation
for the allwinner gpio backend (tested on A20 only).
gpio(4) has new public functions:
- gpio_intr() called by backends when an interrupt condition for
  a gpio pin is present
- gpio_find_device() and gpio_get_name(), support functions for
  gpio(4) users, wich respectively returns a void * cookie for a gpio device
  given its name, and returns the name given the cookie.
- gpio_pin_ctl_intr(), which is used to configure interrupts on a gpio pin and
  registers a callback.
- gpio_pin_irqen(), which is used to mask/unmask interrupts on a pin.

Nothing in the NetBSD tree uses this yet, but I have a i2c driver
(at 
https://github.com/mbouyer/marine_chartplotter/tree/master/software/NetBSD/driver)
 which uses it.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/arm/allwinner/awin_gpio.c
cvs rdiff -u -r1.45 -r1.46 src/sys/arch/arm/allwinner/awin_io.c
cvs rdiff -u -r1.88 -r1.89 src/sys/arch/arm/allwinner/awin_reg.h
cvs rdiff -u -r1.57 -r1.58 src/sys/dev/gpio/gpio.c
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/gpio/gpiovar.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/amd64/amd64

2016-05-11 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed May 11 19:35:08 UTC 2016

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

Log Message:
There is a bug in the way the secondary CPUs are launched on amd64.

When CPU0 is launched, EFER_NXE is enabled in it, and it allows it to
handle pages that have the NOX bit. When the secondary CPUs are
launched, however, EFER_NXE is enabled only after paging is set in their
%cr0. And therefore, between the moment when paging is enabled and the
moment when EFER_NXE is enabled, the secondary CPUs cannot access pages
that have the NOX bit - they crash if they try to.

The funny thing is that in order to enable EFER_NXE, the secondary CPUs
give a look at cpu_feature[2], which is in the DATA segment, which in
turn could have the NOX bit. In other words, the secondary CPUs crash if
the DATA segment is mapped with the NOX bit.

Fix this by enabling EFER_NXE in the secondary CPUs before enabling
paging. CPU0 initializes nox_flag to the 32bit version of PG_NX if NOX
is supported; the secondary CPUs then use nox_flag to know whether NOX
is supported.

nox_flag will be used for other purposes soon.


To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 src/sys/arch/amd64/amd64/locore.S
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/amd64/amd64/mptramp.S

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

2016-05-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed May 11 21:02:10 UTC 2016

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

Log Message:
The HCD should no longer restart a repeating transfer (i.e. an interrupt
transfer) as this is now handled in the usb core code.


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/sys/dev/ic/sl811hs.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/ic

2016-05-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed May 11 21:03:01 UTC 2016

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

Log Message:
More debug


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/sys/dev/ic/sl811hs.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/ic

2016-05-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed May 11 21:05:12 UTC 2016

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

Log Message:
Remove incorrect comment


To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 src/sys/dev/ic/sl811hs.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/ic

2016-05-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed May 11 21:27:09 UTC 2016

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

Log Message:
More debug


To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/sys/dev/ic/sl811hs.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/ic

2016-05-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed May 11 21:28:21 UTC 2016

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

Log Message:
Typo in previous


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/sys/dev/ic/sl811hs.c

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



CVS commit: src/sys/gdbscripts

2016-05-11 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu May 12 00:35:10 UTC 2016

Modified Files:
src/sys/gdbscripts: kernhist

Log Message:
make '$e' in here the whole structure instead of a pointer, to combine
several pointer derefs into one speaking this up significantly.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/gdbscripts/kernhist

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



CVS commit: src/usr.bin/head

2016-05-11 Thread NONAKA Kimihiro
Module Name:src
Committed By:   nonaka
Date:   Thu May 12 01:56:44 UTC 2016

Modified Files:
src/usr.bin/head: head.c

Log Message:
If the negative number is passed to option '-c' or '-n',
it should occur an error.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/usr.bin/head/head.c

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



CVS commit: src/sys

2016-05-11 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Thu May 12 02:24:17 UTC 2016

Modified Files:
src/sys/altq: altq_subr.c
src/sys/arch/x86/x86: vmt.c
src/sys/compat/common: uipc_syscalls_40.c
src/sys/compat/linux/common: linux_socket.c
src/sys/compat/linux32/common: linux32_socket.c
src/sys/compat/svr4: svr4_sockio.c
src/sys/compat/svr4_32: svr4_32_sockio.c
src/sys/dev/pci: if_bge.c
src/sys/dist/pf/net: pf_if.c
src/sys/kern: kern_subr.c subr_tftproot.c uipc_mbuf.c
src/sys/net: if.c if.h rtsock.c
src/sys/net/npf: npf_if.c
src/sys/netinet: ip_carp.c raw_ip.c sctp_asconf.c sctp_output.c
sctp_pcb.c sctp_usrreq.c sctputil.c
src/sys/netinet6: icmp6.c in6.c in6_ifattach.c nd6.c raw_ip6.c
src/sys/netipsec: xform_ipip.c
src/sys/rump/librump/rumpnet: net_stub.c

Log Message:
Protect ifnet list with psz and psref

The change ensures that ifnet objects in the ifnet list aren't freed during
list iterations by using pserialize(9) and psref(9).

Note that the change adds a pslist(9) for ifnet but doesn't remove the
original ifnet list (ifnet_list) to avoid breaking kvm(3) users. We
shouldn't use the original list in the kernel anymore.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/altq/altq_subr.c
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/x86/x86/vmt.c
cvs rdiff -u -r1.8 -r1.9 src/sys/compat/common/uipc_syscalls_40.c
cvs rdiff -u -r1.126 -r1.127 src/sys/compat/linux/common/linux_socket.c
cvs rdiff -u -r1.20 -r1.21 src/sys/compat/linux32/common/linux32_socket.c
cvs rdiff -u -r1.36 -r1.37 src/sys/compat/svr4/svr4_sockio.c
cvs rdiff -u -r1.21 -r1.22 src/sys/compat/svr4_32/svr4_32_sockio.c
cvs rdiff -u -r1.295 -r1.296 src/sys/dev/pci/if_bge.c
cvs rdiff -u -r1.26 -r1.27 src/sys/dist/pf/net/pf_if.c
cvs rdiff -u -r1.216 -r1.217 src/sys/kern/kern_subr.c
cvs rdiff -u -r1.16 -r1.17 src/sys/kern/subr_tftproot.c
cvs rdiff -u -r1.164 -r1.165 src/sys/kern/uipc_mbuf.c
cvs rdiff -u -r1.333 -r1.334 src/sys/net/if.c
cvs rdiff -u -r1.203 -r1.204 src/sys/net/if.h
cvs rdiff -u -r1.185 -r1.186 src/sys/net/rtsock.c
cvs rdiff -u -r1.5 -r1.6 src/sys/net/npf/npf_if.c
cvs rdiff -u -r1.64 -r1.65 src/sys/netinet/ip_carp.c
cvs rdiff -u -r1.157 -r1.158 src/sys/netinet/raw_ip.c
cvs rdiff -u -r1.2 -r1.3 src/sys/netinet/sctp_asconf.c
cvs rdiff -u -r1.3 -r1.4 src/sys/netinet/sctp_output.c
cvs rdiff -u -r1.4 -r1.5 src/sys/netinet/sctp_pcb.c \
src/sys/netinet/sctp_usrreq.c
cvs rdiff -u -r1.6 -r1.7 src/sys/netinet/sctputil.c
cvs rdiff -u -r1.182 -r1.183 src/sys/netinet6/icmp6.c
cvs rdiff -u -r1.198 -r1.199 src/sys/netinet6/in6.c
cvs rdiff -u -r1.97 -r1.98 src/sys/netinet6/in6_ifattach.c
cvs rdiff -u -r1.193 -r1.194 src/sys/netinet6/nd6.c
cvs rdiff -u -r1.142 -r1.143 src/sys/netinet6/raw_ip6.c
cvs rdiff -u -r1.37 -r1.38 src/sys/netipsec/xform_ipip.c
cvs rdiff -u -r1.22 -r1.23 src/sys/rump/librump/rumpnet/net_stub.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/svr4_32

2016-05-11 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Thu May 12 03:01:58 UTC 2016

Modified Files:
src/sys/compat/svr4_32: svr4_32_sockio.c

Log Message:
Add missing semicolon


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/compat/svr4_32/svr4_32_sockio.c

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



CVS commit: src/usr.bin/netstat

2016-05-11 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Thu May 12 03:44:11 UTC 2016

Modified Files:
src/usr.bin/netstat: netstat.1

Log Message:
Remove duplicate routing flag list

We alreay have it in route(8) and shouldn't have another one.
(Actually the removed list is forgot to be updated.)


To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 src/usr.bin/netstat/netstat.1

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

2016-05-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Thu May 12 05:30:17 UTC 2016

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

Log Message:
More typos in previous


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/sys/dev/ic/sl811hs.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

2016-05-11 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Thu May 12 06:45:16 UTC 2016

Modified Files:
src/sys/arch/amd64/amd64: locore.S machdep.c
src/sys/arch/amd64/conf: kern.ldscript
src/sys/arch/i386/conf: kern.ldscript
src/sys/arch/i386/i386: locore.S
src/sys/arch/x86/x86: db_memrw.c pmap.c

Log Message:
Split the {text+rodata} chunk in two separate chunks on x86. The
rodata segment now loses the large page optimization, gets mapped inside
the data segment, and therefore becomes RWX. It may break the build on
Xen.


To generate a diff of this commit:
cvs rdiff -u -r1.86 -r1.87 src/sys/arch/amd64/amd64/locore.S
cvs rdiff -u -r1.215 -r1.216 src/sys/arch/amd64/amd64/machdep.c
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/amd64/conf/kern.ldscript
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/i386/conf/kern.ldscript
cvs rdiff -u -r1.115 -r1.116 src/sys/arch/i386/i386/locore.S
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/x86/x86/db_memrw.c
cvs rdiff -u -r1.190 -r1.191 src/sys/arch/x86/x86/pmap.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

2016-05-11 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Thu May 12 06:57:55 UTC 2016

Modified Files:
src/sys/arch/amd64/conf: kern.ldscript.Xen
src/sys/arch/i386/conf: kern.ldscript.Xen

Log Message:
KNF the Xen ld scripts on x86.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/amd64/conf/kern.ldscript.Xen
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/i386/conf/kern.ldscript.Xen

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