CVS commit: src/sys

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

Modified Files:
src/sys/rump/include/rump: rump_namei.h
src/sys/sys: namei.h

Log Message:
 Regen.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/rump/include/rump/rump_namei.h
cvs rdiff -u -r1.97 -r1.98 src/sys/sys/namei.h

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



CVS commit: src/sys

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

Modified Files:
src/sys/rump/include/rump: rump_namei.h
src/sys/sys: namei.h

Log Message:
 Regen.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/rump/include/rump/rump_namei.h
cvs rdiff -u -r1.97 -r1.98 src/sys/sys/namei.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/rump/include/rump/rump_namei.h
diff -u src/sys/rump/include/rump/rump_namei.h:1.31 src/sys/rump/include/rump/rump_namei.h:1.32
--- src/sys/rump/include/rump/rump_namei.h:1.31	Tue Mar 21 10:20:38 2017
+++ src/sys/rump/include/rump/rump_namei.h	Mon Jun  3 06:05:39 2019
@@ -1,11 +1,11 @@
-/*	$NetBSD: rump_namei.h,v 1.31 2017/03/21 10:20:38 riastradh Exp $	*/
+/*	$NetBSD: rump_namei.h,v 1.32 2019/06/03 06:05:39 msaitoh Exp $	*/
 
 
 /*
  * WARNING: GENERATED FILE.  DO NOT EDIT
  * (edit namei.src and run make namei in src/sys/sys)
  *   by:   NetBSD: gennameih.awk,v 1.5 2009/12/23 14:17:19 pooka Exp 
- *   from: NetBSD: namei.src,v 1.41 2017/03/21 10:20:12 riastradh Exp 
+ *   from: NetBSD: namei.src,v 1.42 2019/06/03 06:04:21 msaitoh Exp 
  */
 
 #ifndef _RUMP_RUMP_NAMEI_H_

