CVS commit: src/sys/dev/pci

2019-06-02 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Jun  3 05:22:57 UTC 2019

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

Log Message:
 I think it's not required to call msk_init_yukon() in msk_attach().
Fixes PR kern/54261 reported by David shao.


To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 src/sys/dev/pci/if_msk.c

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



CVS commit: src/sys/dev/pci

2019-06-02 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Jun  3 05:22:57 UTC 2019

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

Log Message:
 I think it's not required to call msk_init_yukon() in msk_attach().
Fixes PR kern/54261 reported by David shao.


To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 src/sys/dev/pci/if_msk.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/dev/pci/if_msk.c
diff -u src/sys/dev/pci/if_msk.c:1.90 src/sys/dev/pci/if_msk.c:1.91
--- src/sys/dev/pci/if_msk.c:1.90	Tue May 28 07:41:49 2019
+++ src/sys/dev/pci/if_msk.c	Mon Jun  3 05:22:57 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: if_msk.c,v 1.90 2019/05/28 07:41:49 msaitoh Exp $ */
+/* $NetBSD: if_msk.c,v 1.91 2019/06/03 05:22:57 msaitoh Exp $ */
 /*	$OpenBSD: if_msk.c,v 1.79 2009/10/15 17:54:56 deraadt Exp $	*/
 
 /*
@@ -52,7 +52,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_msk.c,v 1.90 2019/05/28 07:41:49 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_msk.c,v 1.91 2019/06/03 05:22:57 msaitoh Exp $");
 
 #include 
 #include 
@@ -1242,8 +1242,6 @@ msk_attach(device_t parent, device_t sel
 	/*
 	 * Do miibus setup.
 	 */
-	msk_init_yukon(sc_if);
-
 	DPRINTFN(2, ("msk_attach: 1\n"));
 
 	mii->mii_ifp = ifp;



CVS commit: src/sys/arch

2019-06-02 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Jun  3 05:59:02 UTC 2019

Modified Files:
src/sys/arch/mips/mips: wired_map.c
src/sys/arch/sun2/sun2: machdep.c
src/sys/arch/sun3/sun3: machdep.c
src/sys/arch/sun3/sun3x: machdep.c
src/sys/arch/vax/vsa: hdc9224.c

Log Message:
 Fix typo in comment(s/similiar/similar/).


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/mips/mips/wired_map.c
cvs rdiff -u -r1.77 -r1.78 src/sys/arch/sun2/sun2/machdep.c
cvs rdiff -u -r1.208 -r1.209 src/sys/arch/sun3/sun3/machdep.c
cvs rdiff -u -r1.135 -r1.136 src/sys/arch/sun3/sun3x/machdep.c
cvs rdiff -u -r1.59 -r1.60 src/sys/arch/vax/vsa/hdc9224.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/mips/mips/wired_map.c
diff -u src/sys/arch/mips/mips/wired_map.c:1.6 src/sys/arch/mips/mips/wired_map.c:1.7
--- src/sys/arch/mips/mips/wired_map.c:1.6	Mon Jul 11 16:15:36 2016
+++ src/sys/arch/mips/mips/wired_map.c	Mon Jun  3 05:59:01 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: wired_map.c,v 1.6 2016/07/11 16:15:36 matt Exp $	*/
+/*	$NetBSD: wired_map.c,v 1.7 2019/06/03 05:59:01 msaitoh Exp $	*/
 
 /*-
  * Copyright (c) 2005 Tadpole Computer Inc.
@@ -57,13 +57,13 @@
  */
 
 /*
- * This code is derived from similiar code in the ARC port of NetBSD, but
+ * This code is derived from similar code in the ARC port of NetBSD, but
  * it now bears little resemblence to it owing to quite different needs
  * from the mapping logic.
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: wired_map.c,v 1.6 2016/07/11 16:15:36 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wired_map.c,v 1.7 2019/06/03 05:59:01 msaitoh Exp $");
 
 #define __PMAP_PRIVATE
 

Index: src/sys/arch/sun2/sun2/machdep.c
diff -u src/sys/arch/sun2/sun2/machdep.c:1.77 src/sys/arch/sun2/sun2/machdep.c:1.78
--- src/sys/arch/sun2/sun2/machdep.c:1.77	Mon Mar 24 18:50:31 2014
+++ src/sys/arch/sun2/sun2/machdep.c	Mon Jun  3 05:59:02 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.77 2014/03/24 18:50:31 christos Exp $	*/
+/*	$NetBSD: machdep.c,v 1.78 2019/06/03 05:59:02 msaitoh Exp $	*/
 
 /*
  * Copyright (c) 1982, 1986, 1990, 1993
@@ -149,7 +149,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.77 2014/03/24 18:50:31 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.78 2019/06/03 05:59:02 msaitoh Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -1150,7 +1150,7 @@ mm_md_direct_mapped_phys(paddr_t paddr, 
 }
 
 /*
- * Allow access to the PROM mapping similiar to uvm_kernacc().
+ * Allow access to the PROM mapping similar to uvm_kernacc().
  */
 int
 mm_md_kernacc(void *ptr, vm_prot_t prot, bool *handled)

Index: src/sys/arch/sun3/sun3/machdep.c
diff -u src/sys/arch/sun3/sun3/machdep.c:1.208 src/sys/arch/sun3/sun3/machdep.c:1.209
--- src/sys/arch/sun3/sun3/machdep.c:1.208	Mon Mar 24 20:06:33 2014
+++ src/sys/arch/sun3/sun3/machdep.c	Mon Jun  3 05:59:02 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.208 2014/03/24 20:06:33 christos Exp $	*/
+/*	$NetBSD: machdep.c,v 1.209 2019/06/03 05:59:02 msaitoh Exp $	*/
 
 /*
  * Copyright (c) 1982, 1986, 1990, 1993
@@ -78,7 +78,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.208 2014/03/24 20:06:33 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.209 2019/06/03 05:59:02 msaitoh Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -708,7 +708,7 @@ mm_md_direct_mapped_phys(paddr_t paddr, 
 }
 
 /*
- * Allow access to the PROM mapping similiar to uvm_kernacc().
+ * Allow access to the PROM mapping similar to uvm_kernacc().
  */
 int
 mm_md_kernacc(void *ptr, vm_prot_t prot, bool *handled)

Index: src/sys/arch/sun3/sun3x/machdep.c
diff -u src/sys/arch/sun3/sun3x/machdep.c:1.135 src/sys/arch/sun3/sun3x/machdep.c:1.136
--- src/sys/arch/sun3/sun3x/machdep.c:1.135	Mon Mar 24 20:06:33 2014
+++ src/sys/arch/sun3/sun3x/machdep.c	Mon Jun  3 05:59:02 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.135 2014/03/24 20:06:33 christos Exp $	*/
+/*	$NetBSD: machdep.c,v 1.136 2019/06/03 05:59:02 msaitoh Exp $	*/
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -38,7 +38,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.135 2014/03/24 20:06:33 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.136 2019/06/03 05:59:02 msaitoh Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -669,7 +669,7 @@ mm_md_direct_mapped_phys(paddr_t paddr, 
 }
 
 /*
- * Allow access to the PROM mapping similiar to uvm_kernacc().
+ * Allow access to the PROM mapping similar to uvm_kernacc().
  */
 int
 mm_md_kernacc(void *ptr, vm_prot_t prot, bool *handled)

Index: src/sys/arch/vax/vsa/hdc9224.c
diff -u src/sys/arch/vax/vsa/hdc9224.c:1.59 src/sys/arch/vax/vsa/hdc9224.c:1.60
--- src/sys/arch/vax/vsa/hdc9224.c:1.59	Mon Sep  3 16:29:28 2018
+++ src/sys/arch/vax/vsa/hdc9224.c	Mon Jun  3 05:59:02 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: 

CVS commit: src/sys/arch

2019-06-02 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Jun  3 05:59:02 UTC 2019

Modified Files:
src/sys/arch/mips/mips: wired_map.c
src/sys/arch/sun2/sun2: machdep.c
src/sys/arch/sun3/sun3: machdep.c
src/sys/arch/sun3/sun3x: machdep.c
src/sys/arch/vax/vsa: hdc9224.c

