CVS commit: src/sys/kern

2019-04-16 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Wed Apr 17 02:29:43 UTC 2019

Modified Files:
src/sys/kern: kern_mutex.c kern_rwlock.c

Log Message:
Don't check pserialize_not_in_read_section after panic

It can cause a false positive assertion failure.


To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/sys/kern/kern_mutex.c
cvs rdiff -u -r1.52 -r1.53 src/sys/kern/kern_rwlock.c

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

Modified files:

Index: src/sys/kern/kern_mutex.c
diff -u src/sys/kern/kern_mutex.c:1.76 src/sys/kern/kern_mutex.c:1.77
--- src/sys/kern/kern_mutex.c:1.76	Sun Mar 10 12:49:48 2019
+++ src/sys/kern/kern_mutex.c	Wed Apr 17 02:29:43 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_mutex.c,v 1.76 2019/03/10 12:49:48 skrll Exp $	*/
+/*	$NetBSD: kern_mutex.c,v 1.77 2019/04/17 02:29:43 ozaki-r Exp $	*/
 
 /*-
  * Copyright (c) 2002, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
 #define	__MUTEX_PRIVATE
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: kern_mutex.c,v 1.76 2019/03/10 12:49:48 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_mutex.c,v 1.77 2019/04/17 02:29:43 ozaki-r Exp $");
 
 #include 
 #include 
@@ -524,9 +524,9 @@ mutex_vector_enter(kmutex_t *mtx)
 	MUTEX_ASSERT(mtx, curthread != 0);
 	MUTEX_ASSERT(mtx, !cpu_intr_p());
 	MUTEX_WANTLOCK(mtx);
-	KDASSERT(pserialize_not_in_read_section());
 
 	if (panicstr == NULL) {
+		KDASSERT(pserialize_not_in_read_section());
 		LOCKDEBUG_BARRIER(_lock, 1);
 	}
 

Index: src/sys/kern/kern_rwlock.c
diff -u src/sys/kern/kern_rwlock.c:1.52 src/sys/kern/kern_rwlock.c:1.53
--- src/sys/kern/kern_rwlock.c:1.52	Fri Aug 31 01:23:57 2018
+++ src/sys/kern/kern_rwlock.c	Wed Apr 17 02:29:43 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_rwlock.c,v 1.52 2018/08/31 01:23:57 ozaki-r Exp $	*/
+/*	$NetBSD: kern_rwlock.c,v 1.53 2019/04/17 02:29:43 ozaki-r Exp $	*/
 
 /*-
  * Copyright (c) 2002, 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: kern_rwlock.c,v 1.52 2018/08/31 01:23:57 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_rwlock.c,v 1.53 2019/04/17 02:29:43 ozaki-r Exp $");
 
 #define	__RWLOCK_PRIVATE
 
@@ -290,9 +290,9 @@ rw_vector_enter(krwlock_t *rw, const krw
 	RW_ASSERT(rw, !cpu_intr_p());
 	RW_ASSERT(rw, curthread != 0);
 	RW_WANTLOCK(rw, op);
-	KDASSERT(pserialize_not_in_read_section());
 
 	if (panicstr == NULL) {
+		KDASSERT(pserialize_not_in_read_section());
 		LOCKDEBUG_BARRIER(_lock, 1);
 	}
 



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

2019-04-16 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Tue Apr 16 23:14:34 UTC 2019

Modified Files:
src/sys/arch/playstation2/conf: GENERIC

Log Message:
Bogus number police


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/playstation2/conf/GENERIC

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

Modified files:

Index: src/sys/arch/playstation2/conf/GENERIC
diff -u src/sys/arch/playstation2/conf/GENERIC:1.11 src/sys/arch/playstation2/conf/GENERIC:1.12
--- src/sys/arch/playstation2/conf/GENERIC:1.11	Wed Sep 13 22:24:45 2017
+++ src/sys/arch/playstation2/conf/GENERIC	Tue Apr 16 23:14:34 2019
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.11 2017/09/13 22:24:45 sevan Exp $
+# $NetBSD: GENERIC,v 1.12 2019/04/16 23:14:34 sevan Exp $
 #
 # GENERIC machine description file
 # 
@@ -44,7 +44,7 @@ config		netbsd		root on ? type ?
 # Veriexec
 #
 # a pseudo device needed for veriexec
-#pseudo-device	veriexec		1
+#pseudo-device	veriexec
 #
 # Uncomment the fingerprint methods below that are desired. Note that
 # removing fingerprint methods will have almost no impact on the kernel



CVS commit: xsrc/external/mit

2019-04-16 Thread matthew green
Module Name:xsrc
Committed By:   mrg
Date:   Tue Apr 16 21:34:44 UTC 2019

Modified Files:
xsrc/external/mit/libepoxy/dist/src: dispatch_common.h
xsrc/external/mit/xorg-server/include: dix-config.h

Log Message:
- enable EGL on x86/arm64 (XXX also do evbarm32)
- enable gbm/glamor in the server.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
xsrc/external/mit/libepoxy/dist/src/dispatch_common.h
cvs rdiff -u -r1.33 -r1.34 xsrc/external/mit/xorg-server/include/dix-config.h

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

Modified files:

Index: xsrc/external/mit/libepoxy/dist/src/dispatch_common.h
diff -u xsrc/external/mit/libepoxy/dist/src/dispatch_common.h:1.2 xsrc/external/mit/libepoxy/dist/src/dispatch_common.h:1.3
--- xsrc/external/mit/libepoxy/dist/src/dispatch_common.h:1.2	Thu Aug 18 03:26:04 2016
+++ xsrc/external/mit/libepoxy/dist/src/dispatch_common.h	Tue Apr 16 21:34:44 2019
@@ -39,8 +39,12 @@
 #define PLATFORM_HAS_WGL 0
 #define EPOXY_IMPORTEXPORT
 #else
-#ifdef __NetBSD__ /* XXX enable egl in xsrc */
-#define PLATFORM_HAS_EGL 0
+#ifdef __NetBSD__
+# if defined(__amd64__) || defined(__i386__) || defined(__aarch64__) // XXX evbarm32
+#  define PLATFORM_HAS_EGL 1
+# else
+#  define PLATFORM_HAS_EGL 0
+# endif
 #else
 #define PLATFORM_HAS_EGL 1
 #endif

Index: xsrc/external/mit/xorg-server/include/dix-config.h
diff -u xsrc/external/mit/xorg-server/include/dix-config.h:1.33 xsrc/external/mit/xorg-server/include/dix-config.h:1.34
--- xsrc/external/mit/xorg-server/include/dix-config.h:1.33	Sun Mar  3 22:01:09 2019
+++ xsrc/external/mit/xorg-server/include/dix-config.h	Tue Apr 16 21:34:44 2019
@@ -488,10 +488,8 @@
 /* Build GLAMOR */
 #define GLAMOR 1
 
-#if 0
 /* Build glamor's GBM-based EGL support */
 #define GLAMOR_HAS_GBM 1
-#endif
 
 /* Build glamor/gbm has linear support */
 #define GLAMOR_HAS_GBM_LINEAR 1



CVS commit: src/external/mit/xorg

2019-04-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Apr 16 21:21:51 UTC 2019

Added Files:
src/external/mit/xorg/lib/libEGL: Makefile
src/external/mit/xorg/server/xorg-server/hw/xfree86/glamor_egl:
Makefile

Log Message:
enable EGL and glamor.  partly from maya@.

for x86 and evbarm:
- install headers and libEGL
- install xorg-server glamoregl component
- link xorg drivers against gbm/egl

bonus fix:
- fix some wrongly marked compatx11file files

build tested on shark, sgimips, evbarm64-el, amd64 and i386.
run tested on radeon, intel and nvidia on amd64, including
'modesetting' driver on amd64.  however, my systems disable
it due to llvmpipe so i'm not sure what is happening.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/mit/xorg/lib/libEGL/Makefile
cvs rdiff -u -r0 -r1.1 \
src/external/mit/xorg/server/xorg-server/hw/xfree86/glamor_egl/Makefile

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

Added files:

Index: src/external/mit/xorg/lib/libEGL/Makefile
diff -u /dev/null src/external/mit/xorg/lib/libEGL/Makefile:1.1
--- /dev/null	Tue Apr 16 21:21:51 2019
+++ src/external/mit/xorg/lib/libEGL/Makefile	Tue Apr 16 21:21:51 2019
@@ -0,0 +1,120 @@
+#	$NetBSD: Makefile,v 1.1 2019/04/16 21:21:51 mrg Exp $
+
+.include 
+
+LIB=		EGL
+LIBISCXX=	yes
+
+SHLIB_MAJOR=	0
+SHLIB_MINOR=	0
+
+#SUBDIR=		internal
+
+# egl
+.PATH:		${X11SRCDIR.Mesa}/src/egl/main
+SRCS.egl= \
+	eglapi.c \
+	eglarray.c \
+	eglconfig.c \
+	eglcontext.c \
+	eglcurrent.c \
+	egldevice.c \
+	egldisplay.c \
+	egldriver.c \
+	eglfallbacks.c \
+	eglglobals.c \
+	eglimage.c \
+	egllog.c \
+	eglsurface.c \
+	eglsync.c
+
+.PATH:		${X11SRCDIR.Mesa}/src/egl/drivers/dri2
+SRCS.drivers/dri2= \
+	egl_dri2.c \
+	platform_x11.c \
+	platform_drm.c
+
+# XXX notyet
+#SRCS.drivers/dri2+= \
+#	platform_x11_dri3.c
+
+BUILDSYMLINKS+= ${X11SRCDIR.Mesa}/src/util/debug.c UTILdebug.c
+SRCS.util=  \
+	UTILdebug.c
+CPPFLAGS.UTILdebug.c+=  -I${X11SRCDIR.Mesa}/src/util \
+-I${X11SRCDIR.Mesa}/src/mesa \
+-I${X11SRCDIR.Mesa}/src \
+-I${X11SRCDIR.Mesa}/src/gallium/include
+
+.PATH:		${X11SRCDIR.Mesa}/include/EGL
+INCS=	\
+	egl.h \
+	eglext.h \
+	eglextchromium.h \
+	eglmesaext.h \
+	eglplatform.h
+INCSDIR=${X11INCDIR}/EGL
+
+SRCS+=	${SRCS.egl} ${SRCS.drivers/dri2} ${SRCS.util}
+
+CPPFLAGS+= \
+	-I${X11SRCDIR.Mesa}/include \
+	-I${X11SRCDIR.Mesa}/include/drm-uapi \
+	-I${X11SRCDIR.Mesa}/src/gbm/main \
+	-I${X11SRCDIR.Mesa}/src/egl/main \
+	-I${X11SRCDIR.Mesa}/src/gbm/backends/dri \
+	-I${X11SRCDIR.Mesa}/src/loader \
+	-I${X11SRCDIR.Mesa}/src \
+	-I${DESTDIR}${X11INCDIR}/libdrm
+
+EGL_DRIVER_INSTALL_DIR=${X11ROOTDIR}/lib
+CPPFLAGS+= \
+	-DDEFAULT_DRIVER_DIR=\"${X11USRLIBDIR}/modules/dri\" \
+	-D_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_X11 \
+	-D_EGL_DRIVER_SEARCH_DIR=\"$(EGL_DRIVER_INSTALL_DIR)\" \
+	-D_EGL_OS_UNIX=1
+
+CPPFLAGS+=	${X11FLAGS.THREADLIB} \
+		-DHAVE_X11_PLATFORM \
+		-DHAVE_DRM_PLATFORM \
+		-DHAVE_TIMESPEC_GET \
+		-DHAVE_PTHREAD \
+		-DHAVE_LIBDRM \
+		-DHAVE_MINCORE
+
+.include "../libloader.mk"
+
+CFLAGS+=	-fvisibility=hidden -fno-strict-aliasing -fno-builtin-memcmp
+CFLAGS+=	-pthread
+
+# XXX missing: xcb-present
+LIBDPLIBS=	Xext		${.CURDIR}/../libXext \
+		X11		${.CURDIR}/../libX11/dynamic \
+		Xfixes		${.CURDIR}/../libXfixes \
+		Xdamage		${.CURDIR}/../libXdamage \
+		Xdmcp		${.CURDIR}/../libXdmcp \
+		glapi		${.CURDIR}/../libglapi \
+		drm		${.CURDIR}/../libdrm \
+		gbm		${.CURDIR}/../libgbm \
+		xshmfence	${.CURDIR}/../libxshmfence \
+		X11-xcb		${.CURDIR}/../libX11/libX11-xcb \
+		xcb-dri2	${.CURDIR}/../libxcb/dri2 \
+		xcb-glx		${.CURDIR}/../libxcb/glx \
+		xcb-xfixes	${.CURDIR}/../libxcb/xfixes \
+		xcb-sync	${.CURDIR}/../libxcb/sync \
+		xcb		${.CURDIR}/../libxcb/libxcb \
+		expat		${NETBSDSRCDIR}/external/mit/expat/lib/libexpat \
+		m		${NETBSDSRCDIR}/lib/libm
+
+MKLINT=no
+
+PKGCONFIG=	egl
+PKGDIST.egl=	${X11SRCDIR.Mesa}/src/egl/main
+.include "${.CURDIR}/../libGL/mesa-ver.mk"
+PKGCONFIG_VERSION.egl=	${MESA_VER}
+
+CWARNFLAGS.clang+=	-Wno-tautological-compare -Wno-format -Wno-constant-conversion
+
+.include 
+.include 
+.include 

Index: src/external/mit/xorg/server/xorg-server/hw/xfree86/glamor_egl/Makefile
diff -u /dev/null src/external/mit/xorg/server/xorg-server/hw/xfree86/glamor_egl/Makefile:1.1
--- /dev/null	Tue Apr 16 21:21:51 2019
+++ src/external/mit/xorg/server/xorg-server/hw/xfree86/glamor_egl/Makefile	Tue Apr 16 21:21:51 2019
@@ -0,0 +1,38 @@
+#	$NetBSD: Makefile,v 1.1 2019/04/16 21:21:51 mrg Exp $
+
+XMODULEDIR=	${X11USRLIBDIR}/modules
+
+.include "../../../Makefile.serverlib"
+.include "../../../Makefile.servermod"
+
+LIB=	glamoregl
+
+.PATH:	${X11SRCDIR.xorg-server}/glamor
+.PATH:	${X11SRCDIR.xorg-server}/hw/xfree86/glamor_egl
+SRCS=	glamor_egl.c \
+	glamor_eglmodule.c \
+	glamor_xf86_xv.c
+
+CPPFLAGS+=	\
+	-I${X11SRCDIR.xorg-server}/hw/xfree86/common \
+	-I${X11SRCDIR.xorg-server}/Xext \
+	