Index: src/sys/sys/namei.h
diff -u src/sys/sys/namei.h:1.97 src/sys/sys/namei.h:1.98
--- src/sys/sys/namei.h:1.97	Tue Mar 21 10:20:38 2017
+++ src/sys/sys/namei.h	Mon Jun  3 06:05:39 2019
@@ -1,11 +1,11 @@
-/*	$NetBSD: namei.h,v 1.97 2017/03/21 10:20:38 riastradh Exp $	*/
+/*	$NetBSD: namei.h,v 1.98 2019/06/03 06:05:39 msaitoh Exp $	*/
 
 
 /*
  * WARNING: GENERATED FILE.  DO NOT EDIT
  * (edit namei.src and run make namei in src/sys/sys)
  *   by:   NetBSD: gennameih.awk,v 1.5 2009/12/23 14:17:19 pooka Exp 
- *   from: NetBSD: namei.src,v 1.41 2017/03/21 10:20:12 riastradh Exp 
+ *   from: NetBSD: namei.src,v 1.42 2019/06/03 06:04:21 msaitoh Exp 
  */
 
 /*
@@ -208,7 +208,7 @@ struct nameidata {
  * Namecache entry.  This structure is arranged so that frequently
  * accessed and mostly read-only data is toward the front, with
  * infrequently accessed data and the lock towards the rear.  The
- * lock is then more likely to be in a seperate cache line.
+ * lock is then more likely to be in a separate cache line.
  *
  * Locking rules:
  *



CVS commit: src

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

Modified Files:
src/share/man/man5: rc.conf.5
src/sys/arch/arm/gemini: obio_wdc.c
src/sys/arch/arm/xscale: ixp425_qmgr.c
src/sys/arch/mips/ralink: ralink_eth.c ralink_gpio.c
src/sys/fs/udf: udf_subr.c
src/sys/kern: uipc_usrreq.c
src/sys/netinet: sctp.h
src/sys/sys: namei.src

Log Message:
 Fix typo in comment (s/seperate/separate/).


To generate a diff of this commit:
cvs rdiff -u -r1.180 -r1.181 src/share/man/man5/rc.conf.5
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/arm/gemini/obio_wdc.c
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/xscale/ixp425_qmgr.c
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/mips/ralink/ralink_eth.c
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/mips/ralink/ralink_gpio.c
cvs rdiff -u -r1.145 -r1.146 src/sys/fs/udf/udf_subr.c
cvs rdiff -u -r1.192 -r1.193 src/sys/kern/uipc_usrreq.c
cvs rdiff -u -r1.2 -r1.3 src/sys/netinet/sctp.h
cvs rdiff -u -r1.41 -r1.42 src/sys/sys/namei.src

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

Modified files:

Index: src/share/man/man5/rc.conf.5
diff -u src/share/man/man5/rc.conf.5:1.180 src/share/man/man5/rc.conf.5:1.181
--- src/share/man/man5/rc.conf.5:1.180	Sat May 11 19:31:03 2019
+++ src/share/man/man5/rc.conf.5	Mon Jun  3 06:04:20 2019
@@ -1,4 +1,4 @@
-.\"	$NetBSD: rc.conf.5,v 1.180 2019/05/11 19:31:03 maxv Exp $
+.\"	$NetBSD: rc.conf.5,v 1.181 2019/06/03 06:04:20 msaitoh Exp $
 .\"
 .\" Copyright (c) 1996 Matthew R. Green
 .\" All rights reserved.
@@ -55,7 +55,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.Dd May 11, 2019
+.Dd June 3, 2019
 .Dt RC.CONF 5
 .Os
 .Sh NAME
@@ -259,7 +259,7 @@ A string.
 Sets search in
 .Pa /etc/resolv.conf .
 .It Sy dns_nameservers
-A string of space seperated domain name servers.
+A string of space separated domain name servers.
 Sets nameserver for each value in
 .Pa /etc/resolv.conf .
 .It Sy dns_sortlist

Index: src/sys/arch/arm/gemini/obio_wdc.c
diff -u src/sys/arch/arm/gemini/obio_wdc.c:1.8 src/sys/arch/arm/gemini/obio_wdc.c:1.9
--- src/sys/arch/arm/gemini/obio_wdc.c:1.8	Fri Oct 20 07:06:06 2017
+++ src/sys/arch/arm/gemini/obio_wdc.c	Mon Jun  3 06:04:20 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: obio_wdc.c,v 1.8 2017/10/20 07:06:06 jdolecek Exp $	*/
+/*	$NetBSD: obio_wdc.c,v 1.9 2019/06/03 06:04:20 msaitoh Exp $	*/
 
 /* adapted from iq31244/wdc_obio.c:
  *	NetBSD: wdc_obio.c,v 1.5 2008/04/28 20:23:16 martin Exp
@@ -34,7 +34,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: obio_wdc.c,v 1.8 2017/10/20 07:06:06 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: obio_wdc.c,v 1.9 2019/06/03 06:04:20 msaitoh Exp $");
 
 #include "locators.h"
 
@@ -92,7 +92,7 @@ wdc_obio_attach(device_t parent, device_
 
 	/*
 	 * we treat the two channels of the Gemini MIDE controller
-	 * as seperate wdc controllers, because they have
+	 * as separate wdc controllers, because they have
 	 * independent interrupts.  'chan' here is an MIDE chanel,
 	 * (not to be confused with ATA channel).
 	 */

Index: src/sys/arch/arm/xscale/ixp425_qmgr.c
diff -u src/sys/arch/arm/xscale/ixp425_qmgr.c:1.7 src/sys/arch/arm/xscale/ixp425_qmgr.c:1.8
--- src/sys/arch/arm/xscale/ixp425_qmgr.c:1.7	Fri Jul  1 20:32:51 2011
+++ src/sys/arch/arm/xscale/ixp425_qmgr.c	Mon Jun  3 06:04:20 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: ixp425_qmgr.c,v 1.7 2011/07/01 20:32:51 dyoung Exp $	*/
+/*	$NetBSD: ixp425_qmgr.c,v 1.8 2019/06/03 06:04:20 msaitoh Exp $	*/
 
 /*-
  * Copyright (c) 2006 Sam Leffler, Errno Consulting
@@ -60,7 +60,7 @@
 */
 #include 
 /*__FBSDID("$FreeBSD: src/sys/arm/xscale/ixp425/ixp425_qmgr.c,v 1.1 2006/11/19 23:55:23 sam Exp $");*/