Log Message:
 Fix typo in comment(s/similiar/similar/).


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/mips/mips/wired_map.c
cvs rdiff -u -r1.77 -r1.78 src/sys/arch/sun2/sun2/machdep.c
cvs rdiff -u -r1.208 -r1.209 src/sys/arch/sun3/sun3/machdep.c
cvs rdiff -u -r1.135 -r1.136 src/sys/arch/sun3/sun3x/machdep.c
cvs rdiff -u -r1.59 -r1.60 src/sys/arch/vax/vsa/hdc9224.c

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



CVS commit: src/share/misc

2019-06-02 Thread Alexander Nasonov
Module Name:src
Committed By:   alnsn
Date:   Sun Jun  2 20:18:23 UTC 2019

Modified Files:
src/share/misc: acronyms.comp

Log Message:
One more CPS.


To generate a diff of this commit:
cvs rdiff -u -r1.254 -r1.255 src/share/misc/acronyms.comp

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



CVS commit: src/share/mk

2019-06-02 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jun  2 21:29:13 UTC 2019

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

Log Message:
minor hack fix for the previous:

MKX11 is used before it was defaulted, leading to eg:

... Malformed conditional (${MKX11} != "no" && ${HAVE_MESA_VER} == "18")

gain knowledge that it defaults to "no" immediately below.
could split this list, but seems uglier.


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

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



CVS commit: src/share/mk

2019-06-02 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jun  2 21:29:13 UTC 2019

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

Log Message:
minor hack fix for the previous:

MKX11 is used before it was defaulted, leading to eg:

... Malformed conditional (${MKX11} != "no" && ${HAVE_MESA_VER} == "18")

gain knowledge that it defaults to "no" immediately below.
could split this list, but seems uglier.


To generate a diff of this commit:
cvs rdiff -u -r1.1144 -r1.1145 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/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.1144 src/share/mk/bsd.own.mk:1.1145
--- src/share/mk/bsd.own.mk:1.1144	Sun Jun  2 11:35:55 2019
+++ src/share/mk/bsd.own.mk	Sun Jun  2 21:29:13 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1144 2019/06/02 11:35:55 mrg Exp $
+#	$NetBSD: bsd.own.mk,v 1.1145 2019/06/02 21:29:13 mrg Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -1157,7 +1157,9 @@ EXTERNAL_MESALIB_DIR?=	MesaLib
 .endif
 
 # Default to LLVM run-time if x86 and X11 and Mesa 18
-.if ${MKX11} != "no" && ${HAVE_MESA_VER} == "18"
+# XXX This knows that MKX11=no is default below, but would
+# require splitting the below loop in two parts.
+.if ${MKX11:Uno} != "no" && ${HAVE_MESA_VER} == "18"
 MKLLVMRT.amd64=		yes
 MKLLVMRT.i386=		yes
 .endif



re: CVS commit: src

2019-06-02 Thread matthew green
> This change seems to have broken postinstall(8) when it is run from the
> command line.
> 
> I'm guessing it is because MKX11 is now used before the _MKVARS section.

should be already fixed.  thanks.


CVS commit: src/sys/rump/librump/rumpkern

2019-06-02 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Sun Jun  2 19:41:51 UTC 2019

Modified Files:
src/sys/rump/librump/rumpkern: emul.c

Log Message:
Apply a patch from hannken@ which adds a weak alias for rump_getcwd_common()
allowing -lrump to be used without -lrumpvfs.

This is an alternate fix to the earluer one which added -lrumvfs to
many rump based tests (and the rump server) which might be undone soon.

This also fixes the sun2 build.


To generate a diff of this commit:
cvs rdiff -u -r1.190 -r1.191 src/sys/rump/librump/rumpkern/emul.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/rump/librump/rumpkern/emul.c
diff -u src/sys/rump/librump/rumpkern/emul.c:1.190 src/sys/rump/librump/rumpkern/emul.c:1.191
--- src/sys/rump/librump/rumpkern/emul.c:1.190	Sat Mar  9 09:02:38 2019
+++ src/sys/rump/librump/rumpkern/emul.c	Sun Jun  2 19:41:51 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: emul.c,v 1.190 2019/03/09 09:02:38 hannken Exp $	*/
+/*	$NetBSD: emul.c,v 1.191 2019/06/02 19:41:51 kre Exp $	*/
 
 /*
  * Copyright (c) 2007-2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.190 2019/03/09 09:02:38 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.191 2019/06/02 19:41:51 kre Exp $");
 
 #include 
 #include 
@@ -256,6 +256,19 @@ void (*delay_func)(unsigned int) = rump_
 __strong_alias(delay,rump_delay);
 __strong_alias(_delay,rump_delay);
 
+/* Weak alias for getcwd_common to be used unless librumpvfs is present. */
+
+int rump_getcwd_common(struct vnode *, struct vnode *, char **, char *,
+int, int, struct lwp *);
+int
+rump_getcwd_common(struct vnode *lvp, struct vnode *rvp, char **bpp, char *bufp,
+int limit, int flags, struct lwp *l)
+{
+
+	return ENOENT;
+}
+__weak_alias(getcwd_common,rump_getcwd_common);
+
 /* Weak aliases for fstrans to be used unless librumpvfs is present. */
 
 void rump_fstrans_start(struct mount *);



CVS commit: src/external/gpl3/gdb/lib/libgdb/arch

2019-06-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jun  2 23:27:21 UTC 2019

Modified Files:
src/external/gpl3/gdb/lib/libgdb/arch/aarch64: config.h
src/external/gpl3/gdb/lib/libgdb/arch/alpha: config.h
src/external/gpl3/gdb/lib/libgdb/arch/arm: config.h
src/external/gpl3/gdb/lib/libgdb/arch/armeb: config.h
src/external/gpl3/gdb/lib/libgdb/arch/hppa: config.h
src/external/gpl3/gdb/lib/libgdb/arch/i386: config.h
src/external/gpl3/gdb/lib/libgdb/arch/m68000: config.h
src/external/gpl3/gdb/lib/libgdb/arch/m68k: config.h defs.mk
src/external/gpl3/gdb/lib/libgdb/arch/mips64eb: config.h
src/external/gpl3/gdb/lib/libgdb/arch/mips64el: config.h
src/external/gpl3/gdb/lib/libgdb/arch/mipseb: config.h
src/external/gpl3/gdb/lib/libgdb/arch/mipsel: config.h
src/external/gpl3/gdb/lib/libgdb/arch/powerpc: config.h
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64: config.h
src/external/gpl3/gdb/lib/libgdb/arch/sh3eb: config.h
src/external/gpl3/gdb/lib/libgdb/arch/sh3el: config.h
src/external/gpl3/gdb/lib/libgdb/arch/sparc: config.h
src/external/gpl3/gdb/lib/libgdb/arch/sparc64: config.h init.c
src/external/gpl3/gdb/lib/libgdb/arch/vax: config.h

Log Message:
regen with forcing libexpat presence.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/config.h
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gdb/lib/libgdb/arch/alpha/config.h
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gdb/lib/libgdb/arch/arm/config.h
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gdb/lib/libgdb/arch/armeb/config.h
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gdb/lib/libgdb/arch/hppa/config.h
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gdb/lib/libgdb/arch/i386/config.h
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gdb/lib/libgdb/arch/m68000/config.h
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gdb/lib/libgdb/arch/m68k/config.h
cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gdb/lib/libgdb/arch/m68k/defs.mk
cvs rdiff -u -r1.14 -r1.15 \
src/external/gpl3/gdb/lib/libgdb/arch/mips64eb/config.h
cvs rdiff -u -r1.14 -r1.15 \
src/external/gpl3/gdb/lib/libgdb/arch/mips64el/config.h
cvs rdiff -u -r1.12 -r1.13 \
src/external/gpl3/gdb/lib/libgdb/arch/mipseb/config.h
cvs rdiff -u -r1.12 -r1.13 \
src/external/gpl3/gdb/lib/libgdb/arch/mipsel/config.h
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc/config.h
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64/config.h
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gdb/lib/libgdb/arch/sh3eb/config.h
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gdb/lib/libgdb/arch/sh3el/config.h
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gdb/lib/libgdb/arch/sparc/config.h
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gdb/lib/libgdb/arch/sparc64/config.h
cvs rdiff -u -r1.12 -r1.13 \
src/external/gpl3/gdb/lib/libgdb/arch/sparc64/init.c
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gdb/lib/libgdb/arch/vax/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/gdb/lib/libgdb/arch/aarch64/config.h
diff -u src/external/gpl3/gdb/lib/libgdb/arch/aarch64/config.h:1.3 src/external/gpl3/gdb/lib/libgdb/arch/aarch64/config.h:1.4
--- src/external/gpl3/gdb/lib/libgdb/arch/aarch64/config.h:1.3	Thu May 30 09:43:03 2019
+++ src/external/gpl3/gdb/lib/libgdb/arch/aarch64/config.h	Sun Jun  2 19:27:19 2019
@@ -234,7 +234,7 @@
 /* #undef HAVE_LIBBABELTRACE */
 
 /* Define if you have the expat library. */