CVS commit: src

2019-04-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Apr 16 21:20:52 UTC 2019

Modified Files:
src/distrib/sets: mkvars.mk sets.subr
src/distrib/sets/lists/xbase: mi shl.mi
src/distrib/sets/lists/xcomp: md.evbarm md.i386 mi shl.mi
src/distrib/sets/lists/xdebug: md.amd64 mi shl.mi
src/distrib/sets/lists/xserver: mi
src/etc/mtree: NetBSD.dist.Xorg
src/external/mit/xorg/lib: Makefile
src/external/mit/xorg/lib/libepoxy: Makefile
src/external/mit/xorg/lib/libgbm: Makefile
src/external/mit/xorg/server/xorg-server/hw/xfree86: Makefile
src/external/mit/xorg/server/xorg-server/hw/xfree86/Xorg: Makefile
src/external/mit/xorg/server/xorg-server/hw/xfree86/drivers/modesetting:
Makefile
src/share/mk: bsd.own.mk

Log Message:
enable EGL and glamor.  partly from maya@.

for x86 and evbarm:
- install headers and libEGL
- install xorg-server glamoregl component
- link xorg drivers against gbm/egl

bonus fix:
- fix some wrongly marked compatx11file files

build tested on shark, sgimips, evbarm64-el, amd64 and i386.
run tested on radeon, intel and nvidia on amd64, including
'modesetting' driver on amd64.  however, my systems disable
it due to llvmpipe so i'm not sure what is happening.


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/distrib/sets/mkvars.mk
cvs rdiff -u -r1.185 -r1.186 src/distrib/sets/sets.subr
cvs rdiff -u -r1.150 -r1.151 src/distrib/sets/lists/xbase/mi
cvs rdiff -u -r1.82 -r1.83 src/distrib/sets/lists/xbase/shl.mi
cvs rdiff -u -r1.13 -r1.14 src/distrib/sets/lists/xcomp/md.evbarm
cvs rdiff -u -r1.60 -r1.61 src/distrib/sets/lists/xcomp/md.i386
cvs rdiff -u -r1.207 -r1.208 src/distrib/sets/lists/xcomp/mi
cvs rdiff -u -r1.50 -r1.51 src/distrib/sets/lists/xcomp/shl.mi
cvs rdiff -u -r1.45 -r1.46 src/distrib/sets/lists/xdebug/md.amd64
cvs rdiff -u -r1.30 -r1.31 src/distrib/sets/lists/xdebug/mi
cvs rdiff -u -r1.46 -r1.47 src/distrib/sets/lists/xdebug/shl.mi
cvs rdiff -u -r1.40 -r1.41 src/distrib/sets/lists/xserver/mi
cvs rdiff -u -r1.24 -r1.25 src/etc/mtree/NetBSD.dist.Xorg
cvs rdiff -u -r1.48 -r1.49 src/external/mit/xorg/lib/Makefile
cvs rdiff -u -r1.2 -r1.3 src/external/mit/xorg/lib/libepoxy/Makefile
cvs rdiff -u -r1.3 -r1.4 src/external/mit/xorg/lib/libgbm/Makefile
cvs rdiff -u -r1.37 -r1.38 \
src/external/mit/xorg/server/xorg-server/hw/xfree86/Makefile
cvs rdiff -u -r1.16 -r1.17 \
src/external/mit/xorg/server/xorg-server/hw/xfree86/Xorg/Makefile
cvs rdiff -u -r1.2 -r1.3 \

src/external/mit/xorg/server/xorg-server/hw/xfree86/drivers/modesetting/Makefile
cvs rdiff -u -r1.1129 -r1.1130 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.

Modified files:

Index: src/distrib/sets/mkvars.mk
diff -u src/distrib/sets/mkvars.mk:1.36 src/distrib/sets/mkvars.mk:1.37
--- src/distrib/sets/mkvars.mk:1.36	Sun Mar 10 11:04:08 2019
+++ src/distrib/sets/mkvars.mk	Tue Apr 16 21:20:51 2019
@@ -1,4 +1,4 @@
-# $NetBSD: mkvars.mk,v 1.36 2019/03/10 11:04:08 mrg Exp $
+# $NetBSD: mkvars.mk,v 1.37 2019/04/16 21:20:51 mrg Exp $
 
 MKEXTRAVARS= \
 	MACHINE \
@@ -7,6 +7,7 @@ MKEXTRAVARS= \
 	HAVE_GCC \
 	HAVE_GDB \
 	HAVE_XORG_SERVER_VER \
+	HAVE_XORG_GLAMOR \
 	HAVE_MESA_VER \
 	HAVE_BINUTILS \
 	HAVE_LIBGCC_EH \

Index: src/distrib/sets/sets.subr
diff -u src/distrib/sets/sets.subr:1.185 src/distrib/sets/sets.subr:1.186
--- src/distrib/sets/sets.subr:1.185	Sun Mar 10 11:04:08 2019
+++ src/distrib/sets/sets.subr	Tue Apr 16 21:20:51 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: sets.subr,v 1.185 2019/03/10 11:04:08 mrg Exp $
+#	$NetBSD: sets.subr,v 1.186 2019/04/16 21:20:51 mrg Exp $
 #
 
 #
@@ -180,7 +180,7 @@ SUBST="${SUBST};s#@MACHINE@#${MACHINE}#g
 # In each file, a record consists of a path and a System Package name,
 # separated by whitespace. E.g.,
 #
-# 	# $NetBSD: sets.subr,v 1.185 2019/03/10 11:04:08 mrg Exp $
+# 	# $NetBSD: sets.subr,v 1.186 2019/04/16 21:20:51 mrg Exp $
 # 	.			base-sys-root	[keyword[,...]]
 # 	./altroot		base-sys-root
 # 	./bin			base-sys-root
@@ -215,6 +215,7 @@ SUBST="${SUBST};s#@MACHINE@#${MACHINE}#g
 #	gdb=			 = value of ${HAVE_GDB}
 #	openssl=		 = value of ${HAVE_OPENSSL}
 #	xorg_server_ver=	 = value of ${HAVE_XORG_SERVER_VER}
+#	xorg_glamor		${HAVE_XORG_GLAMOR} != no
 #	mesa_ver=		 = value of ${HAVE_MESA_VER}
 #
 #2. The USE_:

Index: src/distrib/sets/lists/xbase/mi
diff -u src/distrib/sets/lists/xbase/mi:1.150 src/distrib/sets/lists/xbase/mi:1.151
--- src/distrib/sets/lists/xbase/mi:1.150	Mon Mar 11 09:20:13 2019
+++ src/distrib/sets/lists/xbase/mi	Tue Apr 16 21:20:51 2019
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.150 2019/03/11 09:20:13 mrg Exp $
+# $NetBSD: mi,v 1.151 2019/04/16 21:20:51 mrg Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -146,6 +146,7 @@
 ./usr/X11R7/bin/xwud	-unknown-	xorg
 ./usr/X11R7/include	base-x11-root	xorg
 

CVS commit: src/sys/arch/hppa/hppa

2019-04-16 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue Apr 16 20:33:36 UTC 2019

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

Log Message:
If arg3 is zero then fill it with the value of 'end'.  Helps booting
with qemu.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/hppa/hppa/locore.S

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

Modified files:

Index: src/sys/arch/hppa/hppa/locore.S
diff -u src/sys/arch/hppa/hppa/locore.S:1.2 src/sys/arch/hppa/hppa/locore.S:1.3
--- src/sys/arch/hppa/hppa/locore.S:1.2	Mon Apr 15 20:45:08 2019
+++ src/sys/arch/hppa/hppa/locore.S	Tue Apr 16 20:33:36 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: locore.S,v 1.2 2019/04/15 20:45:08 skrll Exp $	*/
+/*	$NetBSD: locore.S,v 1.3 2019/04/16 20:33:36 skrll Exp $	*/
 /*	$OpenBSD: locore.S,v 1.158 2008/07/28 19:08:46 miod Exp $	*/
 
 /*
@@ -174,6 +174,14 @@ ENTRY_NOPROFILE(start,0)
 	stw	%arg1,R%boothowto(%r1)
 	ldil	L%bootdev,%r1
 	stw	%arg2,R%bootdev(%r1)
+
+	comb,<>	%r0, %arg3, 1f
+	 nop
+
+	ldil	L%end, %arg3
+	ldo	R%end(%arg3), %arg3
+
+1:
 	ldil	L%esym,%r1
 	stw	%arg3,R%esym(%r1)
 



CVS commit: src/doc

2019-04-16 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Tue Apr 16 19:38:14 UTC 2019

Modified Files:
src/doc: CHANGES

Log Message:
s/evbarm64/evbarm


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

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

Modified files:

Index: src/doc/CHANGES
diff -u src/doc/CHANGES:1.2522 src/doc/CHANGES:1.2523
--- src/doc/CHANGES:1.2522	Tue Apr 16 18:31:22 2019
+++ src/doc/CHANGES	Tue Apr 16 19:38:14 2019
@@ -1,4 +1,4 @@
-# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2522 $>
+# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2523 $>
 #
 #
 # [Note: This file does not mention every change made to the NetBSD source tree.
@@ -47,8 +47,8 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 	wbsio(4): Add support for NCT6795. [msaitoh 20170711]
 	lm(4): Add support for NCT5174D, NCT6775F, NCT6779D and NCT679[1235]D.
 		[msaitoh 20170711]
-	evbarm64: Add support for NVIDIA Tegra X1 SoC. [jmcneill 20170720]
-	evbarm64: Add support for Allwinner A64 SoC. [jmcneill 20170723]
+	evbarm: Add support for NVIDIA Tegra X1 SoC. [jmcneill 20170720]
+	evbarm: Add support for Allwinner A64 SoC. [jmcneill 20170723]
 	gzip(1): Add SIGINFO support. [mrg 20170804]
 	i386: Remove vm86. [maxv 20170812]
 	itesio(4): Add support IT8628E. [hauke 20170814]
@@ -75,7 +75,7 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 		[jdolecek 20171007]
 	OpenSSH: Imported 7.6. [christos 20171007]
 	amd64: Add support for Kernel ASLR [maxv 20171010]
-	evbarm64: Add support for Allwinner H5 SoC. [jmcneill 20171011]
+	evbarm: Add support for Allwinner H5 SoC. [jmcneill 20171011]
 	tmux(1): Imported 2.6. [christos 20171012]
 	amd64: Add support for SMAP. [maxv 20171017]
 	amd64: Add support for USER_LDT. [maxv 20171021]
@@ -155,7 +155,7 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 	puc(4): Add Intel 300 series chipset support. [msaitoh 20180413]
 	file(1): Upgraded to 5.33. [christos 20180415]
 	netpgp(3lua): Add Lua binding for libnetpgp(3). [sevan 20180429]
-	evbarm64: Add support for Allwinner H6 SoC. [jmcneill 20180501]
+	evbarm: Add support for Allwinner H6 SoC. [jmcneill 20180501]
 	dhcpcd(8): Import 7.0.4. [roy 20180502]
 	midiplay: Add -s option to send all sounds off. [mrg 20180503]
 	libbozohttpd(3): Add the embeddable version of bozohttpd [sevan 20180503]
@@ -172,7 +172,7 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 	dhcpcd(8): Import 7.0.5b. [roy 20180604]
 	virtio(4): Add MMIO transport and fdt(4) attachment. [jakllsch 20180606]
 	evbarm: Add support for QEMU ARM Virtual Machine ("virt"). [jmcneill 20180614]
-	evbarm64: Add support for Rockchip RK3328 SoC. [jmcneill 20180615]
+	evbarm: Add support for Rockchip RK3328 SoC. [jmcneill 20180615]
 	dhcpcd(8): Import 7.0.6. [roy 20180621]
 	bpf(4): Add the BPF direction filter (BIOC[GS]DIRECTION).
 		[msaitoh 20180626]
@@ -185,7 +185,7 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 	kernel: Remove pmc(9) and X86PMC. [maxv 20180714]
 	tprof(4): Revamped. tpfmt(1) merged into tprof(8). [maxv 20180714]
 	kernel: Remove ipkdb(4). [maxv 20180714]
-	evbarm64: Add support for ARMv8 performance event monitoring with tprof(4).
+	evbarm: Add support for ARMv8 performance event monitoring with tprof(4).
 		[jmcneill 20180715]
 	evbarm: Add support for ARMv7 performance event monitoring with tprof(4).
 		[jmcneill 20180715]
@@ -202,13 +202,13 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 	kUBSan: Added support for micro-UBSan (kernel-UBSan) as KUBSAN.
 		[kamil 20180803]
 	lua: Import version 5.3.5. [alnsn 20180804]
-	evbarm64: Add driver for ARM GICv3 interrupt controllers. [jmcneill 20180808]
+	evbarm: Add driver for ARM GICv3 interrupt controllers. [jmcneill 20180808]
 	kernel: Remove the n8 driver. [maya 20180808]
 	usb(4): Many fixes to abort issues fixed for all USB controllers.
 		[mrg/skrll/riastradh 20180809]
 	nullfs(4): Add 32-bit support. [mrg 20180811]
 	bind: Import version 9.12.2-P1. [christos 20180812]
-	evbarm64: Add support for Rockchip RK3399 SoC. [jmcneill 20180812]
+	evbarm: Add support for Rockchip RK3399 SoC. [jmcneill 20180812]
 	amd64: Randomize by default all the randomizable VM areas in the kernel.
 		[maxv 20180812]
 	mdocml: Import 1.14.4. [christos 20180814]
@@ -219,7 +219,7 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 	dhcpcd(8): Import 7.0.8. [roy 20180820]
 	amd64: Add support for kASan - Kernel Address Sanitizer.
 		[maxv 20180820]
-	evbarm64: Add UEFI boot loader for ARM64 platforms. [jmcneill 20180824]
+	evbarm: Add UEFI boot loader for ARM64 platforms. [jmcneill 20180824]
 	kernel: Remove NDIS. [maxv 20180825]
 	mue(4): Add driver for Microchip LAN75xx/LAN78xx (Raspberry Pi 3 B+)
 		from OpenBSD. [rin 20180825]
@@ -278,7 +278,7 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 	sh(1): Many bug fixes and enhancements.  [kre 20181212]
 	amdtemp(4): Add support for AMD family 16h temperature sensors.
 		[is 20181213]
-	evbarm64: Add support for NVIDIA Tegra 

CVS commit: src/doc

2019-04-16 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Tue Apr 16 18:31:23 UTC 2019

Modified Files:
src/doc: CHANGES

Log Message:
Tag evbarm related changes separately to separate out the entries into the
specific section on the generated webpage.
Others the entries show up in the section of each arm based port.


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

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

Modified files:

Index: src/doc/CHANGES
diff -u src/doc/CHANGES:1.2521 src/doc/CHANGES:1.2522
--- src/doc/CHANGES:1.2521	Tue Apr 16 17:50:46 2019
+++ src/doc/CHANGES	Tue Apr 16 18:31:22 2019
@@ -1,4 +1,4 @@
-# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2521 $>
+# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2522 $>
 #
 #
 # [Note: This file does not mention every change made to the NetBSD source tree.
@@ -33,7 +33,7 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 	amd64: Support 16TB of PA, and 32TB of kernel VA on the architecture
 		side. [maxv 20170617]
 	expat: Import 2.2.1 (security fixes). [christos 20170617]
-	arm: Add support for Allwinner H3 SoC. [jmcneill 20170628]
+	evbarm: Add support for Allwinner H3 SoC. [jmcneill 20170628]
 	bind: Import version 9.10.5-P2. [christos 20170630]
 	sunxiemac(4): Add support for Allwinner Gigabit Ethernet (EMAC).
 		[jmcneill 20170701]
@@ -41,14 +41,14 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 	wbsio(4): Add support for Winbond W83627DHG-P, W83627SF, W83627UHG,
 		W83667HGB, W83687THF, W83697UG,	Nuvoton NCT5104D, NCT6775,
 		NCT6779, NCT6791, NCT6792 and NCT6793. [msaitoh 20170707]
-	arm: Add support for Allwinner A83T SoC. [jmcneill 20170707]
+	evbarm: Add support for Allwinner A83T SoC. [jmcneill 20170707]
 	MAKEDEV(8): Regenerate, documenting lua, dk, plcom, wmcom, hdmicec, mfi,
 		nvme, nvme ns, tpm, and dtrace devices. [sevan 20170710]
 	wbsio(4): Add support for NCT6795. [msaitoh 20170711]
 	lm(4): Add support for NCT5174D, NCT6775F, NCT6779D and NCT679[1235]D.
 		[msaitoh 20170711]
-	arm: Add support for NVIDIA Tegra X1 SoC. [jmcneill 20170720]
-	arm: Add support for Allwinner A64 SoC. [jmcneill 20170723]
+	evbarm64: Add support for NVIDIA Tegra X1 SoC. [jmcneill 20170720]
+	evbarm64: Add support for Allwinner A64 SoC. [jmcneill 20170723]
 	gzip(1): Add SIGINFO support. [mrg 20170804]
 	i386: Remove vm86. [maxv 20170812]
 	itesio(4): Add support IT8628E. [hauke 20170814]
@@ -62,7 +62,7 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 	tcpdump(8): Import 4.9.2. [christos 20170908]
 	veriexecgen(8): Drop support for MD5, SHA1, RMD160. [sevan 20170909]
 	itesio(4): Add support IT8728GF and IT877[12]E [hauke 20170814]
-	arm: Add support for Allwinner A13 and R8 SoCs. [jmcneill 20170825]
+	evbarm: Add support for Allwinner A13 and R8 SoCs. [jmcneill 20170825]
 	veriexec(4): Drop support for VERIFIED_EXEC_FP_MD5,
 		VERIFIED_EXEC_FP_SHA1, and VERIFIED_EXEC_FP_RMD160 options.
 		[sevan 20170913]
@@ -75,7 +75,7 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 		[jdolecek 20171007]
 	OpenSSH: Imported 7.6. [christos 20171007]
 	amd64: Add support for Kernel ASLR [maxv 20171010]
-	arm: Add support for Allwinner H5 SoC. [jmcneill 20171011]
+	evbarm64: Add support for Allwinner H5 SoC. [jmcneill 20171011]
 	tmux(1): Imported 2.6. [christos 20171012]
 	amd64: Add support for SMAP. [maxv 20171017]
 	amd64: Add support for USER_LDT. [maxv 20171021]
@@ -86,7 +86,7 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 	kernhist(9): Reworked the export-via-sysctl code to use uintptr_t
 		arguments, PR kern/52639.  Requires contemporaneous update
 		of vmstat(1). [pgoyette 20171028]
-	arm: Add support for NextThing GR8 SoC. [jmcneill 20171106]
+	evbarm: Add support for NextThing GR8 SoC. [jmcneill 20171106]
 	acpi(4): Updated ACPICA to 20171110. [christos 2017]
 	sunxinand(4): Add driver for Allwinner NAND Flash Controller.
 		[jmcneill 20171113]
@@ -155,7 +155,7 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 	puc(4): Add Intel 300 series chipset support. [msaitoh 20180413]
 	file(1): Upgraded to 5.33. [christos 20180415]
 	netpgp(3lua): Add Lua binding for libnetpgp(3). [sevan 20180429]
-	arm: Add support for Allwinner H6 SoC. [jmcneill 20180501]
+	evbarm64: Add support for Allwinner H6 SoC. [jmcneill 20180501]
 	dhcpcd(8): Import 7.0.4. [roy 20180502]
 	midiplay: Add -s option to send all sounds off. [mrg 20180503]
 	libbozohttpd(3): Add the embeddable version of bozohttpd [sevan 20180503]
@@ -171,8 +171,8 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 		default. [sevan 20180602]
 	dhcpcd(8): Import 7.0.5b. [roy 20180604]
 	virtio(4): Add MMIO transport and fdt(4) attachment. [jakllsch 20180606]
-	arm: Add support for QEMU ARM Virtual Machine ("virt"). [jmcneill 20180614]
-	arm: Add support for Rockchip RK3328 SoC. [jmcneill 20180615]
+	evbarm: Add support for QEMU ARM Virtual Machine ("virt"). [jmcneill 20180614]
+	evbarm64: Add support for Rockchip RK3328 SoC. [jmcneill 

CVS commit: src/doc

2019-04-16 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Tue Apr 16 17:50:46 UTC 2019

Modified Files:
src/doc: CHANGES

Log Message:
typo - via leot


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

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

Modified files:

Index: src/doc/CHANGES
diff -u src/doc/CHANGES:1.2520 src/doc/CHANGES:1.2521
--- src/doc/CHANGES:1.2520	Tue Apr 16 17:41:17 2019
+++ src/doc/CHANGES	Tue Apr 16 17:50:46 2019
@@ -1,4 +1,4 @@
-# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2520 $>
+# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2521 $>
 #
 #
 # [Note: This file does not mention every change made to the NetBSD source tree.
@@ -101,7 +101,7 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 	lua: Applied 6th bugfix to Lua 5.3.4 from lua.org/bugs.html.
 		[mbalmer 20171213]
 	sstk: Remove the "stack section size change" syscall [kamil 20171219]
-	sbrk(7): Remove the "data section size change" syscall [kamil 20171219]
+	sbrk(2): Remove the "data section size change" syscall [kamil 20171219]
 	ovadvise: Remove the old vadvise syscall header [kamil 20171219]
 	dhcpcd(8): Import dhcpcd-7.0.0 [roy 20180101]
 	mdnsd(8), dns-sd(1), libdns_sd: import mDNSResponder 878.1



CVS commit: src/doc

2019-04-16 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Tue Apr 16 17:41:17 UTC 2019

Modified Files:
src/doc: CHANGES

Log Message:
Add manual categories to generate links to man.n.o on the webpage


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

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

Modified files:

Index: src/doc/CHANGES
diff -u src/doc/CHANGES:1.2519 src/doc/CHANGES:1.2520
--- src/doc/CHANGES:1.2519	Tue Apr 16 16:01:11 2019
+++ src/doc/CHANGES	Tue Apr 16 17:41:17 2019
@@ -1,4 +1,4 @@
-# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2519 $>
+# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2520 $>
 #
 #
 # [Note: This file does not mention every change made to the NetBSD source tree.
@@ -90,7 +90,7 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 	acpi(4): Updated ACPICA to 20171110. [christos 2017]
 	sunxinand(4): Add driver for Allwinner NAND Flash Controller.
 		[jmcneill 20171113]
-	gcc: Import GCC 5.5.  [mrg 20171113]
+	gcc(1): Import GCC 5.5.  [mrg 20171113]
 	libtre: Update to the latest git source. [rin 20171117]
 	qemufwcfg(4): Add driver for QEMU Firmware Configuration device.
 		[jmcneill 20171125]
@@ -101,7 +101,7 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 	lua: Applied 6th bugfix to Lua 5.3.4 from lua.org/bugs.html.
 		[mbalmer 20171213]
 	sstk: Remove the "stack section size change" syscall [kamil 20171219]
-	sbrk: Remove the "data section size change" syscall [kamil 20171219]
+	sbrk(7): Remove the "data section size change" syscall [kamil 20171219]
 	ovadvise: Remove the old vadvise syscall header [kamil 20171219]
 	dhcpcd(8): Import dhcpcd-7.0.0 [roy 20180101]
 	mdnsd(8), dns-sd(1), libdns_sd: import mDNSResponder 878.1
@@ -114,9 +114,9 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 	libc: Update to tzcode2018c. [christos 20180125]
 	i386: Add support for SMAP. [maxv 20180128]
 	dhcpcd(8): Import dhcpcd-7.0.1 [roy 20180129]
-	gcc: Import GCC 6.4.  [mrg 20180201]
+	gcc(1): Import GCC 6.4.  [mrg 20180201]
 	openldap: Import 2.4.45. [christos 20180205]
-	unbound: Import 1.6.8. [christos 20180205]
+	unbound(8): Import 1.6.8. [christos 20180205]
 	nsd: import 4.1.19 [christos 20180209]
 	ddb(4):	Introduce dumpstack sysctl for printing a stack trace on panic,
 		enable by default. [sevan 20180217]
@@ -138,11 +138,11 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 	macppc: Enable Bluetooth support by default in GENERIC kernel.
 		[sevan 20180316]
 	tzdata: Updated to 2017d. [kre 20180324]
-	dhcpcd: Import 7.0.2. [roy 20180327]
+	dhcpcd(8): Import 7.0.2. [roy 20180327]
 	aarch64: Add initial support for aarch64. [ryo 20180401]
 	amd64: Add SpectreV2 mitigations, based on IBRS and the DIS_IND
 		bit. [maxv 20180404]
-	dhcpcd: Import 7.0.3. [roy 20180406]
+	dhcpcd(8): Import 7.0.3. [roy 20180406]
 	OpenSSH: Imported 7.7. [christos 20180406]
 	OpenSSL: Imported 1.1.0h. [christos 20180406]
 	ntp: Import ntp 4.2.8p11. [christos 20180406]
@@ -156,7 +156,7 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 	file(1): Upgraded to 5.33. [christos 20180415]
 	netpgp(3lua): Add Lua binding for libnetpgp(3). [sevan 20180429]
 	arm: Add support for Allwinner H6 SoC. [jmcneill 20180501]
-	dhcpcd: Import 7.0.4. [roy 20180502]
+	dhcpcd(8): Import 7.0.4. [roy 20180502]
 	midiplay: Add -s option to send all sounds off. [mrg 20180503]
 	libbozohttpd(3): Add the embeddable version of bozohttpd [sevan 20180503]
 	bozohttpd(3lua): Add Lua binding for libbozohttpd(3lua) [sevan 20180503]
@@ -169,14 +169,14 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 	x86: Add SpectreV4 mitigations. [maxv 20180522]
 	macppc: Enable ipsec(4) and ipsecif(4) support in GENERIC kernel by
 		default. [sevan 20180602]
-	dhcpcd: Import 7.0.5b. [roy 20180604]
+	dhcpcd(8): Import 7.0.5b. [roy 20180604]
 	virtio(4): Add MMIO transport and fdt(4) attachment. [jakllsch 20180606]
 	arm: Add support for QEMU ARM Virtual Machine ("virt"). [jmcneill 20180614]
 	arm: Add support for Rockchip RK3328 SoC. [jmcneill 20180615]
-	dhcpcd: Import 7.0.6. [roy 20180621]
+	dhcpcd(8): Import 7.0.6. [roy 20180621]
 	bpf(4): Add the BPF direction filter (BIOC[GS]DIRECTION).
 		[msaitoh 20180626]
-	gcc: add lsan the Leak Sanitizer [christos 20180626]
+	gcc(1): add lsan the Leak Sanitizer [christos 20180626]
 	aarch64: Add support for SMP. [ryo 20180709]
 	viadrm(4): Removed, superseded by viadrmums. [maya 20180710]
 	ssh-agent(1): /usr/pkg/lib* whitelisted by default for PKCS11 related
@@ -189,7 +189,7 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 		[jmcneill 20180715]
 	arm: Add support for ARMv7 performance event monitoring with tprof(4).
 		[jmcneill 20180715]
-	dhcpcd: Import 7.0.7. [roy 20180724]
+	dhcpcd(8): Import 7.0.7. [roy 20180724]
 	i386: Remove the XEN3_DOM0 and XEN3_DOMU configurations, and drop
 		support for non-PAE-32bit-PV, to leave only PAE-32bit-PV.
 		[maxv 20180726]
@@ -216,7 +216,7 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 	gnu-efi: Import 

CVS commit: src/external/mit/xorg/lib/gallium

2019-04-16 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Apr 16 17:29:09 UTC 2019

Modified Files:
src/external/mit/xorg/lib/gallium: Makefile

Log Message:
Ran out of patience playing stack protector bingo.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/external/mit/xorg/lib/gallium/Makefile

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

Modified files:

Index: src/external/mit/xorg/lib/gallium/Makefile
diff -u src/external/mit/xorg/lib/gallium/Makefile:1.24 src/external/mit/xorg/lib/gallium/Makefile:1.25
--- src/external/mit/xorg/lib/gallium/Makefile:1.24	Fri Apr 12 13:43:25 2019
+++ src/external/mit/xorg/lib/gallium/Makefile	Tue Apr 16 13:29:09 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2019/04/12 17:43:25 christos Exp $
+# $NetBSD: Makefile,v 1.25 2019/04/16 17:29:09 christos Exp $
 
 # Link the gallium mega driver.
 
@@ -1104,6 +1104,8 @@ CWARNFLAGS.clang+=	-Wno-error=constant-c
 			-Wno-error=typedef-redefinition \
 			-Wno-error=enum-conversion # https://bugs.freedesktop.org/show_bug.cgi?id=109761
 
+CWARNFLAGS+=		-Wno-error=stack-protector
+
 .include 
 LIBDIR=		${X11USRLIBDIR}/modules/dri
 
@@ -1119,24 +1121,6 @@ SYMLINKS+= gallium_dri.so.${SHLIB_MAJOR}
 COPTS+=	${${ACTIVE_CC} == "clang":? -Wa,-Av8plus  :}
 .endif
 
-.for f in \
-	decode.c \
-	dd_context.c \
-	draw.c \
-	nir_from_ssa.c \
-	nir_inline_functions.c \
-	nir_instr_set.c \
-	nir_instr_set.c \
-	nir_liveness.c \
-	nir_lower_registers_to_ssa.c \
-	nir_lower_regs_to_ssa.c \
-	nir_lower_vars_to_ssa.c \
-	nir_phi_builder.c \
-	shaderapi.c \
-	spirv_to_nir.c \
-	vtn_cfg.c
-COPTS.${f}+=-Wno-error=stack-protector
-.endfor
 
 .include 
 # Don't regenerate c files



CVS commit: src/doc

2019-04-16 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Tue Apr 16 16:01:11 UTC 2019

Modified Files:
src/doc: CHANGES

Log Message:
one tab to start an item, and two tabs to indent the content


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

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

Modified files:

Index: src/doc/CHANGES
diff -u src/doc/CHANGES:1.2518 src/doc/CHANGES:1.2519
--- src/doc/CHANGES:1.2518	Mon Apr 15 23:16:59 2019
+++ src/doc/CHANGES	Tue Apr 16 16:01:11 2019
@@ -1,4 +1,4 @@
-# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2518 $>
+# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2519 $>
 #
 #
 # [Note: This file does not mention every change made to the NetBSD source tree.
@@ -300,10 +300,10 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 	tzdata: Updated to 2018i. [kre 20181231]
 	tzcode: Updated to 2018i. [christos 20181231]
 	binutils: Updated to FSF binutils 2.31.1.  [christos 20181231]
-	services(5), protocols(5): Pull iana-generated services and protocols
-	[christos 20190103]
-	arm: Add SMP support for Allwinner multi-cluster SoCs (A83T, A80)
-	[jmcneill 20190103]
+	services(5), protocols(5): Pull iana-generated services and protocols.
+		[christos 20190103]
+	arm: Add SMP support for Allwinner multi-cluster SoCs (A83T, A80).
+		[jmcneill 20190103]
 	wpa: Import wpa_supplicant and hostapd 2.7. [christos 20190104]
 	acpi(4): Updated ACPICA to 20181213. [christos 20190104]
 	tmux(1): Imported 2.8. [christos 20190104]



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

2019-04-16 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue Apr 16 12:25:17 UTC 2019

Modified Files:
src/sys/arch/hppa/include: aout_machdep.h asm.h cpu.h exec.h ieeefp.h
int_limits.h limits.h lock.h param.h pcb.h pte.h reg.h signal.h
vmparam.h

Log Message:
Trailing whitespace


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/hppa/include/aout_machdep.h \
src/sys/arch/hppa/include/exec.h
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/hppa/include/asm.h
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/hppa/include/cpu.h \
src/sys/arch/hppa/include/pte.h
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/hppa/include/ieeefp.h \
src/sys/arch/hppa/include/signal.h
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/hppa/include/int_limits.h
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/hppa/include/limits.h
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/hppa/include/lock.h \
src/sys/arch/hppa/include/vmparam.h
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/hppa/include/param.h
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/hppa/include/pcb.h
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/hppa/include/reg.h

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

Modified files:

Index: src/sys/arch/hppa/include/aout_machdep.h
diff -u src/sys/arch/hppa/include/aout_machdep.h:1.2 src/sys/arch/hppa/include/aout_machdep.h:1.3
--- src/sys/arch/hppa/include/aout_machdep.h:1.2	Tue Dec 10 17:14:10 2002
+++ src/sys/arch/hppa/include/aout_machdep.h	Tue Apr 16 12:25:17 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: aout_machdep.h,v 1.2 2002/12/10 17:14:10 thorpej Exp $	*/
+/*	$NetBSD: aout_machdep.h,v 1.3 2019/04/16 12:25:17 skrll Exp $	*/
 
 /*
  * Copyright (c) 1993 Christopher G. Demetriou
@@ -34,7 +34,7 @@
  * XXX fredette - the definitions in this file (with
  * the possible exception of AOUT_LDPGSZ) are bogus,
  * and they exist only to let certain userland programs
- * compile.  I don't think any SunOS-style a.out HPPA 
+ * compile.  I don't think any SunOS-style a.out HPPA
  * binaries exist.
  */
 