-__KERNEL_RCSID(0, "$NetBSD: ixp425_qmgr.c,v 1.7 2011/07/01 20:32:51 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ixp425_qmgr.c,v 1.8 2019/06/03 06:04:20 msaitoh Exp $");
 
 /*
  * Intel XScale Queue Manager support.
@@ -792,7 +792,7 @@ ixpqmgr_intr(void *arg)
 		  *
 		  * The search will end when all the bits of the interrupt
 		  * register are cleared. There is no need to maintain
-		  * a seperate value and test it at each iteration.
+		  * a separate value and test it at each iteration.
 		  */
 		 if (intRegVal & sc->lowPriorityTableFirstHalfMask) {
 			 priorityTableIndex = 0;

Index: src/sys/arch/mips/ralink/ralink_eth.c
diff -u src/sys/arch/mips/ralink/ralink_eth.c:1.18 src/sys/arch/mips/ralink/ralink_eth.c:1.19
--- src/sys/arch/mips/ralink/ralink_eth.c:1.18	Wed May 29 14:03:36 2019
+++ src/sys/arch/mips/ralink/ralink_eth.c	Mon Jun  3 06:04:20 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: ralink_eth.c,v 1.18 2019/05/29 14:03:36 msaitoh Exp $	*/
+/*	$NetBSD: ralink_eth.c,v 1.19 2019/06/03 06:04:20 msaitoh Exp $	*/
 /*-
  * Copyright (c) 2011 CradlePoint Technology, Inc.
  * All rights reserved.
@@ -29,7 +29,7 @@
 /* ralink_eth.c -- Ralink Ethernet Driver */
 
 

CVS commit: src

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

Modified Files:
src/share/man/man5: rc.conf.5
src/sys/arch/arm/gemini: obio_wdc.c
src/sys/arch/arm/xscale: ixp425_qmgr.c
src/sys/arch/mips/ralink: ralink_eth.c ralink_gpio.c
src/sys/fs/udf: udf_subr.c
src/sys/kern: uipc_usrreq.c
src/sys/netinet: sctp.h
src/sys/sys: namei.src

Log Message:
 Fix typo in comment (s/seperate/separate/).


To generate a diff of this commit:
cvs rdiff -u -r1.180 -r1.181 src/share/man/man5/rc.conf.5
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/arm/gemini/obio_wdc.c
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/xscale/ixp425_qmgr.c
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/mips/ralink/ralink_eth.c
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/mips/ralink/ralink_gpio.c
cvs rdiff -u -r1.145 -r1.146 src/sys/fs/udf/udf_subr.c
cvs rdiff -u -r1.192 -r1.193 src/sys/kern/uipc_usrreq.c
cvs rdiff -u -r1.2 -r1.3 src/sys/netinet/sctp.h
cvs rdiff -u -r1.41 -r1.42 src/sys/sys/namei.src

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



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/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: hdc922

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

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.



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.


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



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.

Modified files:

Index: src/share/misc/acronyms.comp
diff -u src/share/misc/acronyms.comp:1.254 src/share/misc/acronyms.comp:1.255
--- src/share/misc/acronyms.comp:1.254	Sun Jun  2 19:04:34 2019
+++ src/share/misc/acronyms.comp	Sun Jun  2 20:18:23 2019
@@ -1,4 +1,4 @@
-$NetBSD: acronyms.comp,v 1.254 2019/06/02 19:04:34 sevan Exp $
+$NetBSD: acronyms.comp,v 1.255 2019/06/02 20:18:23 alnsn Exp $
 3WHS	three-way handshake
 8VSB	8-state vestigial side band modulation
 AA	anti-aliasing
@@ -276,6 +276,7 @@ CPL	current privilege level
 CPLD	complex programmable logic device
 CPP	C preprocessor
 CPS	characters per second
+CPS	continuation-passing style
 CPT	command pass through
 CPU	central processing unit
 CR	carriage return



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



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



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: 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/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.

Modified files:

Index: src/distrib/evbarm/gzboot/gzimg/Makefile
diff -u src/distrib/evbarm/gzboot/gzimg/Makefile:1.27 src/distrib/evbarm/gzboot/gzimg/Makefile:1.28
--- src/distrib/evbarm/gzboot/gzimg/Makefile:1.27	Tue Aug  5 15:40:58 2014
+++ src/distrib/evbarm/gzboot/gzimg/Makefile	Sun Jun  2 17:18:57 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.27 2014/08/05 15:40:58 apb Exp $
+#	$NetBSD: Makefile,v 1.28 2019/06/02 17:18:57 thorpej Exp $
 
 .include 
 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
@@ -16,8 +16,20 @@
 #		KERNEL_name	GZBOOT_name	GZIMG_name
 #		RELOC_ADDR	WHICH_kernel
 #	
-.if ${MACHINE_ARCH} == "arm"
-# Little endian platforms.
+.if ${MACHINE_ARCH} == "arm" || \
+${MACHINE_ARCH} == "earm" || ${MACHINE_ARCH} == "earmv4"
+# Little endian ARMv4 platforms.
+ARCH_TARGETS=	GEMINI		GEMINI		GEMINI		\
+		0x0160	netbsd\
+\
+		TS7200		TS7200		TS7200_wd0	\
+		0x6066	netbsd-wd0			\
+\
+		SMDK2800	SMDK2800	SMDK2800	\
+		0x	netbsd
+.elif ${MACHINE_ARCH} == "arm" || \
+  ${MACHINE_ARCH} == "earm" || ${MACHINE_ARCH} == "earmv5"
+# Little endian ARMv5 platforms.
 ARCH_TARGETS=	ADI_BRH		ADI_BRH		ADI_BRH_sd0	\
 		0x0014	netbsd-sd0			\
 \
@@ -30,9 +42,6 @@ ARCH_TARGETS=	ADI_BRH		ADI_BRH		ADI_BRH_
 		CP3100		IQ80321		CP3100_wd0	\
 		0xf008	netbsd-wd0			\
 \
-		GEMINI		GEMINI		GEMINI		\
-		0x0160	netbsd\
-\
 		IQ80310		IQ80310		IQ80310_sd0	\
 		0x0008	netbsd-sd0			\
 \
@@ -46,15 +55,10 @@ ARCH_TARGETS=	ADI_BRH		ADI_BRH		ADI_BRH_
 		0xf008	netbsd-wd0			\
 \
 		TEAMASA_NPWR	IQ80310		TEAMASA_NPWR_sd0 \
-		0x0008	netbsd-sd0			\
-\
-		TS7200		TS7200		TS7200_wd0	\
-		0x6066	netbsd-wd0			\
-\
-		SMDK2800	SMDK2800	SMDK2800	\
-		0x	netbsd
-.elif ${MACHINE_ARCH} == "armeb"
-# Big endian platforms.
+		0x0008	netbsd-sd0
+.elif ${MACHINE_ARCH} == "armeb" || \
+  ${MACHINE_ARCH} == "earmeb" || ${MACHINE_ARCH} == "earmv5eb"
+# Big endian ARMv5 platforms.
 ARCH_TARGETS=	ADI_BRH		ADI_BRH		ADI_BRH_sd0	\
 		0x0014	netbsd-sd0			\
 \



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



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

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: 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: [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: [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.

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/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: [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.