-/* #undef HAVE_LIBEXPAT */
+#define HAVE_LIBEXPAT 1
 
 /* Define to 1 if you have the `libiconvlist' function. */
 /* #undef HAVE_LIBICONVLIST */
@@ -582,7 +582,7 @@
 #define HAVE_WRESIZE 1
 
 /* Define to 1 if you have the `XML_StopParser' function. */
-/* #undef HAVE_XML_STOPPARSER */
+#define HAVE_XML_STOPPARSER 1
 
 /* Define to 1 if your system has the _etext variable. */
 #define HAVE__ETEXT 1

Index: src/external/gpl3/gdb/lib/libgdb/arch/alpha/config.h
diff -u src/external/gpl3/gdb/lib/libgdb/arch/alpha/config.h:1.10 src/external/gpl3/gdb/lib/libgdb/arch/alpha/config.h:1.11
--- src/external/gpl3/gdb/lib/libgdb/arch/alpha/config.h:1.10	Thu May 30 09:54:20 2019
+++ src/external/gpl3/gdb/lib/libgdb/arch/alpha/config.h	Sun Jun  2 19:27:19 2019
@@ -234,7 +234,7 @@
 /* #undef HAVE_LIBBABELTRACE */
 
 /* Define if you have the expat library. */
-/* #undef HAVE_LIBEXPAT */
+#define HAVE_LIBEXPAT 1
 
 /* Define to 1 if you have the `libiconvlist' function. */
 /* #undef HAVE_LIBICONVLIST */
@@ -582,7 +582,7 @@
 #define HAVE_WRESIZE 1
 
 /* Define to 1 if you have the `XML_StopParser' function. */