@@ -44,7 +44,7 @@
 struct relocation_info_hppa {
 		int r_address;/* offset in text or data segment */
   unsigned int r_symbolnum : 24,  /* ordinal number of add symbol */
-		   r_pcrel :  1,  /* 1 if value should be pc-relative */ 
+		   r_pcrel :  1,  /* 1 if value should be pc-relative */
 		  r_length :  2,  /* log base 2 of value's width */
 		  r_extern :  1,  /* 1 if need to add symbol to value */
 		 r_baserel :  1,  /* linkage table relative */
Index: src/sys/arch/hppa/include/exec.h
diff -u src/sys/arch/hppa/include/exec.h:1.2 src/sys/arch/hppa/include/exec.h:1.3
--- src/sys/arch/hppa/include/exec.h:1.2	Tue Dec 10 17:14:10 2002
+++ src/sys/arch/hppa/include/exec.h	Tue Apr 16 12:25:17 2019
@@ -1,8 +1,8 @@
-/*	$NetBSD: exec.h,v 1.2 2002/12/10 17:14:10 thorpej Exp $	*/
+/*	$NetBSD: exec.h,v 1.3 2019/04/16 12:25:17 skrll Exp $	*/
 
 /*	$OpenBSD: exec.h,v 1.6 2001/01/22 14:51:03 art Exp $	*/
 
-/* 
+/*
  * Copyright (c) 1994, The University of Utah and
  * the Computer Systems Laboratory at the University of Utah (CSL).
  * All rights reserved.
@@ -37,7 +37,7 @@
 
 #define ELF_TARG_CLASS  ELFCLASS32
 #define ELF_TARG_DATA   ELFDATA2MSB
-#define ELF_TARG_MACH   EM_PARISC   
+#define ELF_TARG_MACH   EM_PARISC
 
 /* #define _NLIST_DO_AOUT */
 /* #define _NLIST_DO_ECOFF */

Index: src/sys/arch/hppa/include/asm.h
diff -u src/sys/arch/hppa/include/asm.h:1.15 src/sys/arch/hppa/include/asm.h:1.16
--- src/sys/arch/hppa/include/asm.h:1.15	Thu Sep 12 15:36:17 2013
+++ src/sys/arch/hppa/include/asm.h	Tue Apr 16 12:25:17 2019
@@ -1,8 +1,8 @@
-/*	$NetBSD: asm.h,v 1.15 2013/09/12 15:36:17 joerg Exp $	*/
+/*	$NetBSD: asm.h,v 1.16 2019/04/16 12:25:17 skrll Exp $	*/
 
 /*	$OpenBSD: asm.h,v 1.12 2001/03/29 02:15:57 mickey Exp $	*/
 
-/* 
+/*
  * Copyright (c) 1990,1991,1994 The University of Utah and
  * the Computer Systems Laboratory (CSL).  All rights reserved.
  *

Index: src/sys/arch/hppa/include/cpu.h
diff -u src/sys/arch/hppa/include/cpu.h:1.4 src/sys/arch/hppa/include/cpu.h:1.5
--- src/sys/arch/hppa/include/cpu.h:1.4	Wed Aug 22 01:05:22 2018
+++ src/sys/arch/hppa/include/cpu.h	Tue Apr 16 12:25:17 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: cpu.h,v 1.4 2018/08/22 01:05:22 msaitoh Exp $	*/
+/*	$NetBSD: cpu.h,v 1.5 2019/04/16 12:25:17 skrll Exp $	*/
 
 /*	$OpenBSD: cpu.h,v 1.55 2008/07/23 17:39:35 kettenis Exp $	*/
 
@@ -79,7 +79,7 @@ enum hppa_cpu_type {
 	hpcxtp,	/* PA7200 (t')		PA 1.1d */
 	hpcxl2,	/* PA7300LC (l2)	PA 1.1e */
 	hpcxu,	/* PA8000 (u)		PA 2.0 */
-	hpcxup,	/* PA8200 (u+)		PA 2.0 */	
+	hpcxup,	/* PA8200 (u+)		PA 2.0 */
 	hpcxw,	/* PA8500 (w)		PA 2.0 */
 	hpcxwp,	/* PA8600 (w+)		PA 2.0 */
 	hpcxw2, /* PA8700 (piranha)	PA 2.0 */
@@ -287,7 +287,7 @@ struct cpu_info {
 
 	struct hppa_interrupt_register	ci_ir;
 	struct hppa_interrupt_bit	ci_ib[HPPA_INTERRUPT_BITS];
-	
+
 #if defined(MULTIPROCESSOR)
 	struct lwp	*ci_curlwp;	/* CPU owner */
 	paddr_t		

CVS commit: src/sys/arch/hppa/gsc

2019-04-16 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue Apr 16 12:22:13 UTC 2019

Modified Files:
src/sys/arch/hppa/gsc: if_ie_gsc.c

Log Message:
Trailing whitespace


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/hppa/gsc/if_ie_gsc.c

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

Modified files:

Index: src/sys/arch/hppa/gsc/if_ie_gsc.c
diff -u src/sys/arch/hppa/gsc/if_ie_gsc.c:1.2 src/sys/arch/hppa/gsc/if_ie_gsc.c:1.3
--- src/sys/arch/hppa/gsc/if_ie_gsc.c:1.2	Thu Feb  8 09:05:18 2018
+++ src/sys/arch/hppa/gsc/if_ie_gsc.c	Tue Apr 16 12:22:13 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_ie_gsc.c,v 1.2 2018/02/08 09:05:18 dholland Exp $	*/
+/*	$NetBSD: if_ie_gsc.c,v 1.3 2019/04/16 12:22:13 skrll Exp $	*/
 
 /*	$OpenBSD: if_ie_gsc.c,v 1.6 2001/01/12 22:57:04 mickey Exp $	*/
 
@@ -38,7 +38,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_ie_gsc.c,v 1.2 2018/02/08 09:05:18 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ie_gsc.c,v 1.3 2019/04/16 12:22:13 skrll Exp $");
 
 #include 
 #include 
@@ -95,7 +95,7 @@ struct ie_gsc_regs {
 
 struct ie_gsc_softc {
 	struct ie_softc ie;
-	
+
 	/* tag and handle to hppa-specific adapter registers. */
 	bus_space_tag_t iot;
 	bus_space_handle_t ioh;
@@ -139,7 +139,7 @@ ie_gsc_reset(struct ie_softc *sc, int wh
 {
 	struct ie_gsc_softc *gsc = (struct ie_gsc_softc *) sc;
 	int i;
-	
+
 	switch (what) {
 	case CHIP_PROBE:
 		bus_space_write_4(gsc->iot, gsc->ioh, IE_GSC_REG_RESET, 0);
@@ -496,7 +496,7 @@ ie_gsc_attach(device_t parent, device_t 
 	 * SCP can go after that.
 	 */
 	sc->scp = IE_GSC_ALIGN(8);
-	
+
 	/* ISCP follows SCP */
 	sc->iscp = IE_GSC_ALIGN(sc->scp + IE_SCP_SZ);
 



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

2019-04-16 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Apr 16 11:38:21 UTC 2019

Modified Files:
src/sys/arch/sparc/include: ptrace.h

Log Message:
Add PTRACE_ILLEGAL_ASM


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

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

Modified files:

Index: src/sys/arch/sparc/include/ptrace.h
diff -u src/sys/arch/sparc/include/ptrace.h:1.11 src/sys/arch/sparc/include/ptrace.h:1.12
--- src/sys/arch/sparc/include/ptrace.h:1.11	Wed Apr 12 18:18:00 2017
+++ src/sys/arch/sparc/include/ptrace.h	Tue Apr 16 11:38:21 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: ptrace.h,v 1.11 2017/04/12 18:18:00 kamil Exp $ */
+/*	$NetBSD: ptrace.h,v 1.12 2019/04/16 11:38:21 martin Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -63,6 +63,8 @@
 #define PTRACE_REG_SP(r)	((register_t)(r)->r_out[6])
 #define PTRACE_REG_INTRV(r)	((register_t)(r)->r_out[0])
 
+#define PTRACE_ILLEGAL_ASM	__asm __volatile ("illtrap 0" : : : "memory")
+
 #define PTRACE_BREAKPOINT	((const uint8_t[]) { 0x91, 0xd0, 0x20, 0x01 })
 #define PTRACE_BREAKPOINT_ASM	__asm __volatile("ta 1")
 #define PTRACE_BREAKPOINT_SIZE	4



CVS commit: src/share/examples/npf

2019-04-16 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Tue Apr 16 10:52:28 UTC 2019

Modified Files:
src/share/examples/npf: host-npf.conf

Log Message:
Indent to improve readability.
Add a description for log event.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/share/examples/npf/host-npf.conf

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

Modified files:

Index: src/share/examples/npf/host-npf.conf
diff -u src/share/examples/npf/host-npf.conf:1.9 src/share/examples/npf/host-npf.conf:1.10
--- src/share/examples/npf/host-npf.conf:1.9	Mon Apr 15 22:38:48 2019
+++ src/share/examples/npf/host-npf.conf	Tue Apr 16 10:52:28 2019
@@ -1,4 +1,4 @@
-# $NetBSD: host-npf.conf,v 1.9 2019/04/15 22:38:48 sevan Exp $
+# $NetBSD: host-npf.conf,v 1.10 2019/04/16 10:52:28 sevan Exp $
 #
 # Simple ruleset for a host with (i.e., not routing) two interfaces,
 # ethernet and wifi.
@@ -22,16 +22,16 @@ $wifi_addrs = ifaddrs(iwn0)
 alg "icmp"
 
 procedure "log" {
-	log: npflog0
+# Send log events to npflog0, see npfd(8)
+log: npflog0
 }
 
 group "wired" on $wired_if {
-# Placeholder for blacklistd (configuration separate) to add blocked hosts
-ruleset "blacklistd"
-
-# Allow SSH on wired interface
-pass in on $wired_if proto tcp to $wired_addrs port ssh apply "log"
+# Placeholder for blacklistd (configuration separate) to add blocked hosts
+ruleset "blacklistd"
 
+# Allow SSH on wired interface and log all connection attempts
+pass in on $wired_if proto tcp to $wired_addrs port ssh apply "log"
 }
 
 group "wifi" on $wifi_if {
@@ -39,28 +39,28 @@ group "wifi" on $wifi_if {
 }
 
 group default {
-# Default deny, otherwise last matching rule wins
-block all apply "log"
+# Default deny, otherwise last matching rule wins
+block all apply "log"
 
-# Don't block loopback
-pass on lo0 all
+# Don't block loopback
+pass on lo0 all
 
-# Allow incoming DHCP server responses
-pass in family inet4 proto udp from any port bootps to any port bootpc
-pass in family inet6 proto udp from any to any port "dhcpv6-client"
+# Allow incoming DHCP server responses
+pass in family inet4 proto udp from any port bootps to any port bootpc
+pass in family inet6 proto udp from any to any port "dhcpv6-client"
 
-# Allow IPv6 ICMP
-pass family inet6 proto ipv6-icmp all
+# Allow IPv6 ICMP
+pass family inet6 proto ipv6-icmp all
 
-# Allow incoming IPv4 pings
-pass in family inet4 proto icmp icmp-type echo all
+# Allow incoming IPv4 pings
+pass in family inet4 proto icmp icmp-type echo all
 
-# Allow being tracerouted
-pass in proto udp to any port 33434-33600
+# Allow being tracerouted
+pass in proto udp to any port 33434-33600
 
-# Allow incoming mDNS traffic from neighbours
-pass in proto udp to any port mdns
+# Allow incoming mDNS traffic from neighbours
+pass in proto udp to any port mdns
 
-# Allow all outbound traffic
-pass stateful out all
+# Allow all outbound traffic
+pass stateful out all
 }



CVS commit: src/sys/external/bsd

2019-04-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Apr 16 10:00:04 UTC 2019

Modified Files:
src/sys/external/bsd/common/include/linux: err.h errno.h
src/sys/external/bsd/drm2/dist/drm/nouveau: nouveau_drm.c
nouveau_fence.c
src/sys/external/bsd/drm2/drm: drm_cdevsw.c
src/sys/external/bsd/drm2/include/drm: drm_wait_netbsd.h
src/sys/external/bsd/drm2/linux: linux_fence.c linux_ww_mutex.c

Log Message:
fix various problems i've seen where cv_*wait*() return ERESTART,
which is -3 in netbsd, which we have mapped linux ERESTARTSYS to.

this has a problem because linux code often returns errors and
pointers in the same value, and pointer values between -4095 and
-1 are considered as error returns, but -3 ends up as 3 and thus
is not considered an error, and mayhem ensues.

with this in place my kabylake system seems actually stable, i
have not triggered any of my prior issues in almost 4 weeks now.

Taylor asked me to write up a description and then wrote most of
the text below for me :-)

In Linux code, we always work with ERESTARTSYS so the code meaning
start over is a positive NetBSD errno safe for PTR_ERR/ERR_PTR.
To achieve this:
1. adapt all cv_waits that return to Linux so they map ERESTART to
   ERESTARTSYS, and
2. adapt all returns to userland so they convert ERESTARTSYS to
   ERESTART.
Leave EINTR and all other error codes alone.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/external/bsd/common/include/linux/err.h
cvs rdiff -u -r1.3 -r1.4 src/sys/external/bsd/common/include/linux/errno.h
cvs rdiff -u -r1.16 -r1.17 \
src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_drm.c
cvs rdiff -u -r1.13 -r1.14 \
src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_fence.c
cvs rdiff -u -r1.13 -r1.14 src/sys/external/bsd/drm2/drm/drm_cdevsw.c
cvs rdiff -u -r1.14 -r1.15 \
src/sys/external/bsd/drm2/include/drm/drm_wait_netbsd.h
cvs rdiff -u -r1.14 -r1.15 src/sys/external/bsd/drm2/linux/linux_fence.c
cvs rdiff -u -r1.5 -r1.6 src/sys/external/bsd/drm2/linux/linux_ww_mutex.c

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

Modified files:

Index: src/sys/external/bsd/common/include/linux/err.h
diff -u src/sys/external/bsd/common/include/linux/err.h:1.2 src/sys/external/bsd/common/include/linux/err.h:1.3
--- src/sys/external/bsd/common/include/linux/err.h:1.2	Mon Aug 27 07:20:25 2018
+++ src/sys/external/bsd/common/include/linux/err.h	Tue Apr 16 10:00:04 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: err.h,v 1.2 2018/08/27 07:20:25 riastradh Exp $	*/
+/*	$NetBSD: err.h,v 1.3 2019/04/16 10:00:04 mrg Exp $	*/
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 #include 
 #include 
 
-#define	MAX_ERRNO	ELAST
+#define	MAX_ERRNO	4095
 
 static inline bool
 IS_ERR_VALUE(uintptr_t n)

Index: src/sys/external/bsd/common/include/linux/errno.h
diff -u src/sys/external/bsd/common/include/linux/errno.h:1.3 src/sys/external/bsd/common/include/linux/errno.h:1.4
--- src/sys/external/bsd/common/include/linux/errno.h:1.3	Wed Jul 16 20:56:24 2014
+++ src/sys/external/bsd/common/include/linux/errno.h	Tue Apr 16 10:00:04 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: errno.h,v 1.3 2014/07/16 20:56:24 riastradh Exp $	*/
+/*	$NetBSD: errno.h,v 1.4 2019/04/16 10:00:04 mrg Exp $	*/
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -35,7 +35,10 @@
  * - Linux consistently passes around negative errno values.  NetBSD
  *   consistently passes around positive ones, except the special magic
  *   in-kernel ones (EJUSTRETURN, ERESTART, ) which should not be
- *   exposed to userland.  Be careful!
+ *   exposed to userland *or* linux-only code using the negative pointer
+ *   means error return pattern.  Be careful!  If Using ERESTARTSYS from
+ *   Linux code, be sure it is remapped back to ERESTART before NetBSD
+ *   code sees it.
  */
 
 #ifndef _LINUX_ERRNO_H_
@@ -43,7 +46,7 @@
 
 #include 
 
-#define	ERESTARTSYS	ERESTART
+#define	ERESTARTSYS	(ELAST+1)	/* XXX */
 #define	ENOTSUPP	ENOTSUP	/* XXX ???  */
 #define	EREMOTEIO	EIO	/* XXX Urk...  */
 #define	ECHRNG		ERANGE	/* XXX ??? */

Index: src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_drm.c
diff -u src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_drm.c:1.16 src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_drm.c:1.17
--- src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_drm.c:1.16	Fri Dec 21 07:51:17 2018
+++ src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_drm.c	Tue Apr 16 10:00:04 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: nouveau_drm.c,v 1.16 2018/12/21 07:51:17 maya Exp $	*/
+/*	$NetBSD: nouveau_drm.c,v 1.17 2019/04/16 10:00:04 mrg Exp $	*/
 
 /*
  * Copyright 2012 Red Hat Inc.
@@ -25,7 +25,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: nouveau_drm.c,v 1.16 2018/12/21 07:51:17 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_drm.c,v 1.17 2019/04/16 10:00:04 mrg Exp $");
 
 #include 
 #include 
@@ -966,11 +966,12 @@ 

CVS commit: [netbsd-7] src/doc

2019-04-16 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Apr 16 08:12:58 UTC 2019

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

Log Message:
Ticket #1673


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.46 -r1.1.2.47 src/doc/CHANGES-7.3

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

Modified files:

Index: src/doc/CHANGES-7.3
diff -u src/doc/CHANGES-7.3:1.1.2.46 src/doc/CHANGES-7.3:1.1.2.47
--- src/doc/CHANGES-7.3:1.1.2.46	Tue Apr 16 03:56:53 2019
+++ src/doc/CHANGES-7.3	Tue Apr 16 08:12:58 2019
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-7.3,v 1.1.2.46 2019/04/16 03:56:53 msaitoh Exp $
+# $NetBSD: CHANGES-7.3,v 1.1.2.47 2019/04/16 08:12:58 martin Exp $
 
 A complete list of changes from the NetBSD 7.2 release to the NetBSD 7.3
 release:
@@ -517,3 +517,9 @@ sys/kern/sys_mqueue.c1.44
 	mq_send1: fix argument validation and reject too large lengths early.
 	Discovered by Andy Nguyen.
 	[martin, ticket #1688]
+
+sys/external/bsd/drm2/pci/drm_pci.c		1.32 (patch)
+
+	Don't try to interpret the second half of a 64-bit BAR as another one.
+	[dholland, ticket #1673]
+



CVS commit: [netbsd-7] src/sys/external/bsd/drm2/pci

2019-04-16 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Apr 16 08:10:22 UTC 2019

Modified Files:
src/sys/external/bsd/drm2/pci [netbsd-7]: drm_pci.c

Log Message:
Pull up following revision(s) (requested by dholland in ticket #1673):

sys/external/bsd/drm2/pci/drm_pci.c: revision 1.32 (via patch)

Don't try to interpret the second half of a 64-bit BAR as another one.
>From msaitoh@.


To generate a diff of this commit:
cvs rdiff -u -r1.6.2.3 -r1.6.2.4 src/sys/external/bsd/drm2/pci/drm_pci.c

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

Modified files:

Index: src/sys/external/bsd/drm2/pci/drm_pci.c
diff -u src/sys/external/bsd/drm2/pci/drm_pci.c:1.6.2.3 src/sys/external/bsd/drm2/pci/drm_pci.c:1.6.2.4
--- src/sys/external/bsd/drm2/pci/drm_pci.c:1.6.2.3	Thu Jul 30 15:43:37 2015
+++ src/sys/external/bsd/drm2/pci/drm_pci.c	Tue Apr 16 08:10:22 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: drm_pci.c,v 1.6.2.3 2015/07/30 15:43:37 snj Exp $	*/
+/*	$NetBSD: drm_pci.c,v 1.6.2.4 2019/04/16 08:10:22 martin Exp $	*/
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: drm_pci.c,v 1.6.2.3 2015/07/30 15:43:37 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_pci.c,v 1.6.2.4 2019/04/16 08:10:22 martin Exp $");
 
 #include 
 #include 
@@ -140,6 +140,14 @@ drm_pci_attach(device_t self, const stru
 			continue;
 		}
 
+		/*
+		 * If it's a 64-bit mapping, don't interpret the second
+		 * half of it as another BAR in the next iteration of
+		 * the loop -- move on to the next unit.
+		 */
+		if (PCI_MAPREG_MEM_TYPE(type) == PCI_MAPREG_MEM_TYPE_64BIT)
+			unit++;
+
 		/* Inquire about it.  We'll map it in drm_core_ioremap.  */
 		if (pci_mapreg_info(pa->pa_pc, pa->pa_tag, reg, type,
 			>bm_base, >bm_size, >bm_flags) != 0) {



CVS commit: src/external/gpl3/gcc/lib/libgcc

2019-04-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Apr 16 08:08:18 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libgcc: Makefile.inc

Log Message:
fix -I paths for powerpc*.  convert amd64 specific hack.

we've been building dp-bit.c and fp-bit.c backwards, but as they
use the same input source, they just had opposite objects and
the right total was provided.  oops.


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/external/gpl3/gcc/lib/libgcc/Makefile.inc

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

Modified files:

Index: src/external/gpl3/gcc/lib/libgcc/Makefile.inc
diff -u src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.41 src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.42
--- src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.41	Wed Apr  3 02:13:56 2019
+++ src/external/gpl3/gcc/lib/libgcc/Makefile.inc	Tue Apr 16 08:08:18 2019
@@ -1,6 +1,7 @@
-#	$NetBSD: Makefile.inc,v 1.41 2019/04/03 02:13:56 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.42 2019/04/16 08:08:18 mrg Exp $
 
 LIBGCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/}
+GCC_MACHINE_SUBDIR=${MACHINE_CPU:C/powerpc.*/rs6000/:C/x86_64/i386/}
 
 .if ${MKGCC} != "no"
 .if exists(${.CURDIR}/../arch/${LIBGCC_MACHINE_ARCH}/defs.mk)
@@ -22,11 +23,7 @@ CPPFLAGS+=	-I${GCCARCH} ${GCPPFLAGS:M-D*
 CPPFLAGS+=	${GCPPFLAGS:M-m*} ${GCPPFLAGS:M-f*}
 CPPFLAGS+=	${G_EXTRA_HEADERS:M/*:H:u:S/^/-I/g}
 CPPFLAGS+=	-I${DIST}/libgcc -I${DIST}/libgcc/config
-.if ${LIBGCC_MACHINE_ARCH} == "x86_64"
-CPPFLAGS+=	-I${DIST}/libgcc/config/i386
-.else
-CPPFLAGS+=	-I${DIST}/libgcc/config/${LIBGCC_MACHINE_ARCH}
-.endif
+CPPFLAGS+=	-I${DIST}/libgcc/config/${GCC_MACHINE_SUBDIR}
 CPPFLAGS+=	-I${DIST}/gcc -I${DIST}/include -I.
 CPPFLAGS+=	${G_INTERNAL_CFLAGS:M-DHAVE_CC_TLS}
 
@@ -120,7 +117,7 @@ LIB2_EHASM=	${G_LIB2ADDEH:M*.S:T}
 # from the list of files we create.
 .if !empty(G_LIB1ASMFUNCS)
 . for f in ${G_LIB1ASMFUNCS:=.S}
-.  if !exists(${DIST}/libgcc/config/${MACHINE_CPU}/${f})
+.  if !exists(${DIST}/libgcc/config/${GCC_MACHINE_SUBDIR}/${f})
 LIB1ASMFUNCS+=	${f}
 .  endif
 . endfor
@@ -184,16 +181,17 @@ ${G_LIB2_DIVMOD_FUNCS:=.pico}: $(.PREFIX
 	${_MKTARGET_COMPILE}
 	${COMPILE.c} ${CPICFLAGS} -fexceptions -fnon-call-exceptions ${COPTS.${.IMPSRC:T}} -o ${.TARGET} ${.IMPSRC}
 
+CPPFLAGS.fp-bit.c+=	-DFLOAT=1
 dp-bit.c: ${.CURDIR}/Makefile
 	${_MKTARGET_CREATE}
-	printf '#define FLOAT\n#include \n' >${.TARGET}
+	printf '#include \n' >${.TARGET}
 
 #
 # Common rules.
 #
 
 .PATH: ${DIST}/gcc ${DIST}/gcc/cp ${DIST}/gcc/cp/inc ${DIST}/gcc/config \
-	${DIST}/libgcc/config ${DIST}/libgcc/config/${MACHINE_CPU} \
+	${DIST}/libgcc/config ${DIST}/libgcc/config/${GCC_MACHINE_SUBDIR} \
 	${G_LIB2ADD:H:O:u} ${G_LIB2ADDEH:H:O:u} ${GCCARCHLIBGCC}
 
 .include "../Makefile.tconfigh"



CVS commit: src/lib/libc/arch/riscv/gdtoa

2019-04-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Apr 16 08:04:23 UTC 2019

Modified Files:
src/lib/libc/arch/riscv/gdtoa: Makefile.inc

Log Message:
revert previously. we want riscv32 to have 128 bit long double...
shall fix the compiler instead.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/riscv/gdtoa/Makefile.inc

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

Modified files:

Index: src/lib/libc/arch/riscv/gdtoa/Makefile.inc
diff -u src/lib/libc/arch/riscv/gdtoa/Makefile.inc:1.3 src/lib/libc/arch/riscv/gdtoa/Makefile.inc:1.4
--- src/lib/libc/arch/riscv/gdtoa/Makefile.inc:1.3	Tue Apr 16 07:32:30 2019
+++ src/lib/libc/arch/riscv/gdtoa/Makefile.inc	Tue Apr 16 08:04:23 2019
@@ -1,8 +1,5 @@
-#	$NetBSD: Makefile.inc,v 1.3 2019/04/16 07:32:30 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.4 2019/04/16 08:04:23 mrg Exp $
 
-SRCS+=	strtof.c
+SRCS+=	strtof.c strtold_pQ.c
 SRCS+=	strtopQ.c
 
-.if ${MACHINE_ARCH} == "riscv64"
-SRCS+=	strtold_pQ.c
-.endif



CVS commit: src/external/gpl3/gcc

2019-04-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Apr 16 08:01:37 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libbacktrace/arch/riscv64:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libgcc/arch/riscv64: defs.mk
src/external/gpl3/gcc/lib/libiberty/arch/riscv64: config.h
src/external/gpl3/gcc/lib/libobjc/arch/riscv64: config.h defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64: c++config.h
cxxabi_tweaks.h gstdint.h symver-config.h
src/external/gpl3/gcc/usr.bin/gcc/arch/riscv64: auto-host.h bversion.h
configargs.h defs.mk gtyp-input.list plugin-version.h tm.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/riscv64: config.h

Log Message:
mknative-gcc for riscv64.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gcc/lib/libbacktrace/arch/riscv64/backtrace-supported.h \
src/external/gpl3/gcc/lib/libbacktrace/arch/riscv64/config.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/gpl3/gcc/lib/libgcc/arch/riscv64/defs.mk
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gcc/lib/libiberty/arch/riscv64/config.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gcc/lib/libobjc/arch/riscv64/config.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gcc/lib/libobjc/arch/riscv64/defs.mk
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64/c++config.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64/cxxabi_tweaks.h \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64/symver-config.h
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64/gstdint.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/gpl3/gcc/usr.bin/gcc/arch/riscv64/auto-host.h \
src/external/gpl3/gcc/usr.bin/gcc/arch/riscv64/configargs.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gcc/usr.bin/gcc/arch/riscv64/bversion.h \
src/external/gpl3/gcc/usr.bin/gcc/arch/riscv64/gtyp-input.list
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/usr.bin/gcc/arch/riscv64/defs.mk \
src/external/gpl3/gcc/usr.bin/gcc/arch/riscv64/plugin-version.h \
src/external/gpl3/gcc/usr.bin/gcc/arch/riscv64/tm.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gcc/usr.bin/libcpp/arch/riscv64/config.h

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

Modified files:

Index: src/external/gpl3/gcc/lib/libbacktrace/arch/riscv64/backtrace-supported.h
diff -u src/external/gpl3/gcc/lib/libbacktrace/arch/riscv64/backtrace-supported.h:1.2 src/external/gpl3/gcc/lib/libbacktrace/arch/riscv64/backtrace-supported.h:1.3
--- src/external/gpl3/gcc/lib/libbacktrace/arch/riscv64/backtrace-supported.h:1.2	Sat Jan 10 22:59:35 2015
+++ src/external/gpl3/gcc/lib/libbacktrace/arch/riscv64/backtrace-supported.h	Tue Apr 16 08:01:36 2019
@@ -1,9 +1,9 @@
 /* This file is automatically generated.  DO NOT EDIT! */
-/* Generated from: NetBSD: mknative-gcc,v 1.79 2014/05/29 16:27:50 skrll Exp  */
-/* Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp  */
+/* Generated from: NetBSD: mknative-gcc,v 1.101 2019/02/23 06:54:45 mrg Exp  */
+/* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
 
 /* backtrace-supported.h.in -- Whether stack backtrace is supported.
-   Copyright (C) 2012-2013 Free Software Foundation, Inc.
+   Copyright (C) 2012-2017 Free Software Foundation, Inc.
Written by Ian Lance Taylor, Google.
 
 Redistribution and use in source and binary forms, with or without
@@ -11,13 +11,13 @@ modification, are permitted provided tha
 met:
 
 (1) Redistributions of source code must retain the above copyright
-notice, this list of conditions and the following disclaimer. 
+notice, this list of conditions and the following disclaimer.
 
 (2) Redistributions in binary form must reproduce the above copyright
 notice, this list of conditions and the following disclaimer in
 the documentation and/or other materials provided with the
-distribution.  
-
+distribution.
+
 (3) The name of the author may not be used to
 endorse or promote products derived from this software without
 specific prior written permission.
@@ -63,3 +63,8 @@ POSSIBILITY OF SUCH DAMAGE.  */
as 0.  */
 
 #define BACKTRACE_SUPPORTS_THREADS 1
+
+/* BACKTRACE_SUPPORTS_DATA will be #defined'd as 1 if the backtrace_syminfo
+   will work for variables.  It will always work for functions.  */
+
+#define BACKTRACE_SUPPORTS_DATA 1
Index: src/external/gpl3/gcc/lib/libbacktrace/arch/riscv64/config.h
diff -u src/external/gpl3/gcc/lib/libbacktrace/arch/riscv64/config.h:1.2 src/external/gpl3/gcc/lib/libbacktrace/arch/riscv64/config.h:1.3
--- src/external/gpl3/gcc/lib/libbacktrace/arch/riscv64/config.h:1.2	Sat Jan 10 22:59:35 2015
+++ src/external/gpl3/gcc/lib/libbacktrace/arch/riscv64/config.h	Tue Apr 16 08:01:36 

CVS commit: src/external/gpl3/gcc/dist/libgcc

2019-04-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Apr 16 07:50:05 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/libgcc: config.host
Added Files:
src/external/gpl3/gcc/dist/libgcc/config/riscv: t-netbsd

Log Message:
list a bunch of soft-fp as present in the current risc64 libgcc defs.mk.
this makes mknative-gcc work without breaking maya's manual work.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/external/gpl3/gcc/dist/libgcc/config.host
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/dist/libgcc/config/riscv/t-netbsd

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

Modified files:

Index: src/external/gpl3/gcc/dist/libgcc/config.host
diff -u src/external/gpl3/gcc/dist/libgcc/config.host:1.23 src/external/gpl3/gcc/dist/libgcc/config.host:1.24
--- src/external/gpl3/gcc/dist/libgcc/config.host:1.23	Tue Apr  2 21:29:46 2019
+++ src/external/gpl3/gcc/dist/libgcc/config.host	Tue Apr 16 07:50:05 2019
@@ -1157,7 +1157,7 @@ riscv*-*-linux*)
 	md_unwind_header=riscv/linux-unwind.h
 	;;
 riscv*-*-netbsd*)
-	# nothing needed for NetBSD
+	tmake_file="${tmake_file} riscv/t-netbsd"
 	;;
 riscv*-*-*)
 	tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"

Added files:

Index: src/external/gpl3/gcc/dist/libgcc/config/riscv/t-netbsd
diff -u /dev/null src/external/gpl3/gcc/dist/libgcc/config/riscv/t-netbsd:1.1
--- /dev/null	Tue Apr 16 07:50:05 2019
+++ src/external/gpl3/gcc/dist/libgcc/config/riscv/t-netbsd	Tue Apr 16 07:50:05 2019
@@ -0,0 +1,21 @@
+LIB2ADD += $(srcdir)/soft-fp/addtf3.c \
+	   $(srcdir)/soft-fp/divtf3.c \
+	   $(srcdir)/soft-fp/eqtf2.c \
+	   $(srcdir)/soft-fp/getf2.c \
+	   $(srcdir)/soft-fp/letf2.c \
+	   $(srcdir)/soft-fp/multf3.c \
+	   $(srcdir)/soft-fp/negtf2.c \
+	   $(srcdir)/soft-fp/subtf3.c \
+	   $(srcdir)/soft-fp/unordtf2.c \
+	   $(srcdir)/soft-fp/fixtfsi.c \
+	   $(srcdir)/soft-fp/fixunstfsi.c \
+	   $(srcdir)/soft-fp/floatsitf.c \
+	   $(srcdir)/soft-fp/floatunsitf.c \
+	   $(srcdir)/soft-fp/fixtfdi.c \
+	   $(srcdir)/soft-fp/fixunstfdi.c \
+	   $(srcdir)/soft-fp/floatditf.c \
+	   $(srcdir)/soft-fp/floatunditf.c \
+	   $(srcdir)/soft-fp/extendsftf2.c \
+	   $(srcdir)/soft-fp/extenddftf2.c \
+	   $(srcdir)/soft-fp/trunctfsf2.c \
+	   $(srcdir)/soft-fp/trunctfdf2.c



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

2019-04-16 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Tue Apr 16 07:40:03 UTC 2019

Modified Files:
src/sys/arch/riscv/include: math.h

Log Message:
RISC-V ELF psABI says ILP32 also defaults to 128bit long double.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/riscv/include/math.h

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

Modified files:

Index: src/sys/arch/riscv/include/math.h
diff -u src/sys/arch/riscv/include/math.h:1.2 src/sys/arch/riscv/include/math.h:1.3
--- src/sys/arch/riscv/include/math.h:1.2	Sat Apr 13 15:57:31 2019
+++ src/sys/arch/riscv/include/math.h	Tue Apr 16 07:40:02 2019
@@ -1,7 +1,4 @@
-/* $NetBSD: math.h,v 1.2 2019/04/13 15:57:31 maya Exp $ */
+/* $NetBSD: math.h,v 1.3 2019/04/16 07:40:02 maya Exp $ */
 
 #define __HAVE_NANF
-
-#if defined(_LP64) || defined(_KERNEL)
 #define	__HAVE_LONG_DOUBLE	128
-#endif



CVS commit: src/external/gpl3/gcc

2019-04-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Apr 16 07:37:56 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libgcc/arch/powerpc64: defs.mk
src/external/gpl3/gcc/lib/libgomp/arch/powerpc64: config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64: c++config.h
defs.mk gstdint.h
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64: auto-host.h
configargs.h defs.mk tm.h

Log Message:
regen mknative-gcc for GCC 7 and ppc64.  libgcc still has problems.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 \
src/external/gpl3/gcc/lib/libgcc/arch/powerpc64/defs.mk
cvs rdiff -u -r1.5 -r1.6 \
src/external/gpl3/gcc/lib/libgomp/arch/powerpc64/config.h
cvs rdiff -u -r1.15 -r1.16 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/c++config.h
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/defs.mk
cvs rdiff -u -r1.11 -r1.12 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/gstdint.h
cvs rdiff -u -r1.11 -r1.12 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/auto-host.h
cvs rdiff -u -r1.17 -r1.18 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/configargs.h
cvs rdiff -u -r1.12 -r1.13 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/defs.mk
cvs rdiff -u -r1.8 -r1.9 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/tm.h

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

Modified files:

Index: src/external/gpl3/gcc/lib/libgcc/arch/powerpc64/defs.mk
diff -u src/external/gpl3/gcc/lib/libgcc/arch/powerpc64/defs.mk:1.7 src/external/gpl3/gcc/lib/libgcc/arch/powerpc64/defs.mk:1.8
--- src/external/gpl3/gcc/lib/libgcc/arch/powerpc64/defs.mk:1.7	Tue Feb  5 12:01:43 2019
+++ src/external/gpl3/gcc/lib/libgcc/arch/powerpc64/defs.mk	Tue Apr 16 07:37:56 2019
@@ -1,12 +1,12 @@
 # This file is automatically generated.  DO NOT EDIT!
-# Generated from: NetBSD: mknative-gcc,v 1.99 2019/02/04 01:46:59 mrg Exp 
+# Generated from: NetBSD: mknative-gcc,v 1.101 2019/02/23 06:54:45 mrg Exp 
 # Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp 
 #
 G_INCLUDES=-I. -I. -I../.././gcc -I${GNUHOSTDIST}/libgcc -I${GNUHOSTDIST}/libgcc/. -I${GNUHOSTDIST}/libgcc/../gcc -I${GNUHOSTDIST}/libgcc/../include 
 G_INTERNAL_CFLAGS=-g -O2 -O2  -DIN_GCC-W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fPIC -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -fPIC -I. -I. -I../.././gcc -I${GNUHOSTDIST}/libgcc -I${GNUHOSTDIST}/libgcc/. -I${GNUHOSTDIST}/libgcc/../gcc -I${GNUHOSTDIST}/libgcc/../include  -DHAVE_CC_TLS 
 G_LIB2ADD=${GNUHOSTDIST}/libgcc/config/rs6000/tramp.S enable-execute-stack.c
 G_LIB2ADDEH=${GNUHOSTDIST}/libgcc/unwind-dw2.c ${GNUHOSTDIST}/libgcc/unwind-dw2-fde-dip.c ${GNUHOSTDIST}/libgcc/unwind-sjlj.c ${GNUHOSTDIST}/libgcc/unwind-c.c ${GNUHOSTDIST}/libgcc/emutls.c
-G_LIB2ADD_ST=${GNUHOSTDIST}/libgcc/config/rs6000/crtsavfpr.S ${GNUHOSTDIST}/libgcc/config/rs6000/crtresfpr.S ${GNUHOSTDIST}/libgcc/config/rs6000/crtsavgpr.S ${GNUHOSTDIST}/libgcc/config/rs6000/crtresgpr.S ${GNUHOSTDIST}/libgcc/config/rs6000/crtresxfpr.S ${GNUHOSTDIST}/libgcc/config/rs6000/crtresxgpr.S ${GNUHOSTDIST}/libgcc/config/rs6000/crtsavevr.S ${GNUHOSTDIST}/libgcc/config/rs6000/crtrestvr.S
+G_LIB2ADD_ST=${GNUHOSTDIST}/libgcc/config/rs6000/crtsavfpr.S ${GNUHOSTDIST}/libgcc/config/rs6000/crtresfpr.S ${GNUHOSTDIST}/libgcc/config/rs6000/crtsavgpr.S ${GNUHOSTDIST}/libgcc/config/rs6000/crtresgpr.S ${GNUHOSTDIST}/libgcc/config/rs6000/crtresxfpr.S ${GNUHOSTDIST}/libgcc/config/rs6000/crtresxgpr.S ${GNUHOSTDIST}/libgcc/config/rs6000/crtsavevr.S ${GNUHOSTDIST}/libgcc/config/rs6000/crtrestvr.S addkf3-sw.c subkf3-sw.c mulkf3-sw.c divkf3-sw.c negkf2-sw.c unordkf2-sw.c eqkf2-sw.c gekf2-sw.c lekf2-sw.c extendsfkf2-sw.c extenddfkf2-sw.c trunckfsf2-sw.c trunckfdf2-sw.c fixkfsi-sw.c fixkfdi-sw.c fixunskfsi-sw.c fixunskfdi-sw.c floatsikf-sw.c floatdikf-sw.c floatunsikf-sw.c floatundikf-sw.c ${GNUHOSTDIST}/libgcc/config/rs6000/floattikf.c ${GNUHOSTDIST}/libgcc/config/rs6000/floatuntikf.c ${GNUHOSTDIST}/libgcc/config/rs6000/fixkfti.c ${GNUHOSTDIST}/libgcc/config/rs6000/fixunskfti.c ${GNUHOSTDIST}/libgcc/config/rs6000/extendkftf2-sw.c ${GNUHOSTDIST}/libgcc/config/rs6000/trunctfkf2-sw.c ${GNU
 HOSTDIST}/libgcc/config/rs6000/sfp-exceptions.c ${GNUHOSTDIST}/libgcc/config/rs6000/_mulkc3.c ${GNUHOSTDIST}/libgcc/config/rs6000/_divkc3.c  
 G_LIB1ASMFUNCS=
 G_LIB1ASMSRC=
 G_LIB2_DIVMOD_FUNCS=_divdi3 _moddi3 _divmoddi4 _udivdi3 _umoddi3 _udivmoddi4 _udiv_w_sdiv

Index: src/external/gpl3/gcc/lib/libgomp/arch/powerpc64/config.h
diff -u src/external/gpl3/gcc/lib/libgomp/arch/powerpc64/config.h:1.5 src/external/gpl3/gcc/lib/libgomp/arch/powerpc64/config.h:1.6
--- src/external/gpl3/gcc/lib/libgomp/arch/powerpc64/config.h:1.5	Tue Feb  5 12:01:44 2019
+++ 

CVS commit: src/external/gpl3/gcc/dist/gcc/config/rs6000

2019-04-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Apr 16 07:36:55 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/rs6000: netbsd64.h sysv4.h

Log Message:
avoid differences to linux64.h that aren't needed.
merge the rs6000_abi_name check for netbsd into the linux/freebsd section.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 \
src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gcc/dist/gcc/config/rs6000/sysv4.h

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

Modified files:

Index: src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h
diff -u src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h:1.21 src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h:1.22
--- src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h:1.21	Wed Apr 10 20:06:26 2019
+++ src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h	Tue Apr 16 07:36:55 2019
@@ -87,17 +87,6 @@ extern int dot_symbols;
 
 #define ELFv2_ABI_CHECK (rs6000_elf_abi == 2)   
 
-#undef CC1_OS_NETBSD_SPEC
-#define CC1_OS_NETBSD_SPEC \
-  NETBSD_CC1_AND_CC1PLUS_SPEC \
-  "%{!m32: %{!mrelocatable: %{!fno-pie: %{!fno-pic: \
- %{!fpie: %{!fpic: \
-   %{!fPIE: %{!fPIC:-fPIC"
-/* %{!m32: %{!mcmodel*: -mcmodel=medium}}" */
-
-#undef CC1PLUS_SPEC
-#define CC1PLUS_SPEC CC1_OS_NETBSD_SPEC
-
 #undef	SUBSUBTARGET_OVERRIDE_OPTIONS
 #define	SUBSUBTARGET_OVERRIDE_OPTIONS\
   do\
@@ -181,17 +170,6 @@ extern int dot_symbols;
 }\
   while (0)
 
-#ifdef	RS6000_BI_ARCH
-
-#if 0
-#undef	OVERRIDE_OPTIONS
-#define	OVERRIDE_OPTIONS \
-  rs6000_override_options (((TARGET_DEFAULT ^ target_flags) & MASK_64BIT) \
-			   ? (char *) 0 : TARGET_CPU_DEFAULT)
-#endif
-
-#endif
-
 #undef	ASM_DEFAULT_SPEC
 #undef	ASM_SPEC
 #undef	LINK_OS_NETBSD_SPEC
@@ -263,6 +241,22 @@ extern int dot_symbols;
 
 #endif
 
+/* We use NetBSD libc _mcount for profiling.  */
+#define NO_PROFILE_COUNTERS 1
+#define PROFILE_HOOK(LABEL) \
+  do { if (TARGET_64BIT) output_profile_hook (LABEL); } while (0)
+
+/* PowerPC64 NetBSD word-aligns FP doubles when -malign-power is given.  */
+#undef  ADJUST_FIELD_ALIGN
+#define ADJUST_FIELD_ALIGN(FIELD, TYPE, COMPUTED) \
+  (rs6000_special_adjust_field_align_p ((TYPE), (COMPUTED))		\
+   ? 128\
+   : (TARGET_64BIT			\
+  && TARGET_ALIGN_NATURAL == 0	\
+  && TYPE_MODE (strip_array_types (TYPE)) == DFmode)		\
+   ? MIN ((COMPUTED), 32)		\
+   : (COMPUTED))
+
 /* PowerPC64 NetBSD increases natural record alignment to doubleword if
the first field is an FP double, only if in power alignment mode.  */
 #undef  ROUND_TYPE_ALIGN
@@ -305,8 +299,8 @@ extern int dot_symbols;
   (!(FIRST) ? upward : FUNCTION_ARG_PADDING (MODE, TYPE))
 
 /* NetBSD doesn't support saving and restoring 64-bit regs in a 32-bit
-   process.  XXXMRG?  */
-#define OS_MISSING_POWERPC64 !TARGET_64BIT
+   process.  */
+#define OS_MISSING_POWERPC64 (!TARGET_64BIT)
 
 #undef  TARGET_OS_CPP_BUILTINS
 #define TARGET_OS_CPP_BUILTINS()			\
@@ -350,6 +344,17 @@ extern int dot_symbols;
 }		\
   while (0)
 
+#undef CC1_OS_NETBSD_SPEC
+#define CC1_OS_NETBSD_SPEC \
+  NETBSD_CC1_AND_CC1PLUS_SPEC \
+  "%{!m32: %{!mrelocatable: %{!fno-pie: %{!fno-pic: \
+ %{!fpie: %{!fpic: \
+   %{!fPIE: %{!fPIC:-fPIC"
+/* %{!m32: %{!mcmodel*: -mcmodel=medium}}" */
+
+#undef CC1PLUS_SPEC
+#define CC1PLUS_SPEC CC1_OS_NETBSD_SPEC
+
 #undef  CPP_OS_DEFAULT_SPEC
 #define CPP_OS_DEFAULT_SPEC "%(cpp_os_netbsd)"
 
@@ -382,17 +387,6 @@ extern int dot_symbols;
 /* Use standard DWARF numbering for DWARF debugging information.  */
 #define RS6000_USE_DWARF_NUMBERING
 
-/* PowerPC64 NetBSD word-aligns FP doubles when -malign-power is given.  */
-#undef  ADJUST_FIELD_ALIGN
-#define ADJUST_FIELD_ALIGN(FIELD, TYPE, COMPUTED) \
-  (rs6000_special_adjust_field_align_p ((TYPE), (COMPUTED))		\
-   ? 128\
-   : (TARGET_64BIT  \
-  && TARGET_ALIGN_NATURAL == 0  \
-  && TYPE_MODE (strip_array_types (TYPE)) == DFmode)   		\
-   ? MIN ((COMPUTED), 32)   \
-   : (COMPUTED))
-
 #undef  TOC_SECTION_ASM_OP
 #define TOC_SECTION_ASM_OP \
   (TARGET_64BIT		\
@@ -601,4 +595,11 @@ extern int dot_symbols;
 /* NetBSD ppc64 has 128-bit long double support.  */
 #undef	RS6000_DEFAULT_LONG_DOUBLE_SIZE
 #define RS6000_DEFAULT_LONG_DOUBLE_SIZE 128
+
 #define POWERPC_NETBSD
+
+/* The IEEE 128-bit emulator is only built on Linux systems.  Flag that we
+   should enable the type handling for KFmode on VSX systems even if we are not
+   enabling the __float128 keyword.  */
+#undef	TARGET_FLOAT128_ENABLE_TYPE
+#define TARGET_FLOAT128_ENABLE_TYPE 1

Index: 

CVS commit: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common

2019-04-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Apr 16 07:34:54 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common:
sanitizer_linux.cc

Log Message:
no clone() on netbsd.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 \
src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc

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

Modified files:

Index: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc
diff -u src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc:1.28 src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc:1.29
--- src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc:1.28	Tue Apr 16 01:40:16 2019
+++ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc	Tue Apr 16 07:34:54 2019
@@ -1182,7 +1182,7 @@ uptr internal_clone(int (*fn)(void *), v
: "x30", "memory");
   return res;
 }
-#elif defined(__powerpc64__)
+#elif defined(__powerpc64__) && SANITIZER_LINUX
 uptr internal_clone(int (*fn)(void *), void *child_stack, int flags, void *arg,
int *parent_tidptr, void *newtls, int *child_tidptr) {
   long long res;



CVS commit: src/lib/libc/arch/riscv/gdtoa

2019-04-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Apr 16 07:32:30 UTC 2019

Modified Files:
src/lib/libc/arch/riscv/gdtoa: Makefile.inc

Log Message:
risc32 doesn't want long double specific versions


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/arch/riscv/gdtoa/Makefile.inc

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

Modified files:

Index: src/lib/libc/arch/riscv/gdtoa/Makefile.inc
diff -u src/lib/libc/arch/riscv/gdtoa/Makefile.inc:1.2 src/lib/libc/arch/riscv/gdtoa/Makefile.inc:1.3
--- src/lib/libc/arch/riscv/gdtoa/Makefile.inc:1.2	Mon Apr 15 18:41:06 2019
+++ src/lib/libc/arch/riscv/gdtoa/Makefile.inc	Tue Apr 16 07:32:30 2019
@@ -1,5 +1,8 @@
-#	$NetBSD: Makefile.inc,v 1.2 2019/04/15 18:41:06 maya Exp $
+#	$NetBSD: Makefile.inc,v 1.3 2019/04/16 07:32:30 mrg Exp $
 
-SRCS+=	strtof.c strtold_pQ.c
+SRCS+=	strtof.c
 SRCS+=	strtopQ.c
 
+.if ${MACHINE_ARCH} == "riscv64"
+SRCS+=	strtold_pQ.c
+.endif



CVS commit: src/sys/arch/hppa/hppa

2019-04-16 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue Apr 16 07:08:46 UTC 2019

Modified Files:
src/sys/arch/hppa/hppa: trap.S

Log Message:
Fix a comment


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sys/arch/hppa/hppa/trap.S

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

Modified files:

Index: src/sys/arch/hppa/hppa/trap.S
diff -u src/sys/arch/hppa/hppa/trap.S:1.71 src/sys/arch/hppa/hppa/trap.S:1.72
--- src/sys/arch/hppa/hppa/trap.S:1.71	Tue Apr 16 06:13:53 2019
+++ src/sys/arch/hppa/hppa/trap.S	Tue Apr 16 07:08:46 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: trap.S,v 1.71 2019/04/16 06:13:53 skrll Exp $	*/
+/*	$NetBSD: trap.S,v 1.72 2019/04/16 07:08:46 skrll Exp $	*/
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -908,7 +908,7 @@ hppa_fpu_emulate:
 
 	/*
 	 * The hardware FPU is disabled, so we need to swap in the FPU state of
-	 * the LWP whose uspace physical address in CR_UPADDR.  We may also
+	 * the LWP whose uspace physical address in CR_FPPADDR.  We may also
 	 * need to swap out the FPU state of any LWP whose uspace physical
 	 * address is in curcpu()->ci_fpu_state.
 	 */



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

2019-04-16 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Tue Apr 16 07:08:52 UTC 2019

Modified Files:
src/sys/arch/riscv/include: int_fmtio.h

Log Message:
We're now using gcc netbsd-stdint.h instead of our own definitions, so
match those with the format types

XXX wrong for 32bit.
XXX unclear if changing the fast types was the right call


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/riscv/include/int_fmtio.h

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

Modified files:

Index: src/sys/arch/riscv/include/int_fmtio.h
diff -u src/sys/arch/riscv/include/int_fmtio.h:1.2 src/sys/arch/riscv/include/int_fmtio.h:1.3
--- src/sys/arch/riscv/include/int_fmtio.h:1.2	Sat Apr 13 15:56:18 2019
+++ src/sys/arch/riscv/include/int_fmtio.h	Tue Apr 16 07:08:52 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: int_fmtio.h,v 1.2 2019/04/13 15:56:18 maya Exp $	*/
+/*	$NetBSD: int_fmtio.h,v 1.3 2019/04/16 07:08:52 maya Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -101,7 +101,11 @@
 #define	PRIo8		"hho"	/* uint8_t		*/
 #define	PRIo16		"ho"	/* uint16_t		*/
 #define	PRIo32		"o"	/* uint32_t		*/
+#ifdef _LP64
+#define	PRIo64		"lo"	/* uint64_t		*/
+#else
 #define	PRIo64		"llo"	/* uint64_t		*/
+#endif
 #define	PRIoLEAST8	"o"	/* uint_least8_t	*/
 #define	PRIoLEAST16	"hho"	/* uint_least16_t	*/
 #define	PRIoLEAST32	"ho"	/* uint_least32_t	*/
@@ -224,8 +228,8 @@
 #else
 #define	SCNdLEAST64	"lld"	/* int_least64_t	*/
 #endif
-#define	SCNdFAST8	"hhd"	/* int_fast8_t		*/
-#define	SCNdFAST16	"hd"	/* int_fast16_t		*/
+#define	SCNdFAST8	"d"	/* int_fast8_t		*/
+#define	SCNdFAST16	"d"	/* int_fast16_t		*/
 #define	SCNdFAST32	"d"	/* int_fast32_t		*/
 #ifdef _LP64
 #define	SCNdFAST64	"ld"	/* int_fast64_t		*/
@@ -252,8 +256,8 @@
 #else
 #define	SCNiLEAST64	"lli"	/* int_least64_t	*/
 #endif
-#define	SCNiFAST8	"hhi"	/* int_fast8_t		*/
-#define	SCNiFAST16	"hi"	/* int_fast16_t		*/
+#define	SCNiFAST8	"i"	/* int_fast8_t		*/
+#define	SCNiFAST16	"i"	/* int_fast16_t		*/
 #define	SCNiFAST32	"i"	/* int_fast32_t		*/
 #ifdef _LP64
 #define	SCNiFAST64	"li"	/* int_fast64_t		*/
@@ -282,8 +286,8 @@
 #else
 #define	SCNoLEAST64	"llo"	/* uint_least64_t	*/
 #endif
-#define	SCNoFAST8	"hho"	/* uint_fast8_t		*/
-#define	SCNoFAST16	"ho"	/* uint_fast16_t	*/
+#define	SCNoFAST8	"o"	/* uint_fast8_t		*/
+#define	SCNoFAST16	"o"	/* uint_fast16_t	*/
 #define	SCNoFAST32	"o"	/* uint_fast32_t	*/
 #ifdef _LP64
 #define	SCNoFAST64	"lo"	/* uint_fast64_t	*/
@@ -310,8 +314,8 @@
 #else
 #define	SCNuLEAST64	"llu"	/* uint_least64_t	*/
 #endif
-#define	SCNuFAST8	"hhu"	/* uint_fast8_t		*/
-#define	SCNuFAST16	"hu"	/* uint_fast16_t	*/
+#define	SCNuFAST8	"u"	/* uint_fast8_t		*/
+#define	SCNuFAST16	"u"	/* uint_fast16_t	*/
 #define	SCNuFAST32	"u"	/* uint_fast32_t	*/
 #ifdef _LP64
 #define	SCNuFAST64	"lu"	/* uint_fast64_t	*/
@@ -338,8 +342,8 @@
 #else
 #define	SCNxLEAST64	"llx"	/* uint_least64_t	*/
 #endif
-#define	SCNxFAST8	"hhx"	/* uint_fast8_t		*/
-#define	SCNxFAST16	"hx"	/* uint_fast16_t	*/
+#define	SCNxFAST8	"x"	/* uint_fast8_t		*/
+#define	SCNxFAST16	"x"	/* uint_fast16_t	*/
 #define	SCNxFAST32	"x"	/* uint_fast32_t	*/
 #ifdef _LP64
 #define	SCNxFAST64	"lx"	/* uint_fast64_t	*/



CVS commit: src/sys/net

2019-04-16 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue Apr 16 06:48:33 UTC 2019

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

Log Message:
 It's not required (and can't do) to convert OSIOCSIFMEDIA in ifmedia_ioct()
because the conversiosn is done in doifioctl().


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/net/if_media.c

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

Modified files:

Index: src/sys/net/if_media.c
diff -u src/sys/net/if_media.c:1.40 src/sys/net/if_media.c:1.41
--- src/sys/net/if_media.c:1.40	Wed Apr 10 08:23:46 2019
+++ src/sys/net/if_media.c	Tue Apr 16 06:48:33 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_media.c,v 1.40 2019/04/10 08:23:46 msaitoh Exp $	*/
+/*	$NetBSD: if_media.c,v 1.41 2019/04/16 06:48:33 msaitoh Exp $	*/
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -76,7 +76,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_media.c,v 1.40 2019/04/10 08:23:46 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_media.c,v 1.41 2019/04/16 06:48:33 msaitoh Exp $");
 
 #include 
 #include 
@@ -89,8 +89,6 @@ __KERNEL_RCSID(0, "$NetBSD: if_media.c,v
 #include 
 #include 
 
-#include 
-
 static void	ifmedia_status(struct ifmedia *, struct ifnet *,
 struct ifmediareq *);
 static int	_ifmedia_ioctl(struct ifnet *, struct ifreq *,
@@ -252,20 +250,11 @@ _ifmedia_ioctl(struct ifnet *ifp, struct
 	struct ifmedia_entry *match;
 	struct ifmediareq *ifmr = (struct ifmediareq *)ifr;
 	int error = 0;
-#ifdef OSIOCSIFMEDIA
-	struct oifreq *oifr = (struct oifreq *)ifr;
-#endif
 
 	if (ifp == NULL || ifr == NULL || ifm == NULL)
 		return (EINVAL);
 
 	switch (cmd) {
-
-#ifdef OSIOCSIFMEDIA
-	case OSIOCSIFMEDIA:
-		ifr->ifr_media = oifr->ifr_media;
-#endif
-		/* FALLTHROUGH */
 	/*
 	 * Set the current media.
 	 */



CVS commit: src/sys/arch/hppa/dev

2019-04-16 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue Apr 16 06:45:04 UTC 2019

Modified Files:
src/sys/arch/hppa/dev: dino.c

Log Message:
Re-arrange dino_softc members to improve alignment


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/hppa/dev/dino.c

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

Modified files:

Index: src/sys/arch/hppa/dev/dino.c
diff -u src/sys/arch/hppa/dev/dino.c:1.3 src/sys/arch/hppa/dev/dino.c:1.4
--- src/sys/arch/hppa/dev/dino.c:1.3	Fri Oct  2 05:22:51 2015
+++ src/sys/arch/hppa/dev/dino.c	Tue Apr 16 06:45:04 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: dino.c,v 1.3 2015/10/02 05:22:51 msaitoh Exp $ */
+/*	$NetBSD: dino.c,v 1.4 2019/04/16 06:45:04 skrll Exp $ */
 
 /*	$OpenBSD: dino.c,v 1.5 2004/02/13 20:39:31 mickey Exp $	*/
 
@@ -29,7 +29,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: dino.c,v 1.3 2015/10/02 05:22:51 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dino.c,v 1.4 2019/04/16 06:45:04 skrll Exp $");
 
 /* #include "cardbus.h" */
 
@@ -121,15 +121,19 @@ struct dino_softc {
 	bus_space_tag_t sc_bt;
 	bus_space_handle_t sc_bh;
 	bus_dma_tag_t sc_dmat;
+
+	struct hppa_bus_dma_tag sc_dmatag;
+	struct hppa_bus_space_tag sc_memt;
+
 	volatile struct dino_regs *sc_regs;
 
 	struct hppa_pci_chipset_tag sc_pc;
 	struct hppa_bus_space_tag sc_iot;
-	char sc_ioexname[20];
+
 	struct extent *sc_ioex;
-	struct hppa_bus_space_tag sc_memt;
 	int sc_memrefcount[30];
-	struct hppa_bus_dma_tag sc_dmatag;
+
+	char sc_ioexname[20];
 };
 
 int	dinomatch(device_t, struct cfdata *, void *);
@@ -1735,6 +1739,5 @@ dinoattach(device_t parent, device_t sel
 static device_t
 dino_callback(device_t self, struct confargs *ca)
 {
-
-	return config_found_sm_loc(self, "dino", NULL, ca, mbprint, mbsubmatch);
+	return config_found_sm_loc(self, "gedoens", NULL, ca, mbprint, mbsubmatch);
 }



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

2019-04-16 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue Apr 16 06:44:17 UTC 2019

Modified Files:
src/sys/arch/hppa/conf: files.hppa

Log Message:
dino depends on gedoens


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/hppa/conf/files.hppa

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

Modified files:

Index: src/sys/arch/hppa/conf/files.hppa
diff -u src/sys/arch/hppa/conf/files.hppa:1.19 src/sys/arch/hppa/conf/files.hppa:1.20
--- src/sys/arch/hppa/conf/files.hppa:1.19	Sat Mar 23 13:05:24 2019
+++ src/sys/arch/hppa/conf/files.hppa	Tue Apr 16 06:44:17 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: files.hppa,v 1.19 2019/03/23 13:05:24 maxv Exp $
+#	$NetBSD: files.hppa,v 1.20 2019/04/16 06:44:17 skrll Exp $
 #
 #	$OpenBSD: files.hppa,v 1.31 2001/06/26 02:41:25 mickey Exp $
 #
@@ -154,7 +154,7 @@ file	arch/hppa/dev/mongoose.c	mongoose
 
 # Dino, GSC-PCI bridge. Includes ps/2, serial, and flying toaster interfaces
 # Cujo is a 64-bit data path Dino
-device	dino { }: pcibus
+device	dino { } : pcibus, gedoens
 attach	dino at gedoens
 file	arch/hppa/dev/dino.c		dino
 



CVS commit: src/external/gpl3/binutils

2019-04-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Apr 16 06:19:54 UTC 2019

Modified Files:
src/external/gpl3/binutils/lib/libbfd/arch/riscv64: bfd.h bfd_stdint.h
bfdver.h config.h defs.mk
src/external/gpl3/binutils/lib/libiberty/arch/riscv64: config.h defs.mk
src/external/gpl3/binutils/lib/libopcodes/arch/riscv64: config.h
src/external/gpl3/binutils/usr.bin/common/arch/riscv64: config.h
defs.mk
src/external/gpl3/binutils/usr.bin/gas/arch/riscv64: config.h
targ-env.h
src/external/gpl3/binutils/usr.bin/gprof/arch/riscv64: defs.mk
gconfig.h
src/external/gpl3/binutils/usr.bin/ld/arch/riscv64: config.h defs.mk

Log Message:
regen for mknative-binutils for riscv64.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/binutils/lib/libbfd/arch/riscv64/bfd.h \
src/external/gpl3/binutils/lib/libbfd/arch/riscv64/bfd_stdint.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/binutils/lib/libbfd/arch/riscv64/bfdver.h \
src/external/gpl3/binutils/lib/libbfd/arch/riscv64/config.h \
src/external/gpl3/binutils/lib/libbfd/arch/riscv64/defs.mk
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/binutils/lib/libiberty/arch/riscv64/config.h \
src/external/gpl3/binutils/lib/libiberty/arch/riscv64/defs.mk
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/binutils/lib/libopcodes/arch/riscv64/config.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/binutils/usr.bin/common/arch/riscv64/config.h \
src/external/gpl3/binutils/usr.bin/common/arch/riscv64/defs.mk
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/binutils/usr.bin/gas/arch/riscv64/config.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/binutils/usr.bin/gas/arch/riscv64/targ-env.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/binutils/usr.bin/gprof/arch/riscv64/defs.mk \
src/external/gpl3/binutils/usr.bin/gprof/arch/riscv64/gconfig.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/binutils/usr.bin/ld/arch/riscv64/config.h \
src/external/gpl3/binutils/usr.bin/ld/arch/riscv64/defs.mk

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

Modified files:

Index: src/external/gpl3/binutils/lib/libbfd/arch/riscv64/bfd.h
diff -u src/external/gpl3/binutils/lib/libbfd/arch/riscv64/bfd.h:1.3 src/external/gpl3/binutils/lib/libbfd/arch/riscv64/bfd.h:1.4
--- src/external/gpl3/binutils/lib/libbfd/arch/riscv64/bfd.h:1.3	Sat Jan 30 01:44:22 2016
+++ src/external/gpl3/binutils/lib/libbfd/arch/riscv64/bfd.h	Tue Apr 16 06:19:54 2019
@@ -1,17 +1,17 @@
 /* This file is automatically generated.  DO NOT EDIT! */
-/* Generated from: NetBSD: mknative-binutils,v 1.9 2013/10/01 15:41:17 skrll Exp  */
-/* Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp  */
+/* Generated from: NetBSD: mknative-binutils,v 1.11 2018/11/08 02:08:35 christos Exp  */
+/* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
 
-/* DO NOT EDIT!  -*- buffer-read-only: t -*-  This file is automatically 
-   generated from "bfd-in.h", "init.c", "opncls.c", "libbfd.c", 
-   "bfdio.c", "bfdwin.c", "section.c", "archures.c", "reloc.c", 
-   "syms.c", "bfd.c", "archive.c", "corefile.c", "targets.c", "format.c", 
+/* DO NOT EDIT!  -*- buffer-read-only: t -*-  This file is automatically
+   generated from "bfd-in.h", "init.c", "opncls.c", "libbfd.c",
+   "bfdio.c", "bfdwin.c", "section.c", "archures.c", "reloc.c",
+   "syms.c", "bfd.c", "archive.c", "corefile.c", "targets.c", "format.c",
"linker.c", "simple.c" and "compress.c".
Run "make headers" in your build bfd/ to regenerate.  */
 
 /* Main header file for the bfd library -- portable access to object files.
 
-   Copyright (C) 1990-2015 Free Software Foundation, Inc.
+   Copyright (C) 1990-2018 Free Software Foundation, Inc.
 
Contributed by Cygnus Support.
 
@@ -45,6 +45,8 @@ extern "C" {
 
 #include "ansidecl.h"
 #include "symcat.h"
+#include "diagnostics.h"
+#include 
 #include 
 
 #if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
@@ -101,6 +103,24 @@ typedef BFD_HOST_64_BIT bfd_int64_t;
 typedef BFD_HOST_U_64_BIT bfd_uint64_t;
 #endif
 
+#ifdef HAVE_INTTYPES_H
+# include 
+#else
+# if BFD_HOST_64BIT_LONG
+#  define BFD_PRI64 "l"
+# elif defined (__MSVCRT__)
+#  define BFD_PRI64 "I64"
+# else
+#  define BFD_PRI64 "ll"
+# endif
+# undef PRId64
+# define PRId64 BFD_PRI64 "d"
+# undef PRIu64
+# define PRIu64 BFD_PRI64 "u"
+# undef PRIx64
+# define PRIx64 BFD_PRI64 "x"
+#endif
+
 #if BFD_ARCH_SIZE >= 64
 #define BFD64
 #endif
@@ -114,7 +134,7 @@ typedef BFD_HOST_U_64_BIT bfd_uint64_t;
 #endif
 
 /* Declaring a type wide enough to hold a host long and a host pointer.  */
-#define BFD_HOSTPTR_T	unsigned long
+#define BFD_HOSTPTR_T unsigned long
 typedef BFD_HOSTPTR_T bfd_hostptr_t;
 
 /* Forward declaration.  */
@@ -257,7 +277,7 @@ carsym;			/* To make 

CVS commit: src/sys/arch/hppa/hppa

2019-04-16 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue Apr 16 06:13:53 UTC 2019

Modified Files:
src/sys/arch/hppa/hppa: trap.S

Log Message:
Whitespace


To generate a diff of this commit:
cvs rdiff -u -r1.70 -r1.71 src/sys/arch/hppa/hppa/trap.S

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

Modified files:

Index: src/sys/arch/hppa/hppa/trap.S
diff -u src/sys/arch/hppa/hppa/trap.S:1.70 src/sys/arch/hppa/hppa/trap.S:1.71
--- src/sys/arch/hppa/hppa/trap.S:1.70	Sun Apr 14 08:23:20 2019
+++ src/sys/arch/hppa/hppa/trap.S	Tue Apr 16 06:13:53 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: trap.S,v 1.70 2019/04/14 08:23:20 skrll Exp $	*/
+/*	$NetBSD: trap.S,v 1.71 2019/04/16 06:13:53 skrll Exp $	*/
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -899,7 +899,7 @@ LEAF_ENTRY_NOPROFILE(TLABEL(emu))
 hppa_fpu_emulate:
 
 	/*
-	 * We have a hardware FPU.  If it is enabled,  branch to emulate the
+	 * We have a hardware FPU.  If it is enabled, branch to emulate the
 	 * instruction.
 	 */
 	mfctl	CR_CCR, %arg0