-/* #undef HAVE_XML_STOPPARSER */
+#define HAVE_XML_STOPPARSER 1
 
 /* Define to 1 if your system has the 

CVS commit: src/external/gpl3/gdb/lib/libgdb/arch

2019-06-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jun  2 23:27:21 UTC 2019

Modified Files:
src/external/gpl3/gdb/lib/libgdb/arch/aarch64: config.h
src/external/gpl3/gdb/lib/libgdb/arch/alpha: config.h
src/external/gpl3/gdb/lib/libgdb/arch/arm: config.h
src/external/gpl3/gdb/lib/libgdb/arch/armeb: config.h
src/external/gpl3/gdb/lib/libgdb/arch/hppa: config.h
src/external/gpl3/gdb/lib/libgdb/arch/i386: config.h
src/external/gpl3/gdb/lib/libgdb/arch/m68000: config.h
src/external/gpl3/gdb/lib/libgdb/arch/m68k: config.h defs.mk
src/external/gpl3/gdb/lib/libgdb/arch/mips64eb: config.h
src/external/gpl3/gdb/lib/libgdb/arch/mips64el: config.h
src/external/gpl3/gdb/lib/libgdb/arch/mipseb: config.h
src/external/gpl3/gdb/lib/libgdb/arch/mipsel: config.h
src/external/gpl3/gdb/lib/libgdb/arch/powerpc: config.h
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64: config.h
src/external/gpl3/gdb/lib/libgdb/arch/sh3eb: config.h
src/external/gpl3/gdb/lib/libgdb/arch/sh3el: config.h
src/external/gpl3/gdb/lib/libgdb/arch/sparc: config.h
src/external/gpl3/gdb/lib/libgdb/arch/sparc64: config.h init.c
src/external/gpl3/gdb/lib/libgdb/arch/vax: config.h

Log Message:
regen with forcing libexpat presence.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/config.h
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gdb/lib/libgdb/arch/alpha/config.h
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gdb/lib/libgdb/arch/arm/config.h
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gdb/lib/libgdb/arch/armeb/config.h
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gdb/lib/libgdb/arch/hppa/config.h
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gdb/lib/libgdb/arch/i386/config.h
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gdb/lib/libgdb/arch/m68000/config.h
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gdb/lib/libgdb/arch/m68k/config.h
cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gdb/lib/libgdb/arch/m68k/defs.mk
cvs rdiff -u -r1.14 -r1.15 \
src/external/gpl3/gdb/lib/libgdb/arch/mips64eb/config.h
cvs rdiff -u -r1.14 -r1.15 \
src/external/gpl3/gdb/lib/libgdb/arch/mips64el/config.h
cvs rdiff -u -r1.12 -r1.13 \
src/external/gpl3/gdb/lib/libgdb/arch/mipseb/config.h
cvs rdiff -u -r1.12 -r1.13 \
src/external/gpl3/gdb/lib/libgdb/arch/mipsel/config.h
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc/config.h
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64/config.h
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gdb/lib/libgdb/arch/sh3eb/config.h
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gdb/lib/libgdb/arch/sh3el/config.h
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gdb/lib/libgdb/arch/sparc/config.h
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gdb/lib/libgdb/arch/sparc64/config.h
cvs rdiff -u -r1.12 -r1.13 \
src/external/gpl3/gdb/lib/libgdb/arch/sparc64/init.c
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gdb/lib/libgdb/arch/vax/config.h

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



CVS commit: src/tools/gdb

2019-06-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jun  2 23:28:32 UTC 2019

Modified Files:
src/tools/gdb: Makefile

Log Message:
force libexpat since the autoconfig test are not cross-compile friendly
(they try to link with /usr/lib/libexpat.so in the compiler invocation).


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/tools/gdb/Makefile

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



CVS commit: src/tools/gdb

2019-06-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jun  2 23:28:32 UTC 2019

Modified Files:
src/tools/gdb: Makefile

Log Message:
force libexpat since the autoconfig test are not cross-compile friendly
(they try to link with /usr/lib/libexpat.so in the compiler invocation).


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/tools/gdb/Makefile

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

Modified files:

Index: src/tools/gdb/Makefile
diff -u src/tools/gdb/Makefile:1.37 src/tools/gdb/Makefile:1.38
--- src/tools/gdb/Makefile:1.37	Sat Jun  1 13:02:59 2019
+++ src/tools/gdb/Makefile	Sun Jun  2 19:28:32 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.37 2019/06/01 17:02:59 christos Exp $
+#	$NetBSD: Makefile,v 1.38 2019/06/02 23:28:32 christos Exp $
 
 .include 
 
@@ -60,6 +60,8 @@ MKNATIVE_CONFIGURE_PRESET= \
 	ac_cv_prog_cc_cross=yes \
 	ac_cv_func_fork_works=yes \
 	ac_cv_func_strcoll_works=yes \
+	ac_cv_func_XML_StopParser=yes \
+	ac_cv_libexpat=yes \
 	bash_cv_func_ctype_nonascii=yes \
 	bash_cv_func_sigsetjmp=present \
 	bash_cv_func_strcoll_broken=no \



CVS commit: src/share/misc

2019-06-02 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Sun Jun  2 19:04:34 UTC 2019

Modified Files:
src/share/misc: acronyms.comp

Log Message:
CSP


To generate a diff of this commit:
cvs rdiff -u -r1.253 -r1.254 src/share/misc/acronyms.comp

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

Modified files:

Index: src/share/misc/acronyms.comp
diff -u src/share/misc/acronyms.comp:1.253 src/share/misc/acronyms.comp:1.254
--- src/share/misc/acronyms.comp:1.253	Tue May 28 22:11:32 2019
+++ src/share/misc/acronyms.comp	Sun Jun  2 19:04:34 2019
@@ -1,4 +1,4 @@
-$NetBSD: acronyms.comp,v 1.253 2019/05/28 22:11:32 sevan Exp $
+$NetBSD: acronyms.comp,v 1.254 2019/06/02 19:04:34 sevan Exp $
 3WHS	three-way handshake
 8VSB	8-state vestigial side band modulation
 AA	anti-aliasing
@@ -294,6 +294,10 @@ CSI	common system interface
 CSMA	carrier sense multiple access
 CSMA/CA	carrier sense multiple access with collision avoidance
 CSMA/CD	carrier sense multiple access with collision detection
+CSP	communicating sequential processes
+CSP	content security policy
+CSP	constrain satisfaction problems
+CSP	cryptographic service provider
 CSR	control [and] status registers
 CSRG	Computer Systems Research Group
 CSS	cascading style sheets



Re: CVS commit: src

2019-06-02 Thread Robert Swindells


"matthew green"  wrote:
>Module Name:src
>Committed By:   mrg
>Date:   Sun Jun  2 11:35:55 UTC 2019
>
>Modified Files:
>src/external/mit/xorg/lib/gallium: Makefile
>src/share/mk: bsd.own.mk
>
>Log Message:
>fix building x86 with X11 but not LLVM:
>
>- change the defaults for MKLLVMRT and MKX11 so we don't have to
>  force-override later.  this makes "build.sh -V MKLLVMRT=no"
>  work to disable building the LLVM Mesa components.
>
>- in gallium, don't BUILD_RADEON if MKLLVMRT is no.
>
>this stops GL from working, but basic X seems OK enough for Xvideo
>to still work on modern radeon (ie, video mostly works fine, though
>eg, "mpv -vo gpu" won't.  use "mpv -vo xv".)

This change seems to have broken postinstall(8) when it is run from the
command line.

I'm guessing it is because MKX11 is now used before the _MKVARS section.


CVS commit: src/etc/etc.evbarm

2019-06-02 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sun Jun  2 17:13:15 UTC 2019

Modified Files:
src/etc/etc.evbarm: Makefile.inc

Log Message:
Include armv4 for "earm", not just "earmv4".


To generate a diff of this commit:
cvs rdiff -u -r1.106 -r1.107 src/etc/etc.evbarm/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/etc/etc.evbarm/Makefile.inc
diff -u src/etc/etc.evbarm/Makefile.inc:1.106 src/etc/etc.evbarm/Makefile.inc:1.107
--- src/etc/etc.evbarm/Makefile.inc:1.106	Sat May 18 07:33:10 2019
+++ src/etc/etc.evbarm/Makefile.inc	Sun Jun  2 17:13:15 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.106 2019/05/18 07:33:10 skrll Exp $
+#	$NetBSD: Makefile.inc,v 1.107 2019/06/02 17:13:15 thorpej Exp $
 #
 #	etc.evbarm/Makefile.inc -- evbarm-specific etc Makefile targets
 #
@@ -136,8 +136,8 @@ __mkimage: .USE
 
 ARCHES.arm=		armv4 xscale armv5t armv6 armv7
 ARCHES.armeb=		armv4 xscale armv5t armv6
-ARCHES.earm=		xscale armv5t armv6 armv7
-ARCHES.earmeb=		xscale armv5t armv6
+ARCHES.earm=		armv4 xscale armv5t armv6 armv7
+ARCHES.earmeb=		armv4 xscale armv5t armv6
 ARCHES.earmhf=		armv6hf armv7hf
 ARCHES.earmhfeb=	armv6hf
 ARCHES.earmv4=		armv4



CVS commit: src/etc/etc.evbarm

2019-06-02 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sun Jun  2 17:13:15 UTC 2019

Modified Files:
src/etc/etc.evbarm: Makefile.inc

Log Message:
Include armv4 for "earm", not just "earmv4".


To generate a diff of this commit:
cvs rdiff -u -r1.106 -r1.107 src/etc/etc.evbarm/Makefile.inc

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



CVS commit: src/distrib/evbarm/gzboot/gzimg

2019-06-02 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sun Jun  2 17:18:57 UTC 2019

Modified Files:
src/distrib/evbarm/gzboot/gzimg: Makefile

Log Message:
Fix building of gzboot images in the EABI MACHINE_ARCH universe.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/distrib/evbarm/gzboot/gzimg/Makefile

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



CVS commit: src/share/misc

2019-06-02 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Sun Jun  2 19:04:34 UTC 2019

Modified Files:
src/share/misc: acronyms.comp

Log Message:
CSP


To generate a diff of this commit:
cvs rdiff -u -r1.253 -r1.254 src/share/misc/acronyms.comp

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



CVS commit: othersrc/libexec/tnftpd

2019-06-02 Thread Luke Mewburn
Module Name:othersrc
Committed By:   lukem
Date:   Sun Jun  2 06:54:55 UTC 2019

Modified Files:
othersrc/libexec/tnftpd: ChangeLog NEWS configure configure.ac

Log Message:
tnftpd 20190602 release

Changes in tnftpd from 20130325 to 20190602:
* Security fixes to avoid resource exhaustion when globbing paths,
  traversing directories, or parsing numbers.
* Support NetBSD blacklistd(8).
* Add -f option to ftpd to stay in foreground with -D.


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 othersrc/libexec/tnftpd/ChangeLog
cvs rdiff -u -r1.13 -r1.14 othersrc/libexec/tnftpd/NEWS
cvs rdiff -u -r1.49 -r1.50 othersrc/libexec/tnftpd/configure
cvs rdiff -u -r1.43 -r1.44 othersrc/libexec/tnftpd/configure.ac

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

Modified files:

Index: othersrc/libexec/tnftpd/ChangeLog
diff -u othersrc/libexec/tnftpd/ChangeLog:1.62 othersrc/libexec/tnftpd/ChangeLog:1.63
--- othersrc/libexec/tnftpd/ChangeLog:1.62	Sun Feb  3 06:25:58 2019
+++ othersrc/libexec/tnftpd/ChangeLog	Sun Jun  2 06:54:55 2019
@@ -1,5 +1,8 @@
-$NetBSD: ChangeLog,v 1.62 2019/02/03 06:25:58 lukem Exp $
+$NetBSD: ChangeLog,v 1.63 2019/06/02 06:54:55 lukem Exp $
 
+Sun Jun  2 05:56:12 UTC 2019	lukem
+
+	* Release as "tnftpd 20190602".
 
 Tue Jan 29 23:12:52 UTC 2019	lukem
 

Index: othersrc/libexec/tnftpd/NEWS
diff -u othersrc/libexec/tnftpd/NEWS:1.13 othersrc/libexec/tnftpd/NEWS:1.14
--- othersrc/libexec/tnftpd/NEWS:1.13	Mon Mar 25 04:29:01 2013
+++ othersrc/libexec/tnftpd/NEWS	Sun Jun  2 06:54:55 2019
@@ -1,6 +1,15 @@
-$NetBSD: NEWS,v 1.13 2013/03/25 04:29:01 lukem Exp $
+$NetBSD: NEWS,v 1.14 2019/06/02 06:54:55 lukem Exp $
 
-This is tnftpd version 20130325.
+This is tnftpd version 20190602.
+
+Changes in tnftpd from 20130325 to 20190602:
+
+	Security fixes to avoid resource exhaustion when globbing paths,
+	traversing directories, or parsing numbers.
+
+	Support NetBSD blacklistd(8).
+
+	Add -f option to ftpd to stay in foreground with -D.
 
 Changes in tnftpd from 20130322 to 20130325:
 

Index: othersrc/libexec/tnftpd/configure
diff -u othersrc/libexec/tnftpd/configure:1.49 othersrc/libexec/tnftpd/configure:1.50
--- othersrc/libexec/tnftpd/configure:1.49	Tue Jan 29 23:21:17 2019
+++ othersrc/libexec/tnftpd/configure	Sun Jun  2 06:54:55 2019
@@ -1,7 +1,7 @@
 #! /bin/sh
 # From configure.ac Revision: 1.43 .
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for tnftpd 20130325.
+# Generated by GNU Autoconf 2.69 for tnftpd 20190602.
 #
 # Report bugs to .
 #
@@ -596,8 +596,8 @@ MAKEFLAGS=
 # Identity of this package.
 PACKAGE_NAME='tnftpd'
 PACKAGE_TARNAME='tnftpd'
-PACKAGE_VERSION='20130325'
-PACKAGE_STRING='tnftpd 20130325'
+PACKAGE_VERSION='20190602'
+PACKAGE_STRING='tnftpd 20190602'
 PACKAGE_BUGREPORT='lu...@netbsd.org'
 PACKAGE_URL=''
 
@@ -1335,7 +1335,7 @@ if test "$ac_init_help" = "long"; then
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures tnftpd 20130325 to adapt to many kinds of systems.
+\`configure' configures tnftpd 20190602 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1405,7 +1405,7 @@ fi
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
- short | recursive ) echo "Configuration of tnftpd 20130325:";;
+ short | recursive ) echo "Configuration of tnftpd 20190602:";;
esac
   cat <<\_ACEOF
 
@@ -1528,7 +1528,7 @@ fi
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-tnftpd configure 20130325
+tnftpd configure 20190602
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2113,7 +2113,7 @@ cat >config.log <<_ACEOF
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by tnftpd $as_me 20130325, which was
+It was created by tnftpd $as_me 20190602, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -3104,7 +3104,7 @@ fi
 
 # Define the identity of the package.
  PACKAGE='tnftpd'
- VERSION='20130325'
+ VERSION='20190602'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -16195,7 +16195,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by tnftpd $as_me 20130325, which was
+This file was extended by tnftpd $as_me 20190602, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES= $CONFIG_FILES
@@ -16261,7 +16261,7 @@ _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_con

CVS commit: othersrc/libexec/tnftpd

2019-06-02 Thread Luke Mewburn
Module Name:othersrc
Committed By:   lukem
Date:   Sun Jun  2 06:54:55 UTC 2019

Modified Files:
othersrc/libexec/tnftpd: ChangeLog NEWS configure configure.ac

Log Message:
tnftpd 20190602 release

Changes in tnftpd from 20130325 to 20190602:
* Security fixes to avoid resource exhaustion when globbing paths,
  traversing directories, or parsing numbers.
* Support NetBSD blacklistd(8).
* Add -f option to ftpd to stay in foreground with -D.


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 othersrc/libexec/tnftpd/ChangeLog
cvs rdiff -u -r1.13 -r1.14 othersrc/libexec/tnftpd/NEWS
cvs rdiff -u -r1.49 -r1.50 othersrc/libexec/tnftpd/configure
cvs rdiff -u -r1.43 -r1.44 othersrc/libexec/tnftpd/configure.ac

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



CVS commit: [netbsd-8] src/sys/arch/x86/x86

2019-06-02 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Jun  2 08:29:30 UTC 2019

Modified Files:
src/sys/arch/x86/x86 [netbsd-8]: spectre.c

Log Message:
Pull up following revision(s) (requested by maxv in ticket #1279):

sys/arch/x86/x86/spectre.c: revision 1.29

Mmh, check the highest leaf before calling x86_cpuid(), otherwise on old
CPUs we might be getting garbage. While here fix a typo.

Likely fixes PR/54256.


To generate a diff of this commit:
cvs rdiff -u -r1.19.2.3 -r1.19.2.4 src/sys/arch/x86/x86/spectre.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/x86/x86/spectre.c
diff -u src/sys/arch/x86/x86/spectre.c:1.19.2.3 src/sys/arch/x86/x86/spectre.c:1.19.2.4
--- src/sys/arch/x86/x86/spectre.c:1.19.2.3	Tue May 14 17:12:19 2019
+++ src/sys/arch/x86/x86/spectre.c	Sun Jun  2 08:29:30 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: spectre.c,v 1.19.2.3 2019/05/14 17:12:19 martin Exp $	*/
+/*	$NetBSD: spectre.c,v 1.19.2.4 2019/06/02 08:29:30 martin Exp $	*/
 
 /*
  * Copyright (c) 2018 NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: spectre.c,v 1.19.2.3 2019/05/14 17:12:19 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spectre.c,v 1.19.2.4 2019/06/02 08:29:30 martin Exp $");
 
 #include "opt_spectre.h"
 
@@ -552,6 +552,10 @@ mds_detect_method(void)
 		return;
 	}
 
+	if (cpuid_level < 7) {
+		return;
+	}
+
 	x86_cpuid(0x7, descs);
 	if (descs[3] & CPUID_SEF_ARCH_CAP) {
 		msr = rdmsr(MSR_IA32_ARCH_CAPABILITIES);
@@ -688,7 +692,7 @@ cpu_speculation_init(struct cpu_info *ci
 #endif
 
 	/*
-	 * Microarchectural Data Sampling.
+	 * Microarchitectural Data Sampling.
 	 *
 	 * cpu0 is the one that detects the method and sets the global
 	 * variable.



CVS commit: [netbsd-8] src/doc

2019-06-02 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Jun  2 08:30:16 UTC 2019

Modified Files:
src/doc [netbsd-8]: CHANGES-8.2

Log Message:
Ticket #1279


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.1 -r1.1.2.2 src/doc/CHANGES-8.2

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



CVS commit: [netbsd-8] src/sys/arch/x86/x86

2019-06-02 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Jun  2 08:29:30 UTC 2019

Modified Files:
src/sys/arch/x86/x86 [netbsd-8]: spectre.c

Log Message:
Pull up following revision(s) (requested by maxv in ticket #1279):

sys/arch/x86/x86/spectre.c: revision 1.29

Mmh, check the highest leaf before calling x86_cpuid(), otherwise on old
CPUs we might be getting garbage. While here fix a typo.

Likely fixes PR/54256.


To generate a diff of this commit:
cvs rdiff -u -r1.19.2.3 -r1.19.2.4 src/sys/arch/x86/x86/spectre.c

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



CVS commit: src/sys/dev/pckbport

2019-06-02 Thread Brett Lymn
Module Name:src
Committed By:   blymn
Date:   Sun Jun  2 08:55:00 UTC 2019

Modified Files:
src/sys/dev/pckbport: synaptics.c synapticsreg.h synapticsvar.h

Log Message:
Changes based on code from an anonymous contributor.  This should make
trackpads work for Thinkpads.  Also adds code to handle externally
connected buttons (synaptics parlance), the first five are mapped to
mouse buttons 1-5.  The rest are currently not reported but could be
decoded if required.


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/dev/pckbport/synaptics.c
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/pckbport/synapticsreg.h
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/pckbport/synapticsvar.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/dev/pckbport/synaptics.c
diff -u src/sys/dev/pckbport/synaptics.c:1.48 src/sys/dev/pckbport/synaptics.c:1.49
--- src/sys/dev/pckbport/synaptics.c:1.48	Mon Apr 22 00:53:59 2019
+++ src/sys/dev/pckbport/synaptics.c	Sun Jun  2 08:55:00 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: synaptics.c,v 1.48 2019/04/22 00:53:59 blymn Exp $	*/
+/*	$NetBSD: synaptics.c,v 1.49 2019/06/02 08:55:00 blymn Exp $	*/
 
 /*
  * Copyright (c) 2005, Steve C. Woodford
@@ -48,7 +48,7 @@
 #include "opt_pms.h"
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: synaptics.c,v 1.48 2019/04/22 00:53:59 blymn Exp $");
+__KERNEL_RCSID(0, "$NetBSD: synaptics.c,v 1.49 2019/06/02 08:55:00 blymn Exp $");
 
 #include 
 #include 
@@ -321,6 +321,9 @@ pms_synaptics_probe_extended(struct pms_
 /* unreached */
 break;
 			}
+
+			if ((val & SYN_CCAP_HAS_ADV_GESTURE_MODE))
+sc->flags |= SYN_FLAG_HAS_ADV_GESTURE_MODE;
 		}
 	}
 }
@@ -477,7 +480,8 @@ pms_synaptics_enable(void *vsc)
 		synaptics_poll_cmd(psc, PMS_SET_SCALE11, 0);
 
 	/* Set advanced gesture mode */
-	if (sc->flags & SYN_FLAG_HAS_EXTENDED_WMODE)
+	if ((sc->flags & SYN_FLAG_HAS_EXTENDED_WMODE) ||
+	(sc->flags & SYN_FLAG_HAS_ADV_GESTURE_MODE))
 		synaptics_special_write(psc, SYNAPTICS_WRITE_DELUXE_3, 0x3); 
 
 	synaptics_poll_cmd(psc, PMS_DEV_ENABLE, 0);
@@ -990,9 +994,33 @@ pms_synaptics_parse(struct pms_softc *ps
 		/* Pressure */
 		sp.sp_z = psc->packet[2];
 
-		/* Left/Right button handling. */
-		sp.sp_left = psc->packet[0] & PMS_LBUTMASK;
-		sp.sp_right = psc->packet[0] & PMS_RBUTMASK;
+		if ((psc->packet[0] ^ psc->packet[3]) & 0x02) {
+			/* extended buttons */
+
+			aprint_debug_dev(psc->sc_dev,
+			"synaptics_parse: %02x %02x %02x %02x %02x %02x\n",
+			psc->packet[0], psc->packet[1], psc->packet[2],
+			psc->packet[3], psc->packet[4], psc->packet[5]);
+
+			if ((psc->packet[4] & SYN_1BUTMASK) != 0)
+sp.sp_left = PMS_LBUTMASK;
+
+			if ((psc->packet[4] & SYN_3BUTMASK) != 0)
+sp.sp_middle = PMS_MBUTMASK;
+
+			if ((psc->packet[5] & SYN_2BUTMASK) != 0)
+sp.sp_right = PMS_RBUTMASK;
+
+			if ((psc->packet[5] & SYN_4BUTMASK) != 0)
+sp.sp_up = 1;
+
+			if ((psc->packet[4] & SYN_5BUTMASK) != 0)
+sp.sp_down = 1;
+		} else {
+			/* Left/Right button handling. */
+			sp.sp_left = psc->packet[0] & PMS_LBUTMASK;
+			sp.sp_right = psc->packet[0] & PMS_RBUTMASK;
+		}
 
 		/* Up/Down buttons. */
 		if (sc->flags & SYN_FLAG_HAS_BUTTONS_4_5) {

Index: src/sys/dev/pckbport/synapticsreg.h
diff -u src/sys/dev/pckbport/synapticsreg.h:1.11 src/sys/dev/pckbport/synapticsreg.h:1.12
--- src/sys/dev/pckbport/synapticsreg.h:1.11	Mon Apr 22 00:53:59 2019
+++ src/sys/dev/pckbport/synapticsreg.h	Sun Jun  2 08:55:00 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: synapticsreg.h,v 1.11 2019/04/22 00:53:59 blymn Exp $	*/
+/*	$NetBSD: synapticsreg.h,v 1.12 2019/06/02 08:55:00 blymn Exp $	*/
 
 /*
  * Copyright (c) 2005, Steve C. Woodford
@@ -101,6 +101,12 @@
 /* Extended mode button masks. */
 #define	SYN_1BUTMASK			0x1
 #define	SYN_2BUTMASK			0x1
+#define	SYN_3BUTMASK			0x2
+#define	SYN_4BUTMASK			0x2
+#define	SYN_5BUTMASK			0x4
+#define	SYN_6BUTMASK			0x4
+#define	SYN_7BUTMASK			0x8
+#define	SYN_8BUTMASK			0x8
 
 /* Touchpad edge boundaries (Recommended values from Synaptics documentation) */
 #define	SYNAPTICS_EDGE_LEFT		1632

Index: src/sys/dev/pckbport/synapticsvar.h
diff -u src/sys/dev/pckbport/synapticsvar.h:1.8 src/sys/dev/pckbport/synapticsvar.h:1.9
--- src/sys/dev/pckbport/synapticsvar.h:1.8	Tue Nov  6 09:13:17 2018
+++ src/sys/dev/pckbport/synapticsvar.h	Sun Jun  2 08:55:00 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: synapticsvar.h,v 1.8 2018/11/06 09:13:17 blymn Exp $	*/
+/*	$NetBSD: synapticsvar.h,v 1.9 2019/06/02 08:55:00 blymn Exp $	*/
 
 /*
  * Copyright (c) 2005, Steve C. Woodford
@@ -54,6 +54,7 @@ struct synaptics_softc {
 #define	SYN_FLAG_HAS_ONE_BUTTON_CLICKPAD	(1 << 9)
 #define	SYN_FLAG_HAS_TWO_BUTTON_CLICKPAD	(1 << 10)
 #define	SYN_FLAG_HAS_EXTENDED_WMODE		(1 << 11)
+#define	SYN_FLAG_HAS_ADV_GESTURE_MODE		(1 << 12)
 
 	u_int	total_packets[2];	/* Total number of packets received */
 #define	SYN_TIME(sc,c,n)	(((sc)->total_packets[(n)] >= (c)) ?	\



CVS commit: src/sys/dev/pckbport

2019-06-02 Thread Brett Lymn
Module Name:src
Committed By:   blymn
Date:   Sun Jun  2 08:55:00 UTC 2019

Modified Files:
src/sys/dev/pckbport: synaptics.c synapticsreg.h synapticsvar.h

Log Message:
Changes based on code from an anonymous contributor.  This should make
trackpads work for Thinkpads.  Also adds code to handle externally
connected buttons (synaptics parlance), the first five are mapped to
mouse buttons 1-5.  The rest are currently not reported but could be
decoded if required.


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/dev/pckbport/synaptics.c
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/pckbport/synapticsreg.h
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/pckbport/synapticsvar.h

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



CVS commit: src/sys/ddb

2019-06-02 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jun  2 06:09:17 UTC 2019

Modified Files:
src/sys/ddb: db_interface.h

Log Message:
add two db_stack_print_trace frontends that emit to the system log
or the user's terminal.

kind of wrong to be called db_*() when they'll typically be used
outside of ddb itself, but db_stacktrace() itself is no different.
fix this by making the stack trace support separate from ddb?


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sys/ddb/db_interface.h

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



CVS commit: src/sys/ddb

2019-06-02 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jun  2 06:09:17 UTC 2019

Modified Files:
src/sys/ddb: db_interface.h

Log Message:
add two db_stack_print_trace frontends that emit to the system log
or the user's terminal.

kind of wrong to be called db_*() when they'll typically be used
outside of ddb itself, but db_stacktrace() itself is no different.
fix this by making the stack trace support separate from ddb?


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sys/ddb/db_interface.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/ddb/db_interface.h
diff -u src/sys/ddb/db_interface.h:1.36 src/sys/ddb/db_interface.h:1.37
--- src/sys/ddb/db_interface.h:1.36	Sun Mar  4 07:14:50 2018
+++ src/sys/ddb/db_interface.h	Sun Jun  2 06:09:17 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: db_interface.h,v 1.36 2018/03/04 07:14:50 mlelstv Exp $	*/
+/*	$NetBSD: db_interface.h,v 1.37 2019/06/02 06:09:17 mrg Exp $	*/
 
 /*-
  * Copyright (c) 1995 The NetBSD Foundation, Inc.
@@ -84,4 +84,12 @@ void		db_show_disk(db_expr_t, bool, db_e
 db_stack_trace_print((db_expr_t)(intptr_t)__builtin_frame_address(0), \
 	true, 65535, "", printf)
 
+#define	db_ustacktrace() \
+db_stack_trace_print((db_expr_t)(intptr_t)__builtin_frame_address(0), \
+	true, 65535, "", uprintf)
+
+#define	db_lstacktrace() \
+db_stack_trace_print((db_expr_t)(intptr_t)__builtin_frame_address(0), \
+	true, 65535, "", addlog)
+
 #endif /* _DDB_DB_INTERFACE_H_ */



CVS commit: [netbsd-8] src/doc

2019-06-02 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Jun  2 08:30:16 UTC 2019

Modified Files:
src/doc [netbsd-8]: CHANGES-8.2

Log Message:
Ticket #1279


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.1 -r1.1.2.2 src/doc/CHANGES-8.2

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-8.2
diff -u src/doc/CHANGES-8.2:1.1.2.1 src/doc/CHANGES-8.2:1.1.2.2
--- src/doc/CHANGES-8.2:1.1.2.1	Sun Jun  2 08:27:40 2019
+++ src/doc/CHANGES-8.2	Sun Jun  2 08:30:16 2019
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-8.2,v 1.1.2.1 2019/06/02 08:27:40 martin Exp $
+# $NetBSD: CHANGES-8.2,v 1.1.2.2 2019/06/02 08:30:16 martin Exp $
 
 A complete list of changes from the NetBSD 8.1 release to the NetBSD 8.2
 release:
@@ -9,3 +9,8 @@ sys/sys/param.h	patched by hand
 	Welcome to 8.1_STABLE.
 	[snj]
 
+sys/arch/x86/x86/spectre.c			1.29
+
+	Fix boot on old CPUs.
+	[maxv, ticket #1279]
+



CVS commit: src

2019-06-02 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jun  2 11:35:55 UTC 2019

Modified Files:
src/external/mit/xorg/lib/gallium: Makefile
src/share/mk: bsd.own.mk

Log Message:
fix building x86 with X11 but not LLVM:

- change the defaults for MKLLVMRT and MKX11 so we don't have to
  force-override later.  this makes "build.sh -V MKLLVMRT=no"
  work to disable building the LLVM Mesa components.

- in gallium, don't BUILD_RADEON if MKLLVMRT is no.

this stops GL from working, but basic X seems OK enough for Xvideo
to still work on modern radeon (ie, video mostly works fine, though
eg, "mpv -vo gpu" won't.  use "mpv -vo xv".)


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/external/mit/xorg/lib/gallium/Makefile
cvs rdiff -u -r1.1143 -r1.1144 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/external/mit/xorg/lib/gallium/Makefile
diff -u src/external/mit/xorg/lib/gallium/Makefile:1.28 src/external/mit/xorg/lib/gallium/Makefile:1.29
--- src/external/mit/xorg/lib/gallium/Makefile:1.28	Thu May 30 23:15:46 2019
+++ src/external/mit/xorg/lib/gallium/Makefile	Sun Jun  2 11:35:55 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.28 2019/05/30 23:15:46 maya Exp $
+# $NetBSD: Makefile,v 1.29 2019/06/02 11:35:55 mrg Exp $
 
 # Link the gallium mega driver.
 
@@ -89,9 +89,9 @@ BUILD_VDPAU=0
 BUILD_LLVMPIPE=0
 BUILD_I915=0
 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
-BUILD_RADEON=1
 BUILD_I915=1
 .if ${MKLLVMRT} != "no"
+BUILD_RADEON=1
 BUILD_LLVMPIPE=1
 .endif
 .endif

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.1143 src/share/mk/bsd.own.mk:1.1144
--- src/share/mk/bsd.own.mk:1.1143	Thu May 30 21:33:57 2019
+++ src/share/mk/bsd.own.mk	Sun Jun  2 11:35:55 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1143 2019/05/30 21:33:57 christos Exp $
+#	$NetBSD: bsd.own.mk,v 1.1144 2019/06/02 11:35:55 mrg Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -1148,6 +1148,20 @@ MKRADEONFIRMWARE.i386=		yes
 # Only install the tegra firmware on evbarm.
 MKTEGRAFIRMWARE.evbarm=		yes
 
+# MesaLib.old and MesaLib7 go together, and MesaLib is alone.
+HAVE_MESA_VER?=	18
+.if ${HAVE_MESA_VER} == "10"
+EXTERNAL_MESALIB_DIR?=	MesaLib.old
+.elif ${HAVE_MESA_VER} == "18"
+EXTERNAL_MESALIB_DIR?=	MesaLib
+.endif
+
+# Default to LLVM run-time if x86 and X11 and Mesa 18
+.if ${MKX11} != "no" && ${HAVE_MESA_VER} == "18"
+MKLLVMRT.amd64=		yes
+MKLLVMRT.i386=		yes
+.endif
+
 #
 # MK* options which default to "no".  Note that MKZFS has a different
 # default for some platforms, see above.  Please keep alphabetically
@@ -1281,18 +1295,6 @@ _NEEDS_LIBCXX.x86_64=		yes
 MKLIBCXX:=	yes
 .endif
 
-# MesaLib.old and MesaLib7 go together, and MesaLib is alone.
-HAVE_MESA_VER?=	18
-.if ${HAVE_MESA_VER} == "10"
-EXTERNAL_MESALIB_DIR?=	MesaLib.old
-.elif ${HAVE_MESA_VER} == "18"
-EXTERNAL_MESALIB_DIR?=	MesaLib
-.  if ${MKX11} != "no" && \
-(${MACHINE} == "amd64" || ${MACHINE} == "i386")
-MKLLVMRT:=		yes
-.  endif
-.endif
-
 #
 # install(1) parameters.
 #



CVS commit: src

2019-06-02 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jun  2 11:35:55 UTC 2019

Modified Files:
src/external/mit/xorg/lib/gallium: Makefile
src/share/mk: bsd.own.mk

Log Message:
fix building x86 with X11 but not LLVM:

- change the defaults for MKLLVMRT and MKX11 so we don't have to
  force-override later.  this makes "build.sh -V MKLLVMRT=no"
  work to disable building the LLVM Mesa components.

- in gallium, don't BUILD_RADEON if MKLLVMRT is no.

this stops GL from working, but basic X seems OK enough for Xvideo
to still work on modern radeon (ie, video mostly works fine, though
eg, "mpv -vo gpu" won't.  use "mpv -vo xv".)


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/external/mit/xorg/lib/gallium/Makefile
cvs rdiff -u -r1.1143 -r1.1144 src/share/mk/bsd.own.mk

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



CVS commit: [netbsd-8] src

2019-06-02 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Jun  2 08:27:40 UTC 2019

Modified Files:
src/external/gpl2/groff/tmac [netbsd-8]: mdoc.local
Added Files:
src/doc [netbsd-8]: CHANGES-8.2

Log Message:
Welcom to 8.1_STABLE


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1.2.1 src/doc/CHANGES-8.2
cvs rdiff -u -r1.2.4.4 -r1.2.4.5 src/external/gpl2/groff/tmac/mdoc.local

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



CVS commit: [netbsd-8] src

2019-06-02 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Jun  2 08:27:40 UTC 2019

Modified Files:
src/external/gpl2/groff/tmac [netbsd-8]: mdoc.local
Added Files:
src/doc [netbsd-8]: CHANGES-8.2

Log Message:
Welcom to 8.1_STABLE


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1.2.1 src/doc/CHANGES-8.2
cvs rdiff -u -r1.2.4.4 -r1.2.4.5 src/external/gpl2/groff/tmac/mdoc.local

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

Modified files:

Index: src/external/gpl2/groff/tmac/mdoc.local
diff -u src/external/gpl2/groff/tmac/mdoc.local:1.2.4.4 src/external/gpl2/groff/tmac/mdoc.local:1.2.4.5
--- src/external/gpl2/groff/tmac/mdoc.local:1.2.4.4	Fri May 31 08:40:57 2019
+++ src/external/gpl2/groff/tmac/mdoc.local	Sun Jun  2 08:27:40 2019
@@ -1,4 +1,4 @@
-.\" $NetBSD: mdoc.local,v 1.2.4.4 2019/05/31 08:40:57 martin Exp $
+.\" $NetBSD: mdoc.local,v 1.2.4.5 2019/06/02 08:27:40 martin Exp $
 .\"
 .\" Copyright (c) 2003, 2004 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -44,9 +44,9 @@
 .as doc-str-St--ieee1275-94 " (\*[Lq]\*[doc-Tn-font-size]Open Firmware\*[doc-str-St]\*[Rq])
 .
 .\" Default .Os value
-.ds doc-operating-system NetBSD\~8.1
+.ds doc-operating-system NetBSD\~8.1_STABLE
 .\" Default footer operating system value
-.ds doc-default-operating-system NetBSD\~8.1
+.ds doc-default-operating-system NetBSD\~8.1_STABLE
 .\" Other known versions, not yet in groff distribution
 .ds doc-operating-system-NetBSD-1.3.3  1.3.3
 .ds doc-operating-system-NetBSD-1.6.3  1.6.3

Added files:

Index: src/doc/CHANGES-8.2
diff -u /dev/null src/doc/CHANGES-8.2:1.1.2.1
--- /dev/null	Sun Jun  2 08:27:40 2019
+++ src/doc/CHANGES-8.2	Sun Jun  2 08:27:40 2019
@@ -0,0 +1,11 @@
+# $NetBSD: CHANGES-8.2,v 1.1.2.1 2019/06/02 08:27:40 martin Exp $
+
+A complete list of changes from the NetBSD 8.1 release to the NetBSD 8.2
+release:
+
+external/gpl2/groff/tmac/mdoc.local		patched by hand
+sys/sys/param.h	patched by hand
+
+	Welcome to 8.1_STABLE.
+	[snj]
+



CVS commit: [netbsd-8] src/sys/sys

2019-06-02 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Jun  2 08:25:25 UTC 2019

Modified Files:
src/sys/sys [netbsd-8]: param.h

Log Message:
Welcome to 8.1_STABLE


To generate a diff of this commit:
cvs rdiff -u -r1.542.2.7 -r1.542.2.8 src/sys/sys/param.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/sys/param.h
diff -u src/sys/sys/param.h:1.542.2.7 src/sys/sys/param.h:1.542.2.8
--- src/sys/sys/param.h:1.542.2.7	Fri May 31 08:43:59 2019
+++ src/sys/sys/param.h	Sun Jun  2 08:25:25 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: param.h,v 1.542.2.7 2019/05/31 08:43:59 martin Exp $	*/
+/*	$NetBSD: param.h,v 1.542.2.8 2019/06/02 08:25:25 martin Exp $	*/
 
 /*-
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -67,7 +67,7 @@
  *	2.99.9		(299000900)
  */
 
-#define	__NetBSD_Version__	80100	/* NetBSD 8.1 */
+#define	__NetBSD_Version__	80100	/* NetBSD 8.1_STABLE */
 
 #define __NetBSD_Prereq__(M,m,p) (M) * 1) + \
 (m) * 100) + (p) * 100) <= __NetBSD_Version__)



CVS commit: [netbsd-8] src/sys/sys

2019-06-02 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Jun  2 08:25:25 UTC 2019

Modified Files:
src/sys/sys [netbsd-8]: param.h

Log Message:
Welcome to 8.1_STABLE


To generate a diff of this commit:
cvs rdiff -u -r1.542.2.7 -r1.542.2.8 src/sys/sys/param.h

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



CVS commit: src/sys/dev/pci

2019-06-02 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Jun  2 14:48:55 UTC 2019

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

Log Message:
updated patch from Andrius - update the chip map for CX700 to use
via_sata_chip_map_new, this seems to eliminate the ghost non-existing viaide1

XXX guess should use via_sata_chip_map_new for PCI_PRODUCT_VIATECH_CX700M2_IDE
XXX too, but this needs test on real hw

remove again the entries for VX800 and VX855 from pciide_via_products[],
as that part is untested with real hw

update for PR kern/43309


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/sys/dev/pci/viaide.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/dev/pci/viaide.c
diff -u src/sys/dev/pci/viaide.c:1.88 src/sys/dev/pci/viaide.c:1.89
--- src/sys/dev/pci/viaide.c:1.88	Sat Jun  1 08:20:14 2019
+++ src/sys/dev/pci/viaide.c	Sun Jun  2 14:48:55 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: viaide.c,v 1.88 2019/06/01 08:20:14 jdolecek Exp $	*/
+/*	$NetBSD: viaide.c,v 1.89 2019/06/02 14:48:55 jdolecek Exp $	*/
 
 /*
  * Copyright (c) 1999, 2000, 2001 Manuel Bouyer.
@@ -26,7 +26,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: viaide.c,v 1.88 2019/06/01 08:20:14 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: viaide.c,v 1.89 2019/06/02 14:48:55 jdolecek Exp $");
 
 #include 
 #include 
@@ -302,23 +302,13 @@ static const struct pciide_product_desc 
 	{ PCI_PRODUCT_VIATECH_CX700_IDE,
 	  0,
 	  NULL,
-	  via_chip_map,
+	  via_sata_chip_map_new,
 	},
 	{ PCI_PRODUCT_VIATECH_CX700M2_IDE,
 	  0,
 	  NULL,
 	  via_chip_map,
 	},
-	{ PCI_PRODUCT_VIATECH_VX800,
-	  0,
-	  "VIA Technologies VX800 SATA Controller",
-	  via_sata_chip_map_new,
-	},
-	{ PCI_PRODUCT_VIATECH_VX855,
-	  0,
-	  NULL,
-	  via_sata_chip_map_new,
-	},
 	{ PCI_PRODUCT_VIATECH_VX900_IDE,
 	  0,
 	  NULL,



CVS commit: src/sys/dev/pci

2019-06-02 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Jun  2 14:48:55 UTC 2019

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

Log Message:
updated patch from Andrius - update the chip map for CX700 to use
via_sata_chip_map_new, this seems to eliminate the ghost non-existing viaide1

XXX guess should use via_sata_chip_map_new for PCI_PRODUCT_VIATECH_CX700M2_IDE
XXX too, but this needs test on real hw

remove again the entries for VX800 and VX855 from pciide_via_products[],
as that part is untested with real hw

update for PR kern/43309


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/sys/dev/pci/viaide.c

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



CVS commit: src/external/gpl3/gdb/dist/sim/common

2019-06-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jun  2 16:07:58 UTC 2019

Added Files:
src/external/gpl3/gdb/dist/sim/common: create-version.sh

Log Message:
put back script deleted during merge.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.3 \
src/external/gpl3/gdb/dist/sim/common/create-version.sh

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

Added files:

Index: src/external/gpl3/gdb/dist/sim/common/create-version.sh
diff -u /dev/null src/external/gpl3/gdb/dist/sim/common/create-version.sh:1.3
--- /dev/null	Sun Jun  2 12:07:58 2019
+++ src/external/gpl3/gdb/dist/sim/common/create-version.sh	Sun Jun  2 12:07:58 2019
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+# Copyright (C) 1989-2019 Free Software Foundation, Inc.
+
+# This file is part of GDB.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see .
+
+# Create version.c from version.in.
+# Usage:
+#create-version.sh PATH-TO-GDB-SRCDIR HOST_ALIAS \
+#TARGET_ALIAS OUTPUT-FILE-NAME
+
+srcdir="$1"
+host_alias="$2"
+target_alias="$3"
+output="$4"
+
+rm -f version.c-tmp $output version.tmp
+date=`sed -n -e 's/^.* BFD_VERSION_DATE \(.*\)$/\1/p' $srcdir/../bfd/version.h`
+sed -e "s/DATE/$date/" < $srcdir/version.in > version.tmp
+echo '#include "version.h"' >> version.c-tmp
+echo 'const char version[] = "'"`sed q version.tmp`"'";' >> version.c-tmp
+echo 'const char host_name[] = "'"$host_alias"'";' >> version.c-tmp
+echo 'const char target_name[] = "'"$target_alias"'";' >> version.c-tmp
+mv version.c-tmp $output
+rm -f version.tmp



CVS commit: src/external/gpl3/gdb/dist/sim/common

2019-06-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jun  2 16:07:58 UTC 2019

Added Files:
src/external/gpl3/gdb/dist/sim/common: create-version.sh

Log Message:
put back script deleted during merge.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.3 \
src/external/gpl3/gdb/dist/sim/common/create-version.sh

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