CVS commit: src/sys/dev/ic

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue May 28 07:07:00 UTC 2019

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

Log Message:
 Modify to use athn_set_multi().


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/ic/athn.c

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



CVS commit: src/sys/dev/ic

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue May 28 07:07:00 UTC 2019

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

Log Message:
 Modify to use athn_set_multi().


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/ic/athn.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/ic/athn.c
diff -u src/sys/dev/ic/athn.c:1.19 src/sys/dev/ic/athn.c:1.20
--- src/sys/dev/ic/athn.c:1.19	Fri May 24 07:34:51 2019
+++ src/sys/dev/ic/athn.c	Tue May 28 07:07:00 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: athn.c,v 1.19 2019/05/24 07:34:51 msaitoh Exp $	*/
+/*	$NetBSD: athn.c,v 1.20 2019/05/28 07:07:00 msaitoh Exp $	*/
 /*	$OpenBSD: athn.c,v 1.83 2014/07/22 13:12:11 mpi Exp $	*/
 
 /*-
@@ -23,7 +23,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: athn.c,v 1.19 2019/05/24 07:34:51 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: athn.c,v 1.20 2019/05/28 07:07:00 msaitoh Exp $");
 
 #ifndef _MODULE
 #include "athn_usb.h"		/* for NATHN_USB */
@@ -136,8 +136,8 @@ Static void	athn_ani_lower_immunity(stru
 Static void	athn_ani_monitor(struct athn_softc *);
 Static void	athn_ani_ofdm_err_trigger(struct athn_softc *);
 Static void	athn_ani_restart(struct athn_softc *);
-Static void	athn_set_multi(struct athn_softc *);
 #endif /* notyet */
+Static void	athn_set_multi(struct athn_softc *);
 
 PUBLIC int
 athn_attach(struct athn_softc *sc)
@@ -2721,12 +2721,11 @@ athn_watchdog(struct ifnet *ifp)
 	ieee80211_watchdog(&sc->sc_ic);
 }
 
-#ifdef notyet
 Static void
 athn_set_multi(struct athn_softc *sc)
 {
-	struct arpcom *ac = &sc->sc_ic.ic_ac;
-	struct ifnet *ifp = &ac->ac_if;
+	struct ethercom *ec = &sc->sc_ec;
+	struct ifnet *ifp = &ec->ec_if;
 	struct ether_multi *enm;
 	struct ether_multistep step;
 	const uint8_t *addr;
@@ -2738,7 +2737,7 @@ athn_set_multi(struct athn_softc *sc)
 		goto done;
 	}
 	lo = hi = 0;
-	ETHER_FIRST_MULTI(step, ac, enm);
+	ETHER_FIRST_MULTI(step, ec, enm);
 	while (enm != NULL) {
 		if (memcmp(enm->enm_addrlo, enm->enm_addrhi, 6) != 0) {
 			ifp->if_flags |= IFF_ALLMULTI;
@@ -2763,7 +2762,6 @@ athn_set_multi(struct athn_softc *sc)
 	AR_WRITE(sc, AR_MCAST_FIL1, hi);
 	AR_WRITE_BARRIER(sc);
 }
-#endif /* notyet */
 
 Static int
 athn_ioctl(struct ifnet *ifp, u_long cmd, void *data)
@@ -2805,9 +2803,7 @@ athn_ioctl(struct ifnet *ifp, u_long cmd
 	case SIOCDELMULTI:
 		if ((error = ether_ioctl(ifp, cmd, data)) == ENETRESET) {
 			/* setup multicast filter, etc */
-#ifdef notyet
 			athn_set_multi(sc);
-#endif
 			error = 0;
 		}
 		break;



CVS commit: src/sys/kern

2019-05-28 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Tue May 28 07:39:17 UTC 2019

Modified Files:
src/sys/kern: subr_lockdebug.c

Log Message:
changes of r1.68 was reverted by r1.69. apply it again.


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sys/kern/subr_lockdebug.c

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



CVS commit: src/sys/kern

2019-05-28 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Tue May 28 07:39:17 UTC 2019

Modified Files:
src/sys/kern: subr_lockdebug.c

Log Message:
changes of r1.68 was reverted by r1.69. apply it again.


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sys/kern/subr_lockdebug.c

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

Modified files:

Index: src/sys/kern/subr_lockdebug.c
diff -u src/sys/kern/subr_lockdebug.c:1.71 src/sys/kern/subr_lockdebug.c:1.72
--- src/sys/kern/subr_lockdebug.c:1.71	Wed May 22 15:32:14 2019
+++ src/sys/kern/subr_lockdebug.c	Tue May 28 07:39:16 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: subr_lockdebug.c,v 1.71 2019/05/22 15:32:14 scole Exp $	*/
+/*	$NetBSD: subr_lockdebug.c,v 1.72 2019/05/28 07:39:16 ryo Exp $	*/
 
 /*-
  * Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: subr_lockdebug.c,v 1.71 2019/05/22 15:32:14 scole Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_lockdebug.c,v 1.72 2019/05/28 07:39:16 ryo Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -912,7 +912,7 @@ lockdebug_show_all_locks_cpu(void (*pr)(
 #ifdef MULTIPROCESSOR
 lockdebug_show_trace(ci->ci_curlwp, pr);
 #else
-lockdebug_show_trace(ci->ci_curlwp, pr);
+lockdebug_show_trace(curlwp, pr);
 #endif
 			(*pr)("\n");
 		}



CVS commit: src

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue May 28 07:41:50 UTC 2019

Modified Files:
src/sys/arch/arm/at91: at91emac.c
src/sys/arch/arm/ep93xx: epe.c
src/sys/arch/arm/gemini: if_gmc.c
src/sys/arch/arm/imx: if_enet.c
src/sys/arch/arm/sunxi: sun4i_emac.c
src/sys/arch/arm/xscale: ixp425_if_npe.c
src/sys/arch/mac68k/dev: if_mc.c
src/sys/arch/macppc/dev: am79c950.c if_bm.c if_gm.c
src/sys/arch/mips/adm5120/dev: if_admsw.c
src/sys/arch/mips/alchemy/dev: if_aumac.c
src/sys/arch/mips/atheros/dev: if_ae.c
src/sys/arch/mips/cavium/dev: octeon_gmx.c
src/sys/arch/mips/sibyte/dev: sbmac.c
src/sys/arch/newsmips/apbus: if_sn.c
src/sys/arch/playstation2/dev: emac3.c
src/sys/arch/powerpc/booke/dev: pq3etsec.c
src/sys/arch/powerpc/ibm4xx/dev: if_emac.c
src/sys/arch/sgimips/mace: if_mec.c
src/sys/arch/sun3/dev: if_ie.c
src/sys/dev/bi: if_ni.c
src/sys/dev/cadence: if_cemac.c
src/sys/dev/ic: aic6915.c ath.c athn.c atw.c awi.c cs89x0.c dm9000.c
dp8390.c dp83932.c elinkxl.c gem.c hme.c i82557.c i82586.c i82596.c
lan9118.c lance.c lemac.c mb86960.c mtd803.c pdq_ifsubr.c rtl81x9.c
rtw.c seeq8005.c sgec.c smc83c170.c tulip.c wi.c
src/sys/dev/isa: if_iy.c
src/sys/dev/marvell: if_gfe.c if_mvgbe.c if_mvxpe.c
src/sys/dev/pci: if_age.c if_alc.c if_ale.c if_bge.c if_bnx.c if_cas.c
if_de.c if_dge.c if_et.c if_jme.c if_kse.c if_lii.c if_msk.c
if_nfe.c if_pcn.c if_sip.c if_sk.c if_ste.c if_stge.c if_ti.c
if_tl.c if_txp.c if_vge.c if_vr.c if_vte.c if_xge.c
src/sys/dev/pcmcia: if_ray.c if_xi.c
src/sys/dev/qbus: if_il.c if_qe.c
src/sys/dev/sbus: be.c qe.c
src/sys/dev/scsipi: if_se.c
src/sys/dev/usb: if_aue.c if_axe.c if_axen.c if_cue.c if_kue.c if_mue.c
if_otus.c if_udav.c if_ure.c if_url.c
src/usr.sbin/cpuctl/arch: i386.c

Log Message:
 Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/arm/at91/at91emac.c
cvs rdiff -u -r1.42 -r1.43 src/sys/arch/arm/ep93xx/epe.c
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/arm/gemini/if_gmc.c
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/arm/imx/if_enet.c
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/arm/sunxi/sun4i_emac.c
cvs rdiff -u -r1.40 -r1.41 src/sys/arch/arm/xscale/ixp425_if_npe.c
cvs rdiff -u -r1.50 -r1.51 src/sys/arch/mac68k/dev/if_mc.c
cvs rdiff -u -r1.44 -r1.45 src/sys/arch/macppc/dev/am79c950.c
cvs rdiff -u -r1.59 -r1.60 src/sys/arch/macppc/dev/if_bm.c
cvs rdiff -u -r1.54 -r1.55 src/sys/arch/macppc/dev/if_gm.c
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/mips/adm5120/dev/if_admsw.c
cvs rdiff -u -r1.46 -r1.47 src/sys/arch/mips/alchemy/dev/if_aumac.c
cvs rdiff -u -r1.35 -r1.36 src/sys/arch/mips/atheros/dev/if_ae.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/mips/cavium/dev/octeon_gmx.c
cvs rdiff -u -r1.59 -r1.60 src/sys/arch/mips/sibyte/dev/sbmac.c
cvs rdiff -u -r1.44 -r1.45 src/sys/arch/newsmips/apbus/if_sn.c
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/playstation2/dev/emac3.c
cvs rdiff -u -r1.44 -r1.45 src/sys/arch/powerpc/booke/dev/pq3etsec.c
cvs rdiff -u -r1.50 -r1.51 src/sys/arch/powerpc/ibm4xx/dev/if_emac.c
cvs rdiff -u -r1.59 -r1.60 src/sys/arch/sgimips/mace/if_mec.c
cvs rdiff -u -r1.69 -r1.70 src/sys/arch/sun3/dev/if_ie.c
cvs rdiff -u -r1.48 -r1.49 src/sys/dev/bi/if_ni.c
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/cadence/if_cemac.c
cvs rdiff -u -r1.38 -r1.39 src/sys/dev/ic/aic6915.c src/sys/dev/ic/mtd803.c
cvs rdiff -u -r1.126 -r1.127 src/sys/dev/ic/ath.c
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/ic/athn.c
cvs rdiff -u -r1.167 -r1.168 src/sys/dev/ic/atw.c
cvs rdiff -u -r1.97 -r1.98 src/sys/dev/ic/awi.c
cvs rdiff -u -r1.45 -r1.46 src/sys/dev/ic/cs89x0.c
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/ic/dm9000.c
cvs rdiff -u -r1.93 -r1.94 src/sys/dev/ic/dp8390.c
cvs rdiff -u -r1.43 -r1.44 src/sys/dev/ic/dp83932.c
cvs rdiff -u -r1.130 -r1.131 src/sys/dev/ic/elinkxl.c
cvs rdiff -u -r1.118 -r1.119 src/sys/dev/ic/gem.c
cvs rdiff -u -r1.104 -r1.105 src/sys/dev/ic/hme.c
cvs rdiff -u -r1.152 -r1.153 src/sys/dev/ic/i82557.c
cvs rdiff -u -r1.83 -r1.84 src/sys/dev/ic/i82586.c
cvs rdiff -u -r1.40 -r1.41 src/sys/dev/ic/i82596.c
cvs rdiff -u -r1.33 -r1.34 src/sys/dev/ic/lan9118.c
cvs rdiff -u -r1.56 -r1.57 src/sys/dev/ic/lance.c
cvs rdiff -u -r1.52 -r1.53 src/sys/dev/ic/lemac.c
cvs rdiff -u -r1.91 -r1.92 src/sys/dev/ic/mb86960.c
cvs rdiff -u -r1.65 -r1.66 src/sys/dev/ic/pdq_ifsubr.c
cvs rdiff -u -r1.105 -r1.106 src/sys/dev/ic/rtl81x9.c
cvs rdiff -u -r1.132 -r1.133 src/sys/dev/ic/rtw.c
cvs rdiff -u -r1.63 -r1.64 src/sys/dev/ic/seeq8005.c
cvs rdiff -u -r1.50 -r1.51 src/sys/dev/ic/sgec.c
cvs rdiff -u -r1.89 -r1.90 src/sys/dev/ic/smc83c170.c
cvs rdiff -u -r1.195 -r1.196 src/sys/dev/ic/tulip.c
cvs rdiff -u 

CVS commit: src

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue May 28 07:41:50 UTC 2019

Modified Files:
src/sys/arch/arm/at91: at91emac.c
src/sys/arch/arm/ep93xx: epe.c
src/sys/arch/arm/gemini: if_gmc.c
src/sys/arch/arm/imx: if_enet.c
src/sys/arch/arm/sunxi: sun4i_emac.c
src/sys/arch/arm/xscale: ixp425_if_npe.c
src/sys/arch/mac68k/dev: if_mc.c
src/sys/arch/macppc/dev: am79c950.c if_bm.c if_gm.c
src/sys/arch/mips/adm5120/dev: if_admsw.c
src/sys/arch/mips/alchemy/dev: if_aumac.c
src/sys/arch/mips/atheros/dev: if_ae.c
src/sys/arch/mips/cavium/dev: octeon_gmx.c
src/sys/arch/mips/sibyte/dev: sbmac.c
src/sys/arch/newsmips/apbus: if_sn.c
src/sys/arch/playstation2/dev: emac3.c
src/sys/arch/powerpc/booke/dev: pq3etsec.c
src/sys/arch/powerpc/ibm4xx/dev: if_emac.c
src/sys/arch/sgimips/mace: if_mec.c
src/sys/arch/sun3/dev: if_ie.c
src/sys/dev/bi: if_ni.c
src/sys/dev/cadence: if_cemac.c
src/sys/dev/ic: aic6915.c ath.c athn.c atw.c awi.c cs89x0.c dm9000.c
dp8390.c dp83932.c elinkxl.c gem.c hme.c i82557.c i82586.c i82596.c
lan9118.c lance.c lemac.c mb86960.c mtd803.c pdq_ifsubr.c rtl81x9.c
rtw.c seeq8005.c sgec.c smc83c170.c tulip.c wi.c
src/sys/dev/isa: if_iy.c
src/sys/dev/marvell: if_gfe.c if_mvgbe.c if_mvxpe.c
src/sys/dev/pci: if_age.c if_alc.c if_ale.c if_bge.c if_bnx.c if_cas.c
if_de.c if_dge.c if_et.c if_jme.c if_kse.c if_lii.c if_msk.c
if_nfe.c if_pcn.c if_sip.c if_sk.c if_ste.c if_stge.c if_ti.c
if_tl.c if_txp.c if_vge.c if_vr.c if_vte.c if_xge.c
src/sys/dev/pcmcia: if_ray.c if_xi.c
src/sys/dev/qbus: if_il.c if_qe.c
src/sys/dev/sbus: be.c qe.c
src/sys/dev/scsipi: if_se.c
src/sys/dev/usb: if_aue.c if_axe.c if_axen.c if_cue.c if_kue.c if_mue.c
if_otus.c if_udav.c if_ure.c if_url.c
src/usr.sbin/cpuctl/arch: i386.c

Log Message:
 Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/arm/at91/at91emac.c
cvs rdiff -u -r1.42 -r1.43 src/sys/arch/arm/ep93xx/epe.c
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/arm/gemini/if_gmc.c
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/arm/imx/if_enet.c
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/arm/sunxi/sun4i_emac.c
cvs rdiff -u -r1.40 -r1.41 src/sys/arch/arm/xscale/ixp425_if_npe.c
cvs rdiff -u -r1.50 -r1.51 src/sys/arch/mac68k/dev/if_mc.c
cvs rdiff -u -r1.44 -r1.45 src/sys/arch/macppc/dev/am79c950.c
cvs rdiff -u -r1.59 -r1.60 src/sys/arch/macppc/dev/if_bm.c
cvs rdiff -u -r1.54 -r1.55 src/sys/arch/macppc/dev/if_gm.c
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/mips/adm5120/dev/if_admsw.c
cvs rdiff -u -r1.46 -r1.47 src/sys/arch/mips/alchemy/dev/if_aumac.c
cvs rdiff -u -r1.35 -r1.36 src/sys/arch/mips/atheros/dev/if_ae.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/mips/cavium/dev/octeon_gmx.c
cvs rdiff -u -r1.59 -r1.60 src/sys/arch/mips/sibyte/dev/sbmac.c
cvs rdiff -u -r1.44 -r1.45 src/sys/arch/newsmips/apbus/if_sn.c
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/playstation2/dev/emac3.c
cvs rdiff -u -r1.44 -r1.45 src/sys/arch/powerpc/booke/dev/pq3etsec.c
cvs rdiff -u -r1.50 -r1.51 src/sys/arch/powerpc/ibm4xx/dev/if_emac.c
cvs rdiff -u -r1.59 -r1.60 src/sys/arch/sgimips/mace/if_mec.c
cvs rdiff -u -r1.69 -r1.70 src/sys/arch/sun3/dev/if_ie.c
cvs rdiff -u -r1.48 -r1.49 src/sys/dev/bi/if_ni.c
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/cadence/if_cemac.c
cvs rdiff -u -r1.38 -r1.39 src/sys/dev/ic/aic6915.c src/sys/dev/ic/mtd803.c
cvs rdiff -u -r1.126 -r1.127 src/sys/dev/ic/ath.c
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/ic/athn.c
cvs rdiff -u -r1.167 -r1.168 src/sys/dev/ic/atw.c
cvs rdiff -u -r1.97 -r1.98 src/sys/dev/ic/awi.c
cvs rdiff -u -r1.45 -r1.46 src/sys/dev/ic/cs89x0.c
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/ic/dm9000.c
cvs rdiff -u -r1.93 -r1.94 src/sys/dev/ic/dp8390.c
cvs rdiff -u -r1.43 -r1.44 src/sys/dev/ic/dp83932.c
cvs rdiff -u -r1.130 -r1.131 src/sys/dev/ic/elinkxl.c
cvs rdiff -u -r1.118 -r1.119 src/sys/dev/ic/gem.c
cvs rdiff -u -r1.104 -r1.105 src/sys/dev/ic/hme.c
cvs rdiff -u -r1.152 -r1.153 src/sys/dev/ic/i82557.c
cvs rdiff -u -r1.83 -r1.84 src/sys/dev/ic/i82586.c
cvs rdiff -u -r1.40 -r1.41 src/sys/dev/ic/i82596.c
cvs rdiff -u -r1.33 -r1.34 src/sys/dev/ic/lan9118.c
cvs rdiff -u -r1.56 -r1.57 src/sys/dev/ic/lance.c
cvs rdiff -u -r1.52 -r1.53 src/sys/dev/ic/lemac.c
cvs rdiff -u -r1.91 -r1.92 src/sys/dev/ic/mb86960.c
cvs rdiff -u -r1.65 -r1.66 src/sys/dev/ic/pdq_ifsubr.c
cvs rdiff -u -r1.105 -r1.106 src/sys/dev/ic/rtl81x9.c
cvs rdiff -u -r1.132 -r1.133 src/sys/dev/ic/rtw.c
cvs rdiff -u -r1.63 -r1.64 src/sys/dev/ic/seeq8005.c
cvs rdiff -u -r1.50 -r1.51 src/sys/dev/ic/sgec.c
cvs rdiff -u -r1.89 -r1.90 src/sys/dev/ic/smc83c170.c
cvs rdiff -u -r1.195 -r1.196 src/sys/dev/ic/tulip.c
cvs rdiff -u 

CVS commit: src/usr.sbin/cpuctl/arch

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue May 28 07:44:14 UTC 2019

Modified Files:
src/usr.sbin/cpuctl/arch: i386.c

Log Message:
 Revert previous (accidentally committed).


To generate a diff of this commit:
cvs rdiff -u -r1.100 -r1.101 src/usr.sbin/cpuctl/arch/i386.c

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

Modified files:

Index: src/usr.sbin/cpuctl/arch/i386.c
diff -u src/usr.sbin/cpuctl/arch/i386.c:1.100 src/usr.sbin/cpuctl/arch/i386.c:1.101
--- src/usr.sbin/cpuctl/arch/i386.c:1.100	Tue May 28 07:41:50 2019
+++ src/usr.sbin/cpuctl/arch/i386.c	Tue May 28 07:44:14 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: i386.c,v 1.100 2019/05/28 07:41:50 msaitoh Exp $	*/
+/*	$NetBSD: i386.c,v 1.101 2019/05/28 07:44:14 msaitoh Exp $	*/
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: i386.c,v 1.100 2019/05/28 07:41:50 msaitoh Exp $");
+__RCSID("$NetBSD: i386.c,v 1.101 2019/05/28 07:44:14 msaitoh Exp $");
 #endif /* not lint */
 
 #include 
@@ -373,7 +373,7 @@ const struct cpu_cpuid_nameclass i386_cp
 [0x4d] = "Atom C2000",
 [0x4e] = "6th gen Core, Xeon E3-1[25]00 v5 (Skylake)",
 [0x4f] = "Xeon E[57] v4 (Broadwell), Core i7-69xx Extreme",
-[0x55] = "Xeon Scalable (Skylake, Cascade Lake, Copper Lake)",
+[0x55] = "Xeon Scalable (Skylake)",
 [0x56] = "Xeon D-1500 (Broadwell)",
 [0x57] = "Xeon Phi [357]200 (Knights Landing)",
 [0x5a] = "Atom E3500",
@@ -381,16 +381,13 @@ const struct cpu_cpuid_nameclass i386_cp
 [0x5d] = "Atom X3-C3000 (Silvermont)",
 [0x5e] = "6th gen Core, Xeon E3-1[25]00 v5 (Skylake)",
 [0x5f] = "Atom (Goldmont, Denverton)",
-[0x66] = "8th gen Core i3 (Cannon Lake)",
-[0x6a] = "Future Xeon (Ice Lake)",
-[0x6c] = "Future Xeon (Ice Lake)",
+[0x66] = "Future Core (Cannon Lake)",
 [0x7a] = "Atom (Goldmont Plus)",
-[0x7d] = "Future Core (Ice Lake)",
 [0x7e] = "Future Core (Ice Lake)",
 [0x85] = "Xeon Phi 7215, 7285, 7295 (Knights Mill)",
 [0x86] = "Atom (Tremont)",
-[0x8e] = "7th or 8th gen Core (Kaby Lake, Coffee Lake) or Xeon E (Coffee Lake)",
-[0x9e] = "7th or 8th gen Core (Kaby Lake, Coffee Lake) or Xeon E (Coffee Lake)",
+[0x8e] = "7th or 8th gen Core (Kaby Lake, Coffee Lake)",
+[0x9e] = "7th or 8th gen Core (Kaby Lake, Coffee Lake)",
 			},
 			"Pentium Pro, II or III",	/* Default */
 			NULL,



CVS commit: src/usr.sbin/cpuctl/arch

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue May 28 07:44:14 UTC 2019

Modified Files:
src/usr.sbin/cpuctl/arch: i386.c

Log Message:
 Revert previous (accidentally committed).


To generate a diff of this commit:
cvs rdiff -u -r1.100 -r1.101 src/usr.sbin/cpuctl/arch/i386.c

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



CVS commit: src/usr.sbin/cpuctl/arch

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue May 28 07:51:58 UTC 2019

Modified Files:
src/usr.sbin/cpuctl/arch: i386.c

Log Message:
Update from the latest Intel SDM:
- Add Cascade Lake, Copper Lake
- Add Future Xeon (Cannon Lake)
- Add 06_7DH for another Ice Lake
- Add Coffee Lake based Xeon E


To generate a diff of this commit:
cvs rdiff -u -r1.101 -r1.102 src/usr.sbin/cpuctl/arch/i386.c

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

Modified files:

Index: src/usr.sbin/cpuctl/arch/i386.c
diff -u src/usr.sbin/cpuctl/arch/i386.c:1.101 src/usr.sbin/cpuctl/arch/i386.c:1.102
--- src/usr.sbin/cpuctl/arch/i386.c:1.101	Tue May 28 07:44:14 2019
+++ src/usr.sbin/cpuctl/arch/i386.c	Tue May 28 07:51:58 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: i386.c,v 1.101 2019/05/28 07:44:14 msaitoh Exp $	*/
+/*	$NetBSD: i386.c,v 1.102 2019/05/28 07:51:58 msaitoh Exp $	*/
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: i386.c,v 1.101 2019/05/28 07:44:14 msaitoh Exp $");
+__RCSID("$NetBSD: i386.c,v 1.102 2019/05/28 07:51:58 msaitoh Exp $");
 #endif /* not lint */
 
 #include 
@@ -373,7 +373,7 @@ const struct cpu_cpuid_nameclass i386_cp
 [0x4d] = "Atom C2000",
 [0x4e] = "6th gen Core, Xeon E3-1[25]00 v5 (Skylake)",
 [0x4f] = "Xeon E[57] v4 (Broadwell), Core i7-69xx Extreme",
-[0x55] = "Xeon Scalable (Skylake)",
+[0x55] = "Xeon Scalable (Skylake, Cascade Lake, Copper Lake)",
 [0x56] = "Xeon D-1500 (Broadwell)",
 [0x57] = "Xeon Phi [357]200 (Knights Landing)",
 [0x5a] = "Atom E3500",
@@ -381,13 +381,16 @@ const struct cpu_cpuid_nameclass i386_cp
 [0x5d] = "Atom X3-C3000 (Silvermont)",
 [0x5e] = "6th gen Core, Xeon E3-1[25]00 v5 (Skylake)",
 [0x5f] = "Atom (Goldmont, Denverton)",
-[0x66] = "Future Core (Cannon Lake)",
+[0x66] = "8th gen Core i3 (Cannon Lake)",
+[0x6a] = "Future Xeon (Ice Lake)",
+[0x6c] = "Future Xeon (Ice Lake)",
 [0x7a] = "Atom (Goldmont Plus)",
+[0x7d] = "Future Core (Ice Lake)",
 [0x7e] = "Future Core (Ice Lake)",
 [0x85] = "Xeon Phi 7215, 7285, 7295 (Knights Mill)",
 [0x86] = "Atom (Tremont)",
-[0x8e] = "7th or 8th gen Core (Kaby Lake, Coffee Lake)",
-[0x9e] = "7th or 8th gen Core (Kaby Lake, Coffee Lake)",
+[0x8e] = "7th or 8th gen Core (Kaby Lake, Coffee Lake) or Xeon E (Coffee Lake)",
+[0x9e] = "7th or 8th gen Core (Kaby Lake, Coffee Lake) or Xeon E (Coffee Lake)",
 			},
 			"Pentium Pro, II or III",	/* Default */
 			NULL,



CVS commit: src/usr.sbin/cpuctl/arch

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue May 28 07:51:58 UTC 2019

Modified Files:
src/usr.sbin/cpuctl/arch: i386.c

Log Message:
Update from the latest Intel SDM:
- Add Cascade Lake, Copper Lake
- Add Future Xeon (Cannon Lake)
- Add 06_7DH for another Ice Lake
- Add Coffee Lake based Xeon E


To generate a diff of this commit:
cvs rdiff -u -r1.101 -r1.102 src/usr.sbin/cpuctl/arch/i386.c

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



CVS commit: src

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue May 28 08:59:36 UTC 2019

Modified Files:
src/sys/arch/arm/gemini: if_gmc.c
src/sys/arch/hp300/dev: mtreg.h
src/sys/arch/i386/stand/pxeboot: pxe.h
src/sys/arch/mips/cavium/dev: octeon_fpavar.h octeon_pow.c
src/sys/arch/mips/sibyte/include: sb1250_mac.h
src/sys/arch/sh3/include: scifreg.h
src/sys/dev/acpi: acpidevs
src/sys/dev/gpib: mtreg.h
src/sys/dev/ic: gem.c tulip.c tulipreg.h
src/sys/dev/ieee1394: fwohci.c
src/sys/dev/microcode/aic7xxx: aic79xx.reg
src/sys/dev/pci: if_wm.c
src/sys/dev/pckbport: alps.c alpsreg.h
src/sys/dev/pcmcia: if_xireg.h
src/sys/dev/raidframe: rf_map.c
src/sys/dev/usb: if_axenreg.h
src/sys/netinet: sctp_input.c
src/sys/ufs/lfs: lfs_vfsops.c
src/sys/uvm: uvm_fault.c
src/usr.sbin/mmcformat: uscsi_subr.c

Log Message:
s/recieve/receive/


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/arm/gemini/if_gmc.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/hp300/dev/mtreg.h
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/i386/stand/pxeboot/pxe.h
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/mips/cavium/dev/octeon_fpavar.h
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/mips/cavium/dev/octeon_pow.c
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/mips/sibyte/include/sb1250_mac.h
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/sh3/include/scifreg.h
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/acpi/acpidevs
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/gpib/mtreg.h
cvs rdiff -u -r1.119 -r1.120 src/sys/dev/ic/gem.c
cvs rdiff -u -r1.196 -r1.197 src/sys/dev/ic/tulip.c
cvs rdiff -u -r1.38 -r1.39 src/sys/dev/ic/tulipreg.h
cvs rdiff -u -r1.141 -r1.142 src/sys/dev/ieee1394/fwohci.c
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/microcode/aic7xxx/aic79xx.reg
cvs rdiff -u -r1.638 -r1.639 src/sys/dev/pci/if_wm.c
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/pckbport/alps.c
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/pckbport/alpsreg.h
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/pcmcia/if_xireg.h
cvs rdiff -u -r1.49 -r1.50 src/sys/dev/raidframe/rf_map.c
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/usb/if_axenreg.h
cvs rdiff -u -r1.13 -r1.14 src/sys/netinet/sctp_input.c
cvs rdiff -u -r1.364 -r1.365 src/sys/ufs/lfs/lfs_vfsops.c
cvs rdiff -u -r1.205 -r1.206 src/sys/uvm/uvm_fault.c
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/mmcformat/uscsi_subr.c

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



CVS commit: src

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue May 28 08:59:36 UTC 2019

Modified Files:
src/sys/arch/arm/gemini: if_gmc.c
src/sys/arch/hp300/dev: mtreg.h
src/sys/arch/i386/stand/pxeboot: pxe.h
src/sys/arch/mips/cavium/dev: octeon_fpavar.h octeon_pow.c
src/sys/arch/mips/sibyte/include: sb1250_mac.h
src/sys/arch/sh3/include: scifreg.h
src/sys/dev/acpi: acpidevs
src/sys/dev/gpib: mtreg.h
src/sys/dev/ic: gem.c tulip.c tulipreg.h
src/sys/dev/ieee1394: fwohci.c
src/sys/dev/microcode/aic7xxx: aic79xx.reg
src/sys/dev/pci: if_wm.c
src/sys/dev/pckbport: alps.c alpsreg.h
src/sys/dev/pcmcia: if_xireg.h
src/sys/dev/raidframe: rf_map.c
src/sys/dev/usb: if_axenreg.h
src/sys/netinet: sctp_input.c
src/sys/ufs/lfs: lfs_vfsops.c
src/sys/uvm: uvm_fault.c
src/usr.sbin/mmcformat: uscsi_subr.c

Log Message:
s/recieve/receive/


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/arm/gemini/if_gmc.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/hp300/dev/mtreg.h
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/i386/stand/pxeboot/pxe.h
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/mips/cavium/dev/octeon_fpavar.h
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/mips/cavium/dev/octeon_pow.c
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/mips/sibyte/include/sb1250_mac.h
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/sh3/include/scifreg.h
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/acpi/acpidevs
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/gpib/mtreg.h
cvs rdiff -u -r1.119 -r1.120 src/sys/dev/ic/gem.c
cvs rdiff -u -r1.196 -r1.197 src/sys/dev/ic/tulip.c
cvs rdiff -u -r1.38 -r1.39 src/sys/dev/ic/tulipreg.h
cvs rdiff -u -r1.141 -r1.142 src/sys/dev/ieee1394/fwohci.c
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/microcode/aic7xxx/aic79xx.reg
cvs rdiff -u -r1.638 -r1.639 src/sys/dev/pci/if_wm.c
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/pckbport/alps.c
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/pckbport/alpsreg.h
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/pcmcia/if_xireg.h
cvs rdiff -u -r1.49 -r1.50 src/sys/dev/raidframe/rf_map.c
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/usb/if_axenreg.h
cvs rdiff -u -r1.13 -r1.14 src/sys/netinet/sctp_input.c
cvs rdiff -u -r1.364 -r1.365 src/sys/ufs/lfs/lfs_vfsops.c
cvs rdiff -u -r1.205 -r1.206 src/sys/uvm/uvm_fault.c
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/mmcformat/uscsi_subr.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/arm/gemini/if_gmc.c
diff -u src/sys/arch/arm/gemini/if_gmc.c:1.11 src/sys/arch/arm/gemini/if_gmc.c:1.12
--- src/sys/arch/arm/gemini/if_gmc.c:1.11	Tue May 28 07:41:46 2019
+++ src/sys/arch/arm/gemini/if_gmc.c	Tue May 28 08:59:33 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: if_gmc.c,v 1.11 2019/05/28 07:41:46 msaitoh Exp $ */
+/* $NetBSD: if_gmc.c,v 1.12 2019/05/28 08:59:33 msaitoh Exp $ */
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -47,7 +47,7 @@
 #include 
 #include 
 
-__KERNEL_RCSID(0, "$NetBSD: if_gmc.c,v 1.11 2019/05/28 07:41:46 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_gmc.c,v 1.12 2019/05/28 08:59:33 msaitoh Exp $");
 
 #define	MAX_TXSEG	32
 
@@ -267,7 +267,7 @@ gmc_mii_tick(void *arg)
 	/*
 	 * If we had to increase the number of receive mbufs due to fifo
 	 * overflows, we need a way to decrease them.  So every second we
-	 * recieve less than or equal to MIN_RXMAPS packets, we decrement
+	 * receive less than or equal to MIN_RXMAPS packets, we decrement
 	 * swfree_min until it returns to MIN_RXMAPS.
 	 */
 	if (psc->sc_rxpkts_per_sec <= MIN_RXMAPS

Index: src/sys/arch/hp300/dev/mtreg.h
diff -u src/sys/arch/hp300/dev/mtreg.h:1.5 src/sys/arch/hp300/dev/mtreg.h:1.6
--- src/sys/arch/hp300/dev/mtreg.h:1.5	Sun Mar  6 14:51:21 2011
+++ src/sys/arch/hp300/dev/mtreg.h	Tue May 28 08:59:33 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: mtreg.h,v 1.5 2011/03/06 14:51:21 tsutsui Exp $	*/
+/*	$NetBSD: mtreg.h,v 1.6 2019/05/28 08:59:33 msaitoh Exp $	*/
 
 /*
  * Copyright (c) 1992, The University of Utah and
@@ -130,7 +130,7 @@ struct	mt_stat {
 #define	MTF_ATEOT	0x0100	/* tape hit EOT - can allow one forward op */
 #define	MTF_PASTEOT	0x0200	/* tape is beyond EOT - force backward motion */
 #define	MTF_DSJTIMEO	0x0400	/* timed out hpibrecv()ing DSJ - continue it */
-#define	MTF_STATTIMEO	0x0800	/* timed out recieving STATUS - continue it */
+#define	MTF_STATTIMEO	0x0800	/* timed out receiving STATUS - continue it */
 #define	MTF_STATCONT	0x1000	/* STATTIMEO is continuable */
 
 /* additional "mtcommand"s */

Index: src/sys/arch/i386/stand/pxeboot/pxe.h
diff -u src/sys/arch/i386/stand/pxeboot/pxe.h:1.6 src/sys/arch/i386/stand/pxeboot/pxe.h:1.7
--- src/sys/arch/i386/stand/pxeboot/pxe.h:1.6	Wed Dec 22 20:46:42 2010
+++ src/sys/arch/i386/stand/pxeboot/pxe.h	Tue May 28 08:59:34 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: pxe.h,v 1.6 2010/12/22 20:46:42 jakllsch Exp $	*/
+/*	$

CVS commit: src/sys/dev/pci

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue May 28 09:24:34 UTC 2019

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

Log Message:
 Add missing ETHER_LOCK().


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/pci/if_ale.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-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue May 28 09:24:34 UTC 2019

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

Log Message:
 Add missing ETHER_LOCK().


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/pci/if_ale.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_ale.c
diff -u src/sys/dev/pci/if_ale.c:1.31 src/sys/dev/pci/if_ale.c:1.32
--- src/sys/dev/pci/if_ale.c:1.31	Tue May 28 07:41:49 2019
+++ src/sys/dev/pci/if_ale.c	Tue May 28 09:24:33 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_ale.c,v 1.31 2019/05/28 07:41:49 msaitoh Exp $	*/
+/*	$NetBSD: if_ale.c,v 1.32 2019/05/28 09:24:33 msaitoh Exp $	*/
 
 /*-
  * Copyright (c) 2008, Pyun YongHyeon 
@@ -32,7 +32,7 @@
 /* Driver for Atheros AR8121/AR8113/AR8114 PCIe Ethernet. */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_ale.c,v 1.31 2019/05/28 07:41:49 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ale.c,v 1.32 2019/05/28 09:24:33 msaitoh Exp $");
 
 #include "vlan.h"
 
@@ -2008,6 +2008,7 @@ ale_rxfilter(struct ale_softc *sc)
 		/* Program new filter. */
 		memset(mchash, 0, sizeof(mchash));
 
+		ETHER_LOCK(ec);
 		ETHER_FIRST_MULTI(step, ec, enm);
 		while (enm != NULL) {
 			crc = ether_crc32_be(enm->enm_addrlo, ETHER_ADDR_LEN);



CVS commit: src/sys/dev/i2c

2019-05-28 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue May 28 09:52:17 UTC 2019

Modified Files:
src/sys/dev/i2c: axppmic.c

Log Message:
Enable always-on and boot-on regulators at attach time


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/i2c/axppmic.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/i2c

2019-05-28 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue May 28 09:52:17 UTC 2019

Modified Files:
src/sys/dev/i2c: axppmic.c

Log Message:
Enable always-on and boot-on regulators at attach time


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/i2c/axppmic.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/i2c/axppmic.c
diff -u src/sys/dev/i2c/axppmic.c:1.21 src/sys/dev/i2c/axppmic.c:1.22
--- src/sys/dev/i2c/axppmic.c:1.21	Mon May 27 23:28:41 2019
+++ src/sys/dev/i2c/axppmic.c	Tue May 28 09:52:17 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: axppmic.c,v 1.21 2019/05/27 23:28:41 jmcneill Exp $ */
+/* $NetBSD: axppmic.c,v 1.22 2019/05/28 09:52:17 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2014-2018 Jared McNeill 
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: axppmic.c,v 1.21 2019/05/27 23:28:41 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: axppmic.c,v 1.22 2019/05/28 09:52:17 jmcneill Exp $");
 
 #include 
 #include 
@@ -1037,10 +1037,16 @@ axpreg_attach(device_t parent, device_t 
 	if (of_getprop_uint32(phandle, "regulator-min-microvolt", &min_uvol) == 0 &&
 	of_getprop_uint32(phandle, "regulator-max-microvolt", &max_uvol) == 0) {
 		if (uvol < min_uvol || uvol > max_uvol) {
-			aprint_debug_dev(self, "fix voltage %u uV -> %u/%u uV\n", uvol, min_uvol, max_uvol);
+			aprint_debug_dev(self, "fix voltage %u uV -> %u/%u uV\n",
+			uvol, min_uvol, max_uvol);
 			axpreg_set_voltage(self, min_uvol, max_uvol);
 		}
 	}
+
+	if (of_hasprop(phandle, "regulator-always-on") ||
+	of_hasprop(phandle, "regulator-boot-on")) {
+		axpreg_enable(self, true);
+	}
 }
 
 CFATTACH_DECL_NEW(axppmic, sizeof(struct axppmic_softc),



CVS commit: src/sys/dev/i2c

2019-05-28 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue May 28 10:14:46 UTC 2019

Modified Files:
src/sys/dev/i2c: axppmic.c

Log Message:
Fix ldo_io[01] enable and disable values for axp809


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/i2c/axppmic.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/i2c/axppmic.c
diff -u src/sys/dev/i2c/axppmic.c:1.22 src/sys/dev/i2c/axppmic.c:1.23
--- src/sys/dev/i2c/axppmic.c:1.22	Tue May 28 09:52:17 2019
+++ src/sys/dev/i2c/axppmic.c	Tue May 28 10:14:46 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: axppmic.c,v 1.22 2019/05/28 09:52:17 jmcneill Exp $ */
+/* $NetBSD: axppmic.c,v 1.23 2019/05/28 10:14:46 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2014-2018 Jared McNeill 
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: axppmic.c,v 1.22 2019/05/28 09:52:17 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: axppmic.c,v 1.23 2019/05/28 10:14:46 jmcneill Exp $");
 
 #include 
 #include 
@@ -117,6 +117,8 @@ struct axppmic_ctrl {
 
 	uint8_t		c_enable_reg;
 	uint8_t		c_enable_mask;
+	uint8_t		c_enable_val;
+	uint8_t		c_disable_val;
 
 	uint8_t		c_voltage_reg;
 	uint8_t		c_voltage_mask;
@@ -127,6 +129,7 @@ struct axppmic_ctrl {
 	  .c_step1 = (step), .c_step1cnt = (((max) - (min)) / (step)) + 1, \
 	  .c_step2 = 0, .c_step2cnt = 0,\
 	  .c_enable_reg = (ereg), .c_enable_mask = (emask),		\
+	  .c_enable_val = (emask), .c_disable_val = 0,			\
 	  .c_voltage_reg = (vreg), .c_voltage_mask = (vmask) }
 
 #define AXP_CTRL2(name, min, max, step1, step1cnt, step2, step2cnt, ereg, emask, vreg, vmask) \
@@ -134,8 +137,18 @@ struct axppmic_ctrl {
 	  .c_step1 = (step1), .c_step1cnt = (step1cnt),			\
 	  .c_step2 = (step2), .c_step2cnt = (step2cnt),			\
 	  .c_enable_reg = (ereg), .c_enable_mask = (emask),		\
+	  .c_enable_val = (emask), .c_disable_val = 0,			\
 	  .c_voltage_reg = (vreg), .c_voltage_mask = (vmask) }
 
+#define AXP_CTRL_IO(name, min, max, step, ereg, emask, eval, dval, vreg, vmask)	\
+	{ .c_name = (name), .c_min = (min), .c_max = (max),		\
+	  .c_step1 = (step), .c_step1cnt = (((max) - (min)) / (step)) + 1, \
+	  .c_step2 = 0, .c_step2cnt = 0,\
+	  .c_enable_reg = (ereg), .c_enable_mask = (emask),		\
+	  .c_enable_val = (eval), .c_disable_val = (dval),		\
+	  .c_voltage_reg = (vreg), .c_voltage_mask = (vmask) }
+
+
 static const struct axppmic_ctrl axp803_ctrls[] = {
 	AXP_CTRL("dldo1", 700, 3300, 100,
 		0x12, __BIT(3), 0x15, __BITS(4,0)),
@@ -210,10 +223,10 @@ static const struct axppmic_ctrl axp805_
 
 static const struct axppmic_ctrl axp809_ctrls[] = {
 	/* TODO: This list is incomplete */
-	AXP_CTRL("ldo_io0", 700, 3300, 100,
-		0x90, __BIT(0), 0x91, __BITS(4,0)),
-	AXP_CTRL("ldo_io1", 700, 3300, 100,
-		0x92, __BIT(0), 0x93, __BITS(4,0)),
+	AXP_CTRL_IO("ldo_io0", 700, 3300, 100,
+		0x90, __BITS(3,0), 0x3, 0x7, 0x91, __BITS(4,0)),
+	AXP_CTRL_IO("ldo_io1", 700, 3300, 100,
+		0x92, __BITS(3,0), 0x3, 0x7, 0x93, __BITS(4,0)),
 };
 
 static const struct axppmic_ctrl axp813_ctrls[] = {
@@ -958,10 +971,11 @@ axpreg_enable(device_t dev, bool enable)
 
 	iic_acquire_bus(sc->sc_i2c, flags);
 	if ((error = axppmic_read(sc->sc_i2c, sc->sc_addr, c->c_enable_reg, &val, flags)) == 0) {
+		val &= ~c->c_enable_mask;
 		if (enable)
-			val |= c->c_enable_mask;
+			val |= c->c_enable_val;
 		else
-			val &= ~c->c_enable_mask;
+			val |= c->c_disable_val;
 		error = axppmic_write(sc->sc_i2c, sc->sc_addr, c->c_enable_reg, val, flags);
 	}
 	iic_release_bus(sc->sc_i2c, flags);



CVS commit: src/sys/dev/i2c

2019-05-28 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue May 28 10:14:46 UTC 2019

Modified Files:
src/sys/dev/i2c: axppmic.c

Log Message:
Fix ldo_io[01] enable and disable values for axp809


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/i2c/axppmic.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/x86/x86

2019-05-28 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue May 28 13:20:23 UTC 2019

Modified Files:
src/sys/arch/x86/x86: patch.c

Log Message:
Disable sanitizer instrumentation in x86_hotpatch()

Local variables have empty (0-sized), unknown alignment to UBSan.
This is hard to workaround without mutating the code too much.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/arch/x86/x86/patch.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/patch.c
diff -u src/sys/arch/x86/x86/patch.c:1.35 src/sys/arch/x86/x86/patch.c:1.36
--- src/sys/arch/x86/x86/patch.c:1.35	Sat Jul 14 14:34:32 2018
+++ src/sys/arch/x86/x86/patch.c	Tue May 28 13:20:23 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: patch.c,v 1.35 2018/07/14 14:34:32 maxv Exp $	*/
+/*	$NetBSD: patch.c,v 1.36 2019/05/28 13:20:23 kamil Exp $	*/
 
 /*-
  * Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: patch.c,v 1.35 2018/07/14 14:34:32 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: patch.c,v 1.36 2019/05/28 13:20:23 kamil Exp $");
 
 #include "opt_lockdebug.h"
 #ifdef i386
@@ -132,6 +132,12 @@ patchbytes(void *addr, const uint8_t *by
 	}
 }
 
+/* The local variables have unknown alignment to UBSan */
+#if defined(__clang__)
+__attribute__((no_sanitize("undefined")))
+#else
+__attribute__((no_sanitize_undefined))
+#endif
 void
 x86_hotpatch(uint32_t name, const uint8_t *bytes, size_t size)
 {



CVS commit: src/sys/arch/x86/x86

2019-05-28 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue May 28 13:20:23 UTC 2019

Modified Files:
src/sys/arch/x86/x86: patch.c

Log Message:
Disable sanitizer instrumentation in x86_hotpatch()

Local variables have empty (0-sized), unknown alignment to UBSan.
This is hard to workaround without mutating the code too much.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/arch/x86/x86/patch.c

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



CVS commit: src/usr.sbin/sysinst/arch/hppa

2019-05-28 Thread Andreas Gustafsson
Module Name:src
Committed By:   gson
Date:   Tue May 28 13:24:25 UTC 2019

Modified Files:
src/usr.sbin/sysinst/arch/hppa: md.c

Log Message:
Clear the screen after running installboot.  If we don't, there will
be a leftover line saying "Status: Finished" at the top of subsequent
screens, and the message "Hit enter to continue" will be redrawn after
the set selection is complete, which confuses literal-minded robotic
users such as anita.  Fix copied from landisk.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/sysinst/arch/hppa/md.c

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



CVS commit: src/usr.sbin/sysinst/arch/hppa

2019-05-28 Thread Andreas Gustafsson
Module Name:src
Committed By:   gson
Date:   Tue May 28 13:24:25 UTC 2019

Modified Files:
src/usr.sbin/sysinst/arch/hppa: md.c

Log Message:
Clear the screen after running installboot.  If we don't, there will
be a leftover line saying "Status: Finished" at the top of subsequent
screens, and the message "Hit enter to continue" will be redrawn after
the set selection is complete, which confuses literal-minded robotic
users such as anita.  Fix copied from landisk.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/sysinst/arch/hppa/md.c

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

Modified files:

Index: src/usr.sbin/sysinst/arch/hppa/md.c
diff -u src/usr.sbin/sysinst/arch/hppa/md.c:1.3 src/usr.sbin/sysinst/arch/hppa/md.c:1.4
--- src/usr.sbin/sysinst/arch/hppa/md.c:1.3	Fri May 18 12:23:22 2018
+++ src/usr.sbin/sysinst/arch/hppa/md.c	Tue May 28 13:24:25 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: md.c,v 1.3 2018/05/18 12:23:22 joerg Exp $	*/
+/*	$NetBSD: md.c,v 1.4 2019/05/28 13:24:25 gson Exp $	*/
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -184,7 +184,7 @@ md_post_newfs(void)
 
 	/* boot blocks ... */
 	msg_display(MSG_dobootblks, pm->diskdev);
-	if (run_program(RUN_DISPLAY | RUN_NO_CLEAR,
+	if (run_program(RUN_DISPLAY,
 	"/usr/sbin/installboot -v /dev/r%sc /usr/mdec/xxboot",
 	pm->diskdev))
 		process_menu(MENU_ok,



CVS commit: src/sys/external/bsd/acpica/dist/tables

2019-05-28 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue May 28 13:34:40 UTC 2019

Modified Files:
src/sys/external/bsd/acpica/dist/tables: tbutils.c

Log Message:
Correct misaligned pointer dereference of type UINT32 in ACPICA

Detected with kUBSan.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/external/bsd/acpica/dist/tables/tbutils.c

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

Modified files:

Index: src/sys/external/bsd/acpica/dist/tables/tbutils.c
diff -u src/sys/external/bsd/acpica/dist/tables/tbutils.c:1.15 src/sys/external/bsd/acpica/dist/tables/tbutils.c:1.16
--- src/sys/external/bsd/acpica/dist/tables/tbutils.c:1.15	Mon Apr 29 01:18:07 2019
+++ src/sys/external/bsd/acpica/dist/tables/tbutils.c	Tue May 28 13:34:40 2019
@@ -228,8 +228,9 @@ AcpiTbGetRootTableEntry (
  * 32-bit platform, RSDT: Return 32-bit table entry
  * 64-bit platform, RSDT: Expand 32-bit to 64-bit and return
  */
-return ((ACPI_PHYSICAL_ADDRESS) (*ACPI_CAST_PTR (
-UINT32, TableEntry)));
+UINT32 addr;
+memcpy(&addr, ACPI_CAST_PTR (UINT32, TableEntry), sizeof(addr));
+return (ACPI_PHYSICAL_ADDRESS) addr;
 }
 else
 {



CVS commit: src/sys/external/bsd/acpica/dist/tables

2019-05-28 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue May 28 13:34:40 UTC 2019

Modified Files:
src/sys/external/bsd/acpica/dist/tables: tbutils.c

Log Message:
Correct misaligned pointer dereference of type UINT32 in ACPICA

Detected with kUBSan.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/external/bsd/acpica/dist/tables/tbutils.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/mips/cavium/dev

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue May 28 14:20:09 UTC 2019

Modified Files:
src/sys/arch/mips/cavium/dev: octeon_gmx.c

Log Message:
 Fix compile error.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/mips/cavium/dev/octeon_gmx.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/mips/cavium/dev

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue May 28 14:20:09 UTC 2019

Modified Files:
src/sys/arch/mips/cavium/dev: octeon_gmx.c

Log Message:
 Fix compile error.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/mips/cavium/dev/octeon_gmx.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/cavium/dev/octeon_gmx.c
diff -u src/sys/arch/mips/cavium/dev/octeon_gmx.c:1.4 src/sys/arch/mips/cavium/dev/octeon_gmx.c:1.5
--- src/sys/arch/mips/cavium/dev/octeon_gmx.c:1.4	Tue May 28 07:41:47 2019
+++ src/sys/arch/mips/cavium/dev/octeon_gmx.c	Tue May 28 14:20:09 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: octeon_gmx.c,v 1.4 2019/05/28 07:41:47 msaitoh Exp $	*/
+/*	$NetBSD: octeon_gmx.c,v 1.5 2019/05/28 14:20:09 msaitoh Exp $	*/
 
 /*
  * Copyright (c) 2007 Internet Initiative Japan, Inc.
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: octeon_gmx.c,v 1.4 2019/05/28 07:41:47 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: octeon_gmx.c,v 1.5 2019/05/28 14:20:09 msaitoh Exp $");
 
 #include "opt_octeon.h"
 
@@ -922,7 +922,7 @@ octeon_gmx_rgmii_set_mac_addr(struct oct
 static int
 octeon_gmx_rgmii_set_filter(struct octeon_gmx_port_softc *sc)
 {
-	struct ethercom *ec = &sc->sc_port_ec;
+	struct ethercom *ec = sc->sc_port_ec;
 	struct ifnet *ifp = &ec->ec_if;
 #ifdef OCTEON_ETH_USE_GMX_CAM
 	struct ether_multi *enm;



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

2019-05-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue May 28 15:30:39 UTC 2019

Modified Files:
src/external/gpl3/gdb/dist/gdb: alpha-bsd-nat.c amd64-bsd-nat.c
amd64-nbsd-tdep.c arm-nbsd-nat.c event-loop.h hppa-nbsd-nat.c
i386-bsd-nat.c inf-ptrace.c m68k-bsd-nat.c mips-nbsd-nat.c
nbsd-nat.c nbsd-nat.h ppc-nbsd-nat.c sh-nbsd-nat.c sparc-nat.c
vax-bsd-nat.c x86-bsd-nat.c

Log Message:
Start adjusting to the c++ world.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gdb/dist/gdb/alpha-bsd-nat.c \
src/external/gpl3/gdb/dist/gdb/mips-nbsd-nat.c
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gdb/dist/gdb/amd64-bsd-nat.c \
src/external/gpl3/gdb/dist/gdb/i386-bsd-nat.c \
src/external/gpl3/gdb/dist/gdb/nbsd-nat.h
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gdb/dist/gdb/amd64-nbsd-tdep.c \
src/external/gpl3/gdb/dist/gdb/hppa-nbsd-nat.c \
src/external/gpl3/gdb/dist/gdb/ppc-nbsd-nat.c \
src/external/gpl3/gdb/dist/gdb/sh-nbsd-nat.c \
src/external/gpl3/gdb/dist/gdb/vax-bsd-nat.c \
src/external/gpl3/gdb/dist/gdb/x86-bsd-nat.c
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gdb/dist/gdb/arm-nbsd-nat.c
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gdb/dist/gdb/event-loop.h \
src/external/gpl3/gdb/dist/gdb/m68k-bsd-nat.c
cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/gdb/dist/gdb/inf-ptrace.c
cvs rdiff -u -r1.10 -r1.11 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gdb/dist/gdb/sparc-nat.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/gdb

2019-05-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue May 28 15:30:39 UTC 2019

Modified Files:
src/external/gpl3/gdb/dist/gdb: alpha-bsd-nat.c amd64-bsd-nat.c
amd64-nbsd-tdep.c arm-nbsd-nat.c event-loop.h hppa-nbsd-nat.c
i386-bsd-nat.c inf-ptrace.c m68k-bsd-nat.c mips-nbsd-nat.c
nbsd-nat.c nbsd-nat.h ppc-nbsd-nat.c sh-nbsd-nat.c sparc-nat.c
vax-bsd-nat.c x86-bsd-nat.c

Log Message:
Start adjusting to the c++ world.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gdb/dist/gdb/alpha-bsd-nat.c \
src/external/gpl3/gdb/dist/gdb/mips-nbsd-nat.c
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gdb/dist/gdb/amd64-bsd-nat.c \
src/external/gpl3/gdb/dist/gdb/i386-bsd-nat.c \
src/external/gpl3/gdb/dist/gdb/nbsd-nat.h
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gdb/dist/gdb/amd64-nbsd-tdep.c \
src/external/gpl3/gdb/dist/gdb/hppa-nbsd-nat.c \
src/external/gpl3/gdb/dist/gdb/ppc-nbsd-nat.c \
src/external/gpl3/gdb/dist/gdb/sh-nbsd-nat.c \
src/external/gpl3/gdb/dist/gdb/vax-bsd-nat.c \
src/external/gpl3/gdb/dist/gdb/x86-bsd-nat.c
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gdb/dist/gdb/arm-nbsd-nat.c
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gdb/dist/gdb/event-loop.h \
src/external/gpl3/gdb/dist/gdb/m68k-bsd-nat.c
cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/gdb/dist/gdb/inf-ptrace.c
cvs rdiff -u -r1.10 -r1.11 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gdb/dist/gdb/sparc-nat.c

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/dist/gdb/alpha-bsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/alpha-bsd-nat.c:1.6 src/external/gpl3/gdb/dist/gdb/alpha-bsd-nat.c:1.7
--- src/external/gpl3/gdb/dist/gdb/alpha-bsd-nat.c:1.6	Sun May 26 17:40:01 2019
+++ src/external/gpl3/gdb/dist/gdb/alpha-bsd-nat.c	Tue May 28 11:30:39 2019
@@ -103,7 +103,7 @@ alpha_bsd_nat_target::fetch_registers (s
   struct reg gregs;
 
   if (ptrace (PT_GETREGS, regcache->ptid ().pid (),
-		  (PTRACE_TYPE_ARG3) &gregs, ptid_get_lwp (inferior_ptid)) == -1) 
+		  (PTRACE_TYPE_ARG3) &gregs, inferior_ptid.lwp ()) == -1) 
 	perror_with_name (_("Couldn't get registers"));
 
   alphabsd_supply_reg (regcache, (char *) &gregs, regno);
@@ -117,7 +117,7 @@ alpha_bsd_nat_target::fetch_registers (s
   struct fpreg fpregs;
 
   if (ptrace (PT_GETFPREGS, regcache->ptid ().pid (),
-		  (PTRACE_TYPE_ARG3) &fpregs, ptid_get_lwp (inferior_ptid)) == -1)
+		  (PTRACE_TYPE_ARG3) &fpregs, inferior_ptid.lwp ()) == -1)
 	perror_with_name (_("Couldn't get floating point status"));
 
   alphabsd_supply_fpreg (regcache, (char *) &fpregs, regno);
@@ -134,13 +134,13 @@ alpha_bsd_nat_target::store_registers (s
 {
   struct reg gregs;
   if (ptrace (PT_GETREGS, regcache->ptid ().pid (),
-  (PTRACE_TYPE_ARG3) &gregs, ptid_get_lwp (inferior_ptid)) == -1)
+  (PTRACE_TYPE_ARG3) &gregs, inferior_ptid.lwp ()) == -1)
 perror_with_name (_("Couldn't get registers"));
 
   alphabsd_fill_reg (regcache, (char *) &gregs, regno);
 
   if (ptrace (PT_SETREGS, regcache->ptid ().pid (),
-  (PTRACE_TYPE_ARG3) &gregs, ptid_get_lwp (inferior_ptid)) == -1) 
+  (PTRACE_TYPE_ARG3) &gregs, inferior_ptid.lwp ()) == -1) 
 perror_with_name (_("Couldn't write registers"));
 
   if (regno != -1)
@@ -153,13 +153,13 @@ alpha_bsd_nat_target::store_registers (s
   struct fpreg fpregs;
 
   if (ptrace (PT_GETFPREGS, regcache->ptid ().pid (),
-		  (PTRACE_TYPE_ARG3) &fpregs, ptid_get_lwp (inferior_ptid)) == -1)
+		  (PTRACE_TYPE_ARG3) &fpregs, inferior_ptid.lwp ()) == -1)
 	perror_with_name (_("Couldn't get floating point status"));
 
   alphabsd_fill_fpreg (regcache, (char *) &fpregs, regno);
 
   if (ptrace (PT_SETFPREGS, regcache->ptid ().pid (),
-		  (PTRACE_TYPE_ARG3) &fpregs, ptid_get_lwp (inferior_ptid)) == -1) 
+		  (PTRACE_TYPE_ARG3) &fpregs, inferior_ptid.lwp ()) == -1) 
 	perror_with_name (_("Couldn't write floating point status"));
 }
 }
Index: src/external/gpl3/gdb/dist/gdb/mips-nbsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/mips-nbsd-nat.c:1.6 src/external/gpl3/gdb/dist/gdb/mips-nbsd-nat.c:1.7
--- src/external/gpl3/gdb/dist/gdb/mips-nbsd-nat.c:1.6	Sun May 26 17:40:01 2019
+++ src/external/gpl3/gdb/dist/gdb/mips-nbsd-nat.c	Tue May 28 11:30:39 2019
@@ -73,7 +73,7 @@ mips_nbsd_nat_target::fetch_registers (s
   struct reg regs;
 
   if (ptrace (PT_GETREGS, ptid_get_pid (inferior_ptid),
-		  (PTRACE_TYPE_ARG3) ®s, ptid_get_lwp (inferior_ptid)) == -1)
+		  (PTRACE_TYPE_ARG3) ®s, inferior_ptid.lwp ()) == -1)
 	perror_with_name (_("Couldn't get registers"));
   
   mipsnbsd_supply_reg (regcache, (char *) ®s, regno);
@@ -87,7 +87,7 @@ mips_nbsd_nat_target::fetch_registers (s
   stru

CVS commit: src/sys/arch/x86/x86

2019-05-28 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue May 28 16:43:24 UTC 2019

Modified Files:
src/sys/arch/x86/x86: procfs_machdep.c

Log Message:
Avoid the 1<<31 construct

Shift unsigned int rather than signed one.

Detected with kUBSan when reading /proc/cpuinfo.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/x86/x86/procfs_machdep.c

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



CVS commit: src/sys/arch/x86/x86

2019-05-28 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue May 28 16:43:24 UTC 2019

Modified Files:
src/sys/arch/x86/x86: procfs_machdep.c

Log Message:
Avoid the 1<<31 construct

Shift unsigned int rather than signed one.

Detected with kUBSan when reading /proc/cpuinfo.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/x86/x86/procfs_machdep.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/procfs_machdep.c
diff -u src/sys/arch/x86/x86/procfs_machdep.c:1.31 src/sys/arch/x86/x86/procfs_machdep.c:1.32
--- src/sys/arch/x86/x86/procfs_machdep.c:1.31	Thu May 16 04:26:13 2019
+++ src/sys/arch/x86/x86/procfs_machdep.c	Tue May 28 16:43:24 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: procfs_machdep.c,v 1.31 2019/05/16 04:26:13 msaitoh Exp $ */
+/*	$NetBSD: procfs_machdep.c,v 1.32 2019/05/28 16:43:24 kamil Exp $ */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -42,7 +42,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: procfs_machdep.c,v 1.31 2019/05/16 04:26:13 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_machdep.c,v 1.32 2019/05/28 16:43:24 kamil Exp $");
 
 #include 
 #include 
@@ -235,7 +235,7 @@ procfs_getonefeatreg(uint32_t reg, const
 	size_t l;
 
 	for (size_t i = 0; i < 32; i++) {
-		if ((reg & (1 << i)) && table[i]) {
+		if ((reg & (1U << i)) && table[i]) {
 			l = snprintf(p, *left, "%s ", table[i]);
 			if (l < *left) {
 *left -= l;



CVS commit: src/sys/dev/i2c

2019-05-28 Thread Tobias Nygren
Module Name:src
Committed By:   tnn
Date:   Tue May 28 17:17:16 UTC 2019

Modified Files:
src/sys/dev/i2c: ssdfb_i2c.c

Log Message:
remove superfluous parentheses


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/i2c/ssdfb_i2c.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/i2c/ssdfb_i2c.c
diff -u src/sys/dev/i2c/ssdfb_i2c.c:1.2 src/sys/dev/i2c/ssdfb_i2c.c:1.3
--- src/sys/dev/i2c/ssdfb_i2c.c:1.2	Sun Mar 17 01:47:57 2019
+++ src/sys/dev/i2c/ssdfb_i2c.c	Tue May 28 17:17:16 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: ssdfb_i2c.c,v 1.2 2019/03/17 01:47:57 tnn Exp $ */
+/* $NetBSD: ssdfb_i2c.c,v 1.3 2019/05/28 17:17:16 tnn Exp $ */
 
 /*
  * Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ssdfb_i2c.c,v 1.2 2019/03/17 01:47:57 tnn Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ssdfb_i2c.c,v 1.3 2019/05/28 17:17:16 tnn Exp $");
 
 #include 
 #include 
@@ -214,7 +214,7 @@ ssdfb_i2c_transfer_rect_ssd1306(void *co
 	int flags = usepoll ? I2C_F_POLL : 0;
 	uint8_t cc = 0;
 	uint8_t cb = SSDFB_I2C_CTRL_BYTE_DATA_MASK;
-	size_t len = (tocol + 1 - fromcol);
+	size_t len = tocol + 1 - fromcol;
 	int error;
 	/*
 	 * SSD1306 does not implement the Continuation bit correctly.
@@ -258,7 +258,7 @@ ssdfb_i2c_transfer_rect_sh1106(void *coo
 	int flags = usepoll ? I2C_F_POLL : 0;
 	uint8_t cb = SSDFB_I2C_CTRL_BYTE_DATA_MASK;
 	uint8_t cc = SSDFB_I2C_CTRL_BYTE_CONTINUATION_MASK;
-	size_t len = (tocol + 1 - fromcol);
+	size_t len = tocol + 1 - fromcol;
 	int error;
 	uint8_t cmds[] = {
 		SSDFB_CMD_SET_PAGE_START_ADDRESS_BASE + frompage,
@@ -305,7 +305,7 @@ ssdfb_smbus_transfer_rect(void *cookie, 
 	int flags = usepoll ? I2C_F_POLL : 0;
 	uint8_t cb = SSDFB_I2C_CTRL_BYTE_DATA_MASK;
 	uint8_t cc = 0;
-	size_t len = (tocol + 1 - fromcol);
+	size_t len = tocol + 1 - fromcol;
 	uint8_t cmd_higher_col =
 	SSDFB_CMD_SET_HIGHER_COLUMN_START_ADDRESS_BASE + (fromcol >> 4);
 	uint8_t cmd_lower_col =



CVS commit: src/sys/dev/i2c

2019-05-28 Thread Tobias Nygren
Module Name:src
Committed By:   tnn
Date:   Tue May 28 17:17:16 UTC 2019

Modified Files:
src/sys/dev/i2c: ssdfb_i2c.c

Log Message:
remove superfluous parentheses


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/i2c/ssdfb_i2c.c

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



Re: audio2

2019-05-28 Thread Andreas Gustafsson
On May 23, Valery Ushakov wrote:
> This feels inverted.  The mathematically correct operation required
> here is symmetric division (that rounds towards zero). 

Rounding towards zero is absolutely the wrong thing to do for audio,
because it introduces a discontinuity, which in turn causes
unnecessary distortion of the audio.

For example, if your original signal is a linear ramp

  ... -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5 ...

and you divide it by two rounding towards zero, you get

  ... -2, -2, -1, -1, 0, 0, 0, 1, 1, 2, 2 ...

where every value is repeated twice, except that the value zero occurs
three times, so the ramp is no longer linear - it now has a visible
and audible kink in the middle.  And this kink is in the worst
possible place of the amplitude scale, at zero where it will affect
even the weakest signals, distorting every zero crossing.

The proper way to do audio scaling is using dither, but failing that,
at least the values should be consistently rounded either up or down,
which will at worst introduce a small DC offset which you can't hear,
but no crossover distortion.
-- 
Andreas Gustafsson, g...@gson.org


CVS commit: src/etc

2019-05-28 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue May 28 18:25:23 UTC 2019

Modified Files:
src/etc: motd.beta motd.current motd.rc motd.stable

Log Message:
http -> https


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/etc/motd.beta src/etc/motd.rc \
src/etc/motd.stable
cvs rdiff -u -r1.6 -r1.7 src/etc/motd.current

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



CVS commit: src/etc

2019-05-28 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue May 28 18:25:23 UTC 2019

Modified Files:
src/etc: motd.beta motd.current motd.rc motd.stable

Log Message:
http -> https


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/etc/motd.beta src/etc/motd.rc \
src/etc/motd.stable
cvs rdiff -u -r1.6 -r1.7 src/etc/motd.current

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

Modified files:

Index: src/etc/motd.beta
diff -u src/etc/motd.beta:1.4 src/etc/motd.beta:1.5
--- src/etc/motd.beta:1.4	Thu Aug 30 15:56:34 2007
+++ src/etc/motd.beta	Tue May 28 18:25:23 2019
@@ -10,7 +10,7 @@ use the system with care.
 You are encouraged to test this version as thoroughly as possible.  Should you
 encounter any problem, please report it back to the development team using the
 send-pr(1) utility (requires a working MTA).  If yours is not properly set up,
-use the web interface at: http://www.NetBSD.org/support/send-pr.html
+use the web interface at: https://www.NetBSD.org/support/send-pr.html
 
 Thank you for helping us test and improve this beta NetBSD release.
 
Index: src/etc/motd.rc
diff -u src/etc/motd.rc:1.4 src/etc/motd.rc:1.5
--- src/etc/motd.rc:1.4	Thu Aug 30 15:56:34 2007
+++ src/etc/motd.rc	Tue May 28 18:25:23 2019
@@ -10,7 +10,7 @@ contain unresolved issues.
 You are encouraged to test this version as thoroughly as possible.  Should you
 encounter any problem, please report it back to the development team using the
 send-pr(1) utility (requires a working MTA).  If yours is not properly set up,
-use the web interface at: http://www.NetBSD.org/support/send-pr.html
+use the web interface at: https://www.NetBSD.org/support/send-pr.html
 
 Thank you for helping us test and improve this NetBSD release candidate.
 
Index: src/etc/motd.stable
diff -u src/etc/motd.stable:1.4 src/etc/motd.stable:1.5
--- src/etc/motd.stable:1.4	Thu Aug 30 15:56:34 2007
+++ src/etc/motd.stable	Tue May 28 18:25:23 2019
@@ -10,7 +10,7 @@ release quality.  Please bear this in mi
 You are encouraged to test this version as thoroughly as possible.  Should you
 encounter any problem, please report it back to the development team using the
 send-pr(1) utility (requires a working MTA).  If yours is not properly set up,
-use the web interface at: http://www.NetBSD.org/support/send-pr.html
+use the web interface at: https://www.NetBSD.org/support/send-pr.html
 
 Thank you for helping us test and improve this NetBSD branch.
 

Index: src/etc/motd.current
diff -u src/etc/motd.current:1.6 src/etc/motd.current:1.7
--- src/etc/motd.current:1.6	Mon Mar 23 18:19:16 2009
+++ src/etc/motd.current	Tue May 28 18:25:23 2019
@@ -10,7 +10,7 @@ and use the system with care.
 You are encouraged to test this version as thoroughly as possible.  Should you
 encounter any problem, please report it back to the development team using the
 send-pr(1) utility (requires a working MTA).  If yours is not properly set up,
-use the web interface at: http://www.NetBSD.org/support/send-pr.html
+use the web interface at: https://www.NetBSD.org/support/send-pr.html
 
 Thank you for helping us test and improve NetBSD.
 



CVS commit: src/sys/dev/i2c

2019-05-28 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue May 28 20:22:18 UTC 2019

Modified Files:
src/sys/dev/i2c: axppmic.c

Log Message:
Add more axp809 controls


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/i2c/axppmic.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/i2c

2019-05-28 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue May 28 20:22:18 UTC 2019

Modified Files:
src/sys/dev/i2c: axppmic.c

Log Message:
Add more axp809 controls


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/i2c/axppmic.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/i2c/axppmic.c
diff -u src/sys/dev/i2c/axppmic.c:1.23 src/sys/dev/i2c/axppmic.c:1.24
--- src/sys/dev/i2c/axppmic.c:1.23	Tue May 28 10:14:46 2019
+++ src/sys/dev/i2c/axppmic.c	Tue May 28 20:22:18 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: axppmic.c,v 1.23 2019/05/28 10:14:46 jmcneill Exp $ */
+/* $NetBSD: axppmic.c,v 1.24 2019/05/28 20:22:18 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2014-2018 Jared McNeill 
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: axppmic.c,v 1.23 2019/05/28 10:14:46 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: axppmic.c,v 1.24 2019/05/28 20:22:18 jmcneill Exp $");
 
 #include 
 #include 
@@ -114,6 +114,7 @@ struct axppmic_ctrl {
 	u_int		c_step1cnt;
 	u_int		c_step2;
 	u_int		c_step2cnt;
+	u_int		c_step2start;
 
 	uint8_t		c_enable_reg;
 	uint8_t		c_enable_mask;
@@ -140,6 +141,15 @@ struct axppmic_ctrl {
 	  .c_enable_val = (emask), .c_disable_val = 0,			\
 	  .c_voltage_reg = (vreg), .c_voltage_mask = (vmask) }
 
+#define AXP_CTRL2_RANGE(name, min, max, step1, step1cnt, step2start, step2, step2cnt, ereg, emask, vreg, vmask) \
+	{ .c_name = (name), .c_min = (min), .c_max = (max),		\
+	  .c_step1 = (step1), .c_step1cnt = (step1cnt),			\
+	  .c_step2start = (step2start),	\
+	  .c_step2 = (step2), .c_step2cnt = (step2cnt),			\
+	  .c_enable_reg = (ereg), .c_enable_mask = (emask),		\
+	  .c_enable_val = (emask), .c_disable_val = 0,			\
+	  .c_voltage_reg = (vreg), .c_voltage_mask = (vmask) }
+
 #define AXP_CTRL_IO(name, min, max, step, ereg, emask, eval, dval, vreg, vmask)	\
 	{ .c_name = (name), .c_min = (min), .c_max = (max),		\
 	  .c_step1 = (step), .c_step1cnt = (((max) - (min)) / (step)) + 1, \
@@ -148,6 +158,10 @@ struct axppmic_ctrl {
 	  .c_enable_val = (eval), .c_disable_val = (dval),		\
 	  .c_voltage_reg = (vreg), .c_voltage_mask = (vmask) }
 
+#define AXP_CTRL_SW(name, ereg, emask)	\
+	{ .c_name = (name), 		\
+	  .c_enable_reg = (ereg), .c_enable_mask = (emask),		\
+	  .c_enable_val = (emask), .c_disable_val = 0 }
 
 static const struct axppmic_ctrl axp803_ctrls[] = {
 	AXP_CTRL("dldo1", 700, 3300, 100,
@@ -222,7 +236,39 @@ static const struct axppmic_ctrl axp805_
 };
 
 static const struct axppmic_ctrl axp809_ctrls[] = {
-	/* TODO: This list is incomplete */
+	AXP_CTRL("dc5ldo", 700, 1400, 100,
+		0x10, __BIT(0), 0x1c, __BITS(2,0)),
+	AXP_CTRL("dcdc1", 1600, 3400, 100,
+		0x10, __BIT(1), 0x21, __BITS(4,0)),
+	AXP_CTRL("dcdc2", 600, 1540, 20,
+		0x10, __BIT(2), 0x22, __BITS(5,0)),
+	AXP_CTRL("dcdc3", 600, 1860, 20,
+		0x10, __BIT(3), 0x23, __BITS(5,0)),
+	AXP_CTRL2_RANGE("dcdc4", 600, 2600, 20, 47, 1800, 100, 9,
+		0x10, __BIT(4), 0x24, __BITS(5,0)),
+	AXP_CTRL("dcdc5", 1000, 2550, 50,
+		0x10, __BIT(5), 0x25, __BITS(4,0)),
+	AXP_CTRL("aldo1", 700, 3300, 100,
+		0x10, __BIT(6), 0x28, __BITS(4,0)),
+	AXP_CTRL("aldo2", 700, 3300, 100,
+		0x10, __BIT(7), 0x29, __BITS(4,0)),
+	AXP_CTRL("eldo1", 700, 3300, 100,
+		0x12, __BIT(0), 0x19, __BITS(4,0)),
+	AXP_CTRL("eldo2", 700, 3300, 100,
+		0x12, __BIT(1), 0x1a, __BITS(4,0)),
+	AXP_CTRL("eldo3", 700, 3300, 100,
+		0x12, __BIT(2), 0x1b, __BITS(4,0)),
+	AXP_CTRL2_RANGE("dldo1", 700, 4000, 100, 26, 3400, 200, 4,
+		0x12, __BIT(3), 0x15, __BITS(4,0)),
+	AXP_CTRL("dldo2", 700, 3300, 100,
+		0x12, __BIT(4), 0x16, __BITS(4,0)),
+	AXP_CTRL("aldo3", 700, 3300, 100,
+		0x12, __BIT(5), 0x2a, __BITS(4,0)),
+	AXP_CTRL_SW("sw",
+		0x12, __BIT(6)),
+	/* dc1sw is another switch for dcdc1 */
+	AXP_CTRL("dc1sw", 1600, 3400, 100,
+		0x12, __BIT(7), 0x21, __BITS(4,0)),
 	AXP_CTRL_IO("ldo_io0", 700, 3300, 100,
 		0x90, __BITS(3,0), 0x3, 0x7, 0x91, __BITS(4,0)),
 	AXP_CTRL_IO("ldo_io1", 700, 3300, 100,
@@ -454,6 +500,10 @@ axppmic_set_voltage(i2c_tag_t tag, i2c_a
 		++reg_val;
 		vol += c->c_step1;
 	}
+
+	if (c->c_step2start)
+		vol = c->c_step2start;
+
 	for (nstep = 0; nstep < c->c_step2cnt && vol < min; nstep++) {
 		++reg_val;
 		vol += c->c_step2;
@@ -492,6 +542,9 @@ axppmic_get_voltage(i2c_tag_t tag, i2c_a
 	reg_val = __SHIFTOUT(val, c->c_voltage_mask);
 	if (reg_val < c->c_step1cnt) {
 		*pvol = c->c_min + reg_val * c->c_step1;
+	} else if (c->c_step2start) {
+		*pvol = c->c_step2start +
+		((reg_val - c->c_step1cnt) * c->c_step2);
 	} else {
 		*pvol = c->c_min + (c->c_step1cnt * c->c_step1) +
 		((reg_val - c->c_step1cnt) * c->c_step2);



CVS commit: src/share/man/man4

2019-05-28 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue May 28 21:31:53 UTC 2019

Modified Files:
src/share/man/man4: kcov.4

Log Message:
Correct the example in kcov(4)

mmap(2) has to be called with MAP_SHARED, not MAP_PRIVATE.

Reported by Maciej Grochowski.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/share/man/man4/kcov.4

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/man4/kcov.4
diff -u src/share/man/man4/kcov.4:1.5 src/share/man/man4/kcov.4:1.6
--- src/share/man/man4/kcov.4:1.5	Sun May 26 01:44:34 2019
+++ src/share/man/man4/kcov.4	Tue May 28 21:31:53 2019
@@ -1,4 +1,4 @@
-.\"	$NetBSD: kcov.4,v 1.5 2019/05/26 01:44:34 kamil Exp $
+.\"	$NetBSD: kcov.4,v 1.6 2019/05/28 21:31:53 kamil Exp $
 .\"
 .\" Copyright (c) 2018 Anton Lindqvist 
 .\"
@@ -14,7 +14,7 @@
 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 .\"
-.Dd May 26, 2019
+.Dd May 28, 2019
 .Dt KCOV 4
 .Os
 .Sh NAME
@@ -165,7 +165,7 @@ main(void)
 	if (ioctl(fd, KCOV_IOC_SETBUFSIZE, &size) == -1)
 		err(1, "ioctl: KCOV_IOC_SETBUFSIZE");
 	cover = mmap(NULL, size * KCOV_ENTRY_SIZE,
-	PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
+	PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
 	if (cover == MAP_FAILED)
 		err(1, "mmap");
 	mode = KCOV_MODE_TRACE_PC;



CVS commit: src/share/man/man4

2019-05-28 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue May 28 21:31:53 UTC 2019

Modified Files:
src/share/man/man4: kcov.4

Log Message:
Correct the example in kcov(4)

mmap(2) has to be called with MAP_SHARED, not MAP_PRIVATE.

Reported by Maciej Grochowski.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/share/man/man4/kcov.4

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



CVS commit: src/sys/arch/arm/sunxi

2019-05-28 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue May 28 21:56:04 UTC 2019

Modified Files:
src/sys/arch/arm/sunxi: files.sunxi
Added Files:
src/sys/arch/arm/sunxi: sun9i_a80_usbclk.c sun9i_a80_usbphy.c

Log Message:
Add A80 USB support.


To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 src/sys/arch/arm/sunxi/files.sunxi
cvs rdiff -u -r0 -r1.1 src/sys/arch/arm/sunxi/sun9i_a80_usbclk.c \
src/sys/arch/arm/sunxi/sun9i_a80_usbphy.c

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



CVS commit: src/sys/arch/arm/sunxi

2019-05-28 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue May 28 21:56:04 UTC 2019

Modified Files:
src/sys/arch/arm/sunxi: files.sunxi
Added Files:
src/sys/arch/arm/sunxi: sun9i_a80_usbclk.c sun9i_a80_usbphy.c

Log Message:
Add A80 USB support.


To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 src/sys/arch/arm/sunxi/files.sunxi
cvs rdiff -u -r0 -r1.1 src/sys/arch/arm/sunxi/sun9i_a80_usbclk.c \
src/sys/arch/arm/sunxi/sun9i_a80_usbphy.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/arm/sunxi/files.sunxi
diff -u src/sys/arch/arm/sunxi/files.sunxi:1.63 src/sys/arch/arm/sunxi/files.sunxi:1.64
--- src/sys/arch/arm/sunxi/files.sunxi:1.63	Mon May 27 21:12:54 2019
+++ src/sys/arch/arm/sunxi/files.sunxi	Tue May 28 21:56:04 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: files.sunxi,v 1.63 2019/05/27 21:12:54 jmcneill Exp $
+#	$NetBSD: files.sunxi,v 1.64 2019/05/28 21:56:04 jmcneill Exp $
 #
 # Configuration info for Allwinner sunxi family SoCs
 #
@@ -97,6 +97,11 @@ device	sun9immcclk
 attach	sun9immcclk at fdt with sunxi_a80_mmcclk
 file	arch/arm/sunxi/sun9i_a80_mmcclk.c	sunxi_a80_mmcclk
 
+# USB HCI clocks (A80)
+device	sun9iusbclk
+attach	sun9iusbclk at fdt with sunxi_a80_usbclk
+file	arch/arm/sunxi/sun9i_a80_usbclk.c	sunxi_a80_usbclk
+
 # CPUS clock driver (A80)
 device	sun9icpusclk
 attach	sun9icpusclk at fdt with sunxi_a80_cpusclk
@@ -150,6 +155,10 @@ device	sunxiusb3phy
 attach	sunxiusb3phy at fdt with sunxi_usb3phy
 file	arch/arm/sunxi/sunxi_usb3phy.c		sunxi_usb3phy
 
+device	sun9iusbphy
+attach	sun9iusbphy at fdt with sunxi_a80_usbphy
+file	arch/arm/sunxi/sun9i_a80_usbphy.c	sunxi_a80_usbphy
+
 # EHCI
 attach	ehci at fdt with ehci_fdt
 file	dev/fdt/ehci_fdt.c			ehci_fdt	

Added files:

Index: src/sys/arch/arm/sunxi/sun9i_a80_usbclk.c
diff -u /dev/null src/sys/arch/arm/sunxi/sun9i_a80_usbclk.c:1.1
--- /dev/null	Tue May 28 21:56:04 2019
+++ src/sys/arch/arm/sunxi/sun9i_a80_usbclk.c	Tue May 28 21:56:03 2019
@@ -0,0 +1,147 @@
+/* $NetBSD: sun9i_a80_usbclk.c,v 1.1 2019/05/28 21:56:03 jmcneill Exp $ */
+
+/*-
+ * Copyright (c) 2017 Jared McNeill 
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+#include 
+
+__KERNEL_RCSID(1, "$NetBSD: sun9i_a80_usbclk.c,v 1.1 2019/05/28 21:56:03 jmcneill Exp $");
+
+#include 
+#include 
+#include 
+#include 
+
+#include 
+
+#include 
+
+enum {
+	CLK_BUS_HCI0 = 0,
+	CLK_USB_OHCI0,
+	CLK_BUS_HCI1,
+	CLK_BUS_HCI2,
+	CLK_USB_OHCI2,
+	CLK_USB0_PHY,
+	CLK_USB1_HSIC,
+	CLK_USB1_PHY,
+	CLK_USB2_HSIC,
+	CLK_USB2_PHY,
+	CLK_USB_HSIC
+};
+
+enum {
+	RST_USB0_HCI = 0,
+	RST_USB1_HCI,
+	RST_USB2_HCI,
+	RST_USB0_PHY,
+	RST_USB1_HSIC,
+	RST_USB1_PHY,
+	RST_USB2_HSIC,
+	RST_USB2_PHY
+};
+
+#define	HCI_SCR		0x00
+#define	HCI_PCR		0x04
+
+static int sun9i_a80_usbclk_match(device_t, cfdata_t, void *);
+static void sun9i_a80_usbclk_attach(device_t, device_t, void *);
+
+static const char * compatible[] = {
+	"allwinner,sun9i-a80-usb-clks",
+	NULL
+};
+
+CFATTACH_DECL_NEW(sunxi_a80_usbclk, sizeof(struct sunxi_ccu_softc),
+	sun9i_a80_usbclk_match, sun9i_a80_usbclk_attach, NULL, NULL);
+
+static struct sunxi_ccu_reset sun9i_a80_usbclk_resets[] = {
+	SUNXI_CCU_RESET(RST_USB0_HCI, HCI_SCR, 17),
+	SUNXI_CCU_RESET(RST_USB1_HCI, HCI_SCR, 18),
+	SUNXI_CCU_RESET(RST_USB2_HCI, HCI_SCR, 19),
+	SUNXI_CCU_RESET(RST_USB0_PHY, HCI_PCR, 17),
+
+	SUNXI_CCU_RESET(RST_USB1_HSIC, HCI_PCR, 18),
+	SUNXI_CCU_RESET(RST_USB1_PHY, HCI_PCR, 19),
+	SUNXI_CCU_RESET(RST_USB2_HSIC, HCI_PCR, 20),
+	SUNXI_CCU_RESET(RST_USB2_PHY, HCI_PCR, 21),
+};
+
+static struct sunxi_ccu_clk sun9i_a80_usbclk_clks[] = {
+	SUNXI_CCU_GATE(CLK_BUS_HCI0, "bus-hci0", "bus", HCI_SCR, 1),
+	SUNX

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

2019-05-28 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue May 28 21:56:24 UTC 2019

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

Log Message:
Add sun9iusbclk, sun9iusbphy


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/evbarm/conf/GENERIC

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



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

2019-05-28 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue May 28 21:56:24 UTC 2019

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

Log Message:
Add sun9iusbclk, sun9iusbphy


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/evbarm/conf/GENERIC

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

Modified files:

Index: src/sys/arch/evbarm/conf/GENERIC
diff -u src/sys/arch/evbarm/conf/GENERIC:1.34 src/sys/arch/evbarm/conf/GENERIC:1.35
--- src/sys/arch/evbarm/conf/GENERIC:1.34	Mon May 27 21:13:29 2019
+++ src/sys/arch/evbarm/conf/GENERIC	Tue May 28 21:56:24 2019
@@ -1,5 +1,5 @@
 #
-#	$NetBSD: GENERIC,v 1.34 2019/05/27 21:13:29 jmcneill Exp $
+#	$NetBSD: GENERIC,v 1.35 2019/05/28 21:56:24 jmcneill Exp $
 #
 #	GENERIC ARM (aarch32) kernel
 #
@@ -254,6 +254,7 @@ sunxigmacclk*	at fdt? pass 2		# Allwinne
 sun8iapbclk*	at fdt? pass 2		# Allwinner A23 APB0
 sun9icpusclk*	at fdt? pass 2		# Allwinner A80 CPUS
 sun9immcclk*	at fdt? pass 2		# Allwinner A80 SD/MMC-COMM
+sun9iusbclk*	at fdt? pass 2		# Allwinner A80 USB HCI
 tegra124car*	at fdt? pass 3		# NVIDIA Tegra CAR (T124)
 tegra210car*	at fdt? pass 3		# NVIDIA Tegra CAR (T210)
 
@@ -585,6 +586,7 @@ tegrasoctherm*	at fdt?			# NVIDIA Tegra 
 exusbphy*	at fdt? pass 9		# Samsung Exynos USB2 PHY
 exusbdrdphy*	at fdt? pass 9		# Samsung Exynos USB3 DRD PHY
 mesonusbphy*	at fdt? pass 9		# Amlogic Meson USB2 PHY
+sun9iusbphy*	at fdt? pass 9		# Allwinner A80 USB PHY
 sunxiusbphy*	at fdt? pass 9		# Allwinner USB PHY
 sunxiusb3phy*	at fdt? pass 9		# Allwinner USB3 PHY
 tegrausbphy*	at fdt?			# NVIDIA Tegra USB PHY



CVS commit: src/sys/arch/arm/dts

2019-05-28 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue May 28 21:57:21 UTC 2019

Added Files:
src/sys/arch/arm/dts: sun9i-a80-cubieboard4.dts

Log Message:
Enable USB2 controllers on Cubieboard4.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/sys/arch/arm/dts/sun9i-a80-cubieboard4.dts

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

Added files:

Index: src/sys/arch/arm/dts/sun9i-a80-cubieboard4.dts
diff -u /dev/null src/sys/arch/arm/dts/sun9i-a80-cubieboard4.dts:1.1
--- /dev/null	Tue May 28 21:57:21 2019
+++ src/sys/arch/arm/dts/sun9i-a80-cubieboard4.dts	Tue May 28 21:57:21 2019
@@ -0,0 +1,79 @@
+/* $NetBSD: sun9i-a80-cubieboard4.dts,v 1.1 2019/05/28 21:57:21 jmcneill Exp $ */
+
+/*-
+ * Copyright (c) 2019 Jared McNeill 
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+#include "../../../external/gpl2/dts/dist/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts"
+
+/ {
+	reg_usb1_vbus: usb1-vbus {
+		compatible = "regulator-fixed";
+		pinctrl-names = "default";
+		regulator-min-microvolt = <500>;
+		regulator-max-microvolt = <500>;
+		enable-active-high;
+		gpio = <&pio 7 14 GPIO_ACTIVE_HIGH>;	/* PH14 */
+	};
+
+	reg_usb2_vbus: usb2-vbus {
+		compatible = "regulator-fixed";
+		pinctrl-names = "default";
+		regulator-min-microvolt = <500>;
+		regulator-max-microvolt = <500>;
+		enable-active-high;
+		gpio = <&pio 7 15 GPIO_ACTIVE_HIGH>;	/* PH15 */
+	};
+};
+
+&ehci0 {
+	status = "okay";
+};
+
+&ehci1 {
+	status = "okay";
+};
+
+&ehci2 {
+	status = "okay";
+};
+
+&ohci0 {
+	status = "okay";
+};
+
+&ohci2 {
+	status = "okay";
+};
+
+&usbphy1 {
+	phy-supply = <®_usb1_vbus>;
+	status = "okay";
+};
+
+&usbphy2 {
+	phy-supply = <®_usb2_vbus>;
+	status = "okay";
+};



CVS commit: src/sys/arch/arm/dts

2019-05-28 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue May 28 21:57:21 UTC 2019

Added Files:
src/sys/arch/arm/dts: sun9i-a80-cubieboard4.dts

Log Message:
Enable USB2 controllers on Cubieboard4.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/sys/arch/arm/dts/sun9i-a80-cubieboard4.dts

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-05-28 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Tue May 28 22:11:33 UTC 2019

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

Log Message:
UCS, UTF


To generate a diff of this commit:
cvs rdiff -u -r1.252 -r1.253 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/misc

2019-05-28 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Tue May 28 22:11:33 UTC 2019

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

Log Message:
UCS, UTF


To generate a diff of this commit:
cvs rdiff -u -r1.252 -r1.253 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.252 src/share/misc/acronyms.comp:1.253
--- src/share/misc/acronyms.comp:1.252	Thu May 16 10:28:19 2019
+++ src/share/misc/acronyms.comp	Tue May 28 22:11:32 2019
@@ -1,4 +1,4 @@
-$NetBSD: acronyms.comp,v 1.252 2019/05/16 10:28:19 sevan Exp $
+$NetBSD: acronyms.comp,v 1.253 2019/05/28 22:11:32 sevan Exp $
 3WHS	three-way handshake
 8VSB	8-state vestigial side band modulation
 AA	anti-aliasing
@@ -1536,6 +1536,8 @@ UB	undefined behavior
 UBSAN	Undefined Behavior Sanitizer
 UC	uncacheable
 UCS	uniform-cost search
+UCS	unified computing system
+UCS	universal coded character set
 UDMA	ultra DMA
 UDO	ultra density optical
 UDP	User Datagram Protocol
@@ -1563,6 +1565,7 @@ USB	universal serial bus
 USWC	uncacheable speculative write combining
 UT	unit test
 UTC	coordinated universal time
+UTF	unicode transformation formats
 UTP	unshielded twisted pair
 UUCP	Unix-to-Unix Copy Protocol
 UUID	universally unique identifier



CVS commit: src

2019-05-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 01:21:33 UTC 2019

Modified Files:
src/include: glob.h
src/lib/libc/gen: glob.3 glob.c

Log Message:
Add GLOB_TILDE_CHECK (from GNU)


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/include/glob.h
cvs rdiff -u -r1.43 -r1.44 src/lib/libc/gen/glob.3
cvs rdiff -u -r1.38 -r1.39 src/lib/libc/gen/glob.c

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



CVS commit: src

2019-05-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 01:21:33 UTC 2019

Modified Files:
src/include: glob.h
src/lib/libc/gen: glob.3 glob.c

Log Message:
Add GLOB_TILDE_CHECK (from GNU)


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/include/glob.h
cvs rdiff -u -r1.43 -r1.44 src/lib/libc/gen/glob.3
cvs rdiff -u -r1.38 -r1.39 src/lib/libc/gen/glob.c

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

Modified files:

Index: src/include/glob.h
diff -u src/include/glob.h:1.26 src/include/glob.h:1.27
--- src/include/glob.h:1.26	Mon Sep  6 10:38:56 2010
+++ src/include/glob.h	Tue May 28 21:21:33 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: glob.h,v 1.26 2010/09/06 14:38:56 christos Exp $	*/
+/*	$NetBSD: glob.h,v 1.27 2019/05/29 01:21:33 christos Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993
@@ -70,31 +70,32 @@ typedef struct {
 	int (*gl_stat)(const char *, __gl_stat_t *);
 } glob_t;
 
-#define	GLOB_APPEND	0x0001	/* Append to output from previous call. */
-#define	GLOB_DOOFFS	0x0002	/* Use gl_offs. */
-#define	GLOB_ERR	0x0004	/* Return on error. */
-#define	GLOB_MARK	0x0008	/* Append / to matching directories. */
-#define	GLOB_NOCHECK	0x0010	/* Return pattern itself if nothing matches. */
-#define	GLOB_NOSORT	0x0020	/* Don't sort. */
-#define	GLOB_NOESCAPE	0x1000	/* Disable backslash escaping. */
-
-#define	GLOB_NOSPACE	(-1)	/* Malloc call failed. */
-#define	GLOB_ABORTED	(-2)	/* Unignored error. */
-#define	GLOB_NOMATCH	(-3)	/* No match, and GLOB_NOCHECK was not set. */
-#define	GLOB_NOSYS	(-4)	/* Implementation does not support function. */
+#define	GLOB_APPEND	 0x1 /* Append to output from previous call. */
+#define	GLOB_DOOFFS	 0x2 /* Use gl_offs. */
+#define	GLOB_ERR	 0x4 /* Return on error. */
+#define	GLOB_MARK	 0x8 /* Append / to matching directories. */
+#define	GLOB_NOCHECK	 0x00010 /* Return pattern itself if nothing matches. */
+#define	GLOB_NOSORT	 0x00020 /* Don't sort. */
+#define	GLOB_NOESCAPE	 0x01000 /* Disable backslash escaping. */
+
+#define	GLOB_NOSPACE	 (-1)	 /* Malloc call failed. */
+#define	GLOB_ABORTED	 (-2)	 /* Unignored error. */
+#define	GLOB_NOMATCH	 (-3)	 /* No match, and GLOB_NOCHECK was not set. */
+#define	GLOB_NOSYS	 (-4)	 /* Implementation does not support function. */
 
 #if defined(_NETBSD_SOURCE) || defined(HAVE_NBTOOL_CONFIG_H)
-#define	GLOB_ALTDIRFUNC	0x0040	/* Use alternately specified directory funcs. */
-#define	GLOB_BRACE	0x0080	/* Expand braces ala csh. */
-#define	GLOB_MAGCHAR	0x0100	/* Pattern had globbing characters. */
-#define	GLOB_NOMAGIC	0x0200	/* GLOB_NOCHECK without magic chars (csh). */
-#define	GLOB_LIMIT	0x0400	/* Limit memory used by matches to ARG_MAX */
-#define	GLOB_TILDE	0x0800	/* Expand tilde names from the passwd file. */
-/*	GLOB_NOESCAPE	0x1000	above */
-#define	GLOB_PERIOD	0x2000	/* Allow metachars to match leading periods. */
-#define	GLOB_NO_DOTDIRS	0x4000	/* Make . and .. vanish from wildcards. */
-#define	GLOB_STAR	0x8000	/* Use glob ** to recurse directories */
-#define	GLOB_QUOTE	0	/* source compatibility */
+#define	GLOB_ALTDIRFUNC	 0x00040 /* Use alternately specified directory funcs. */
+#define	GLOB_BRACE	 0x00080 /* Expand braces ala csh. */
+#define	GLOB_MAGCHAR	 0x00100 /* Pattern had globbing characters. */
+#define	GLOB_NOMAGIC	 0x00200 /* GLOB_NOCHECK without magic chars (csh). */
+#define	GLOB_LIMIT	 0x00400 /* Limit memory used by matches to ARG_MAX */
+#define	GLOB_TILDE	 0x00800 /* Expand tilde names from the passwd file. */
+/*	GLOB_NOESCAPE	 0x01000 above */
+#define	GLOB_PERIOD	 0x02000 /* Allow metachars to match leading periods. */
+#define	GLOB_NO_DOTDIRS	 0x04000 /* Make . and .. vanish from wildcards. */
+#define	GLOB_STAR	 0x08000 /* Use glob ** to recurse directories */
+#define	GLOB_TILDE_CHECK 0x1 /* Expand tilde names from the passwd file. */
+#define	GLOB_QUOTE	 0	 /* source compatibility */
 
 #define	GLOB_ABEND	GLOB_ABORTED	/* source compatibility */
 #endif

Index: src/lib/libc/gen/glob.3
diff -u src/lib/libc/gen/glob.3:1.43 src/lib/libc/gen/glob.3:1.44
--- src/lib/libc/gen/glob.3:1.43	Mon Jul  3 17:32:49 2017
+++ src/lib/libc/gen/glob.3	Tue May 28 21:21:33 2019
@@ -1,4 +1,4 @@
-.\"	$NetBSD: glob.3,v 1.43 2017/07/03 21:32:49 wiz Exp $
+.\"	$NetBSD: glob.3,v 1.44 2019/05/29 01:21:33 christos Exp $
 .\"
 .\" Copyright (c) 1989, 1991, 1993, 1994
 .\"	The Regents of the University of California.  All rights reserved.
@@ -31,7 +31,7 @@
 .\"
 .\" @(#)glob.3	8.3 (Berkeley) 4/16/94
 .\"
-.Dd December 27, 2012
+.Dd May 28, 2019
 .Dt GLOB 3
 .Os
 .Sh NAME
@@ -200,7 +200,7 @@ The following values may also be include
 .Fa flags ,
 however, they are non-standard extensions to
 .St -p1003.2 .
-.Bl -tag -width GLOB_ALTDIRFUNC
+.Bl -tag -width GLOB_TILDE_CHECK
 .It Dv GLOB_ALTDIRFUNC
 The following additional fields in the pglob structure have been
 initialized with alternate functions for glob to 

CVS commit: src/external/gpl3/gdb/dist/readline

2019-05-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 01:37:55 UTC 2019

Modified Files:
src/external/gpl3/gdb/dist/readline: util.c

Log Message:
use snprintf


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gdb/dist/readline/util.c

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/dist/readline/util.c
diff -u src/external/gpl3/gdb/dist/readline/util.c:1.4 src/external/gpl3/gdb/dist/readline/util.c:1.5
--- src/external/gpl3/gdb/dist/readline/util.c:1.4	Sun May 26 17:40:06 2019
+++ src/external/gpl3/gdb/dist/readline/util.c	Tue May 28 21:37:55 2019
@@ -508,9 +508,6 @@ _rl_tropen ()
 
   if (_rl_tracefp)
 fclose (_rl_tracefp);
-#if 1
-  snprintf (fnbuf, sizeof(fnbuf), "/var/tmp/rltrace.%ld", (long)getpid());
-#else
 #if defined (_WIN32) && !defined (__CYGWIN__)
   /* Windows doesn't have /var/tmp, so open the trace file in the
  user's temporary directory instead.  */
@@ -520,7 +517,7 @@ _rl_tropen ()
 	: "."),
 	   getpid ());
 #else
-  sprintf (fnbuf, "/var/tmp/rltrace.%ld", (long) getpid ());
+  snprintf (fnbuf, sizeof(fnbuf), "/var/tmp/rltrace.%ld", (long)getpid());
 #endif
   unlink (fnbuf);
   _rl_tracefp = fopen (fnbuf, "w+");



CVS commit: src/external/gpl3/gdb/dist/readline

2019-05-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 01:37:55 UTC 2019

Modified Files:
src/external/gpl3/gdb/dist/readline: util.c

Log Message:
use snprintf


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gdb/dist/readline/util.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/bfd

2019-05-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 01:38:27 UTC 2019

Modified Files:
src/external/gpl3/gdb/dist/bfd: config.bfd

Log Message:
remove conflict marker


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/gdb/dist/bfd/config.bfd

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/dist/bfd/config.bfd
diff -u src/external/gpl3/gdb/dist/bfd/config.bfd:1.19 src/external/gpl3/gdb/dist/bfd/config.bfd:1.20
--- src/external/gpl3/gdb/dist/bfd/config.bfd:1.19	Sun May 26 17:40:00 2019
+++ src/external/gpl3/gdb/dist/bfd/config.bfd	Tue May 28 21:38:27 2019
@@ -877,7 +877,6 @@ case "${targ}" in
 targ_selvecs=microblaze_elf32_le_vec
 ;;
 
-<<< config.bfd
   mips*-big-*)
 targ_defvec=mips_ecoff_be_vec
 targ_selvecs=mips_ecoff_le_vec



CVS commit: src/external/gpl3/gdb/dist/bfd

2019-05-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 01:38:27 UTC 2019

Modified Files:
src/external/gpl3/gdb/dist/bfd: config.bfd

Log Message:
remove conflict marker


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/gdb/dist/bfd/config.bfd

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

2019-05-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 01:41:01 UTC 2019

Modified Files:
src/external/gpl3/gdb/dist/gdb/common: pathstuff.h

Log Message:
Add a declaration for canonicalize_file_name(), it really does not belong
here, but it is the most convenient (since it is only used in pathstuff.c)


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/gpl3/gdb/dist/gdb/common/pathstuff.h

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



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

2019-05-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 01:41:01 UTC 2019

Modified Files:
src/external/gpl3/gdb/dist/gdb/common: pathstuff.h

Log Message:
Add a declaration for canonicalize_file_name(), it really does not belong
here, but it is the most convenient (since it is only used in pathstuff.c)


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/gpl3/gdb/dist/gdb/common/pathstuff.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/dist/gdb/common/pathstuff.h
diff -u src/external/gpl3/gdb/dist/gdb/common/pathstuff.h:1.1.1.1 src/external/gpl3/gdb/dist/gdb/common/pathstuff.h:1.2
--- src/external/gpl3/gdb/dist/gdb/common/pathstuff.h:1.1.1.1	Sun May 26 17:00:08 2019
+++ src/external/gpl3/gdb/dist/gdb/common/pathstuff.h	Tue May 28 21:41:01 2019
@@ -92,4 +92,6 @@ extern const char *get_shell ();
 
 extern gdb::char_vector make_temp_filename (const std::string &f);
 
+extern "C" char *canonicalize_file_name (const char *path);
+
 #endif /* COMMON_PATHSTUFF_H */



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

2019-05-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 01:41:33 UTC 2019

Modified Files:
src/external/gpl3/gdb/dist/gdb: nbsd-nat.h

Log Message:
we don't have xfer_partial


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gdb/dist/gdb/nbsd-nat.h

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



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

2019-05-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 01:41:33 UTC 2019

Modified Files:
src/external/gpl3/gdb/dist/gdb: nbsd-nat.h

Log Message:
we don't have xfer_partial


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gdb/dist/gdb/nbsd-nat.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/dist/gdb/nbsd-nat.h
diff -u src/external/gpl3/gdb/dist/gdb/nbsd-nat.h:1.4 src/external/gpl3/gdb/dist/gdb/nbsd-nat.h:1.5
--- src/external/gpl3/gdb/dist/gdb/nbsd-nat.h:1.4	Tue May 28 11:30:39 2019
+++ src/external/gpl3/gdb/dist/gdb/nbsd-nat.h	Tue May 28 21:41:33 2019
@@ -29,13 +29,6 @@ struct nbsd_nat_target : public inf_ptra
   char *pid_to_exec_file (int pid) override;
   int find_memory_regions (find_memory_region_ftype func, void *data) override;
 
-  enum target_xfer_status xfer_partial (enum target_object object,
-	const char *annex,
-	gdb_byte *readbuf,
-	const gdb_byte *writebuf,
-	ULONGEST offset, ULONGEST len,
-	ULONGEST *xfered_len) override;
-
   bool thread_alive (ptid_t ptid) override;
   const char *pid_to_str (ptid_t) override;
 



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

2019-05-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 01:46:50 UTC 2019

Added Files:
src/external/gpl3/gdb/dist/gdb: ia64-nbsd-tdep.c
src/external/gpl3/gdb/dist/gdb/config/i386: nbsd64.mh nbsdelf.mh
src/external/gpl3/gdb/dist/gdb/config/ia64: netbsd.mh

Log Message:
add netbsd specific files


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gdb/dist/gdb/ia64-nbsd-tdep.c
cvs rdiff -u -r0 -r1.10 src/external/gpl3/gdb/dist/gdb/config/i386/nbsd64.mh
cvs rdiff -u -r0 -r1.7 src/external/gpl3/gdb/dist/gdb/config/i386/nbsdelf.mh
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gdb/dist/gdb/config/ia64/netbsd.mh

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

2019-05-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 01:46:50 UTC 2019

Added Files:
src/external/gpl3/gdb/dist/gdb: ia64-nbsd-tdep.c
src/external/gpl3/gdb/dist/gdb/config/i386: nbsd64.mh nbsdelf.mh
src/external/gpl3/gdb/dist/gdb/config/ia64: netbsd.mh

Log Message:
add netbsd specific files


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gdb/dist/gdb/ia64-nbsd-tdep.c
cvs rdiff -u -r0 -r1.10 src/external/gpl3/gdb/dist/gdb/config/i386/nbsd64.mh
cvs rdiff -u -r0 -r1.7 src/external/gpl3/gdb/dist/gdb/config/i386/nbsdelf.mh
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gdb/dist/gdb/config/ia64/netbsd.mh

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/gdb/ia64-nbsd-tdep.c
diff -u /dev/null src/external/gpl3/gdb/dist/gdb/ia64-nbsd-tdep.c:1.1
--- /dev/null	Tue May 28 21:46:50 2019
+++ src/external/gpl3/gdb/dist/gdb/ia64-nbsd-tdep.c	Tue May 28 21:46:49 2019
@@ -0,0 +1,46 @@
+/* Target-dependent code for NetBSD/ia64.
+
+   Copyright (C) 2004-2017 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 .  */
+
+#include "defs.h"
+#include "arch-utils.h"
+#include "osabi.h"
+
+#include "ia64-tdep.h"
+#include "solib-svr4.h"
+
+/* NetBSD ELF.  */
+
+static void
+ia64nbsd_elf_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
+{
+  /* NetBSD ELF uses SVR4-style shared libraries.  */
+  set_solib_svr4_fetch_link_map_offsets
+(gdbarch, svr4_ilp32_fetch_link_map_offsets);
+}
+
+
+/* Provide a prototype to silence -Wmissing-prototypes.  */
+void _initialize_ia64nbsd_tdep (void);
+
+void
+_initialize_ia64nbsd_tdep (void)
+{
+  gdbarch_register_osabi (bfd_arch_ia64, 0, GDB_OSABI_NETBSD,
+			  ia64nbsd_elf_init_abi);
+}

Index: src/external/gpl3/gdb/dist/gdb/config/i386/nbsd64.mh
diff -u /dev/null src/external/gpl3/gdb/dist/gdb/config/i386/nbsd64.mh:1.10
--- /dev/null	Tue May 28 21:46:50 2019
+++ src/external/gpl3/gdb/dist/gdb/config/i386/nbsd64.mh	Tue May 28 21:46:49 2019
@@ -0,0 +1,6 @@
+# Host: NetBSD/amd64
+NATDEPFILES= fork-child.o inf-ptrace.o \
+	nbsd-nat.o amd64-nat.o x86-bsd-nat.o amd64-bsd-nat.o amd64-nbsd-nat.o \
+	bsd-kvm.o x86-nat.o x86-dregs.o
+
+LOADLIBES= -lkvm

Index: src/external/gpl3/gdb/dist/gdb/config/i386/nbsdelf.mh
diff -u /dev/null src/external/gpl3/gdb/dist/gdb/config/i386/nbsdelf.mh:1.7
--- /dev/null	Tue May 28 21:46:50 2019
+++ src/external/gpl3/gdb/dist/gdb/config/i386/nbsdelf.mh	Tue May 28 21:46:49 2019
@@ -0,0 +1,7 @@
+# Host: NetBSD/i386 ELF
+NATDEPFILES= fork-child.o inf-ptrace.o \
+	nbsd-nat.o x86-bsd-nat.o x86-nat.o x86-dregs.o \
+	i386-bsd-nat.o i386-nbsd-nat.o \
+	bsd-kvm.o
+
+LOADLIBES= -lkvm

Index: src/external/gpl3/gdb/dist/gdb/config/ia64/netbsd.mh
diff -u /dev/null src/external/gpl3/gdb/dist/gdb/config/ia64/netbsd.mh:1.1
--- /dev/null	Tue May 28 21:46:50 2019
+++ src/external/gpl3/gdb/dist/gdb/config/ia64/netbsd.mh	Tue May 28 21:46:50 2019
@@ -0,0 +1,5 @@
+# Host: NetBSD/ia64 ELF
+NATDEPFILES= fork-child.o inf-ptrace.o nbsd-nat.o ia64-bsd-nat.o bsd-kvm.o \
+	ia64-nbsd-tdep.o
+
+LOADLIBES= -lkvm



CVS commit: src/tools/gdb

2019-05-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 01:56:06 UTC 2019

Modified Files:
src/tools/gdb: mknative-gdb

Log Message:
adjust for gdb-8.3


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tools/gdb/mknative-gdb

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-05-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 01:56:06 UTC 2019

Modified Files:
src/tools/gdb: mknative-gdb

Log Message:
adjust for gdb-8.3


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tools/gdb/mknative-gdb

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/mknative-gdb
diff -u src/tools/gdb/mknative-gdb:1.7 src/tools/gdb/mknative-gdb:1.8
--- src/tools/gdb/mknative-gdb:1.7	Sun Oct 16 00:37:42 2016
+++ src/tools/gdb/mknative-gdb	Tue May 28 21:56:06 2019
@@ -1,5 +1,5 @@
 #!/bin/sh
-#	$NetBSD: mknative-gdb,v 1.7 2016/10/16 04:37:42 mrg Exp $
+#	$NetBSD: mknative-gdb,v 1.8 2019/05/29 01:56:06 christos Exp $
 #
 # Shell script for generating all the constants needed for a native
 # platform build of src/external/gpl3/gdb
@@ -106,13 +106,16 @@ get_gdb_libgdb () {
 	{
 		getvars gdb/Makefile \
 			INTERNAL_CFLAGS LIBGDB_OBS SIM_OBS
-	} | write_mk $_GDBP/arch/$_MACHINE_SUBDIR/defs.mk
+	} | sed -e s@arch/@@g -e s@cli/@@g -e s@common/agent@common-agent@ \
+		-e s@common/@@g -e s@compile/@@g -e s@guile/@@g -e s@mi/@@g \
+		-e s@nat/@@g -e s@python/@@g -e s@target/@@g \
+		-e s@tui/@@g | write_mk $_GDBP/arch/$_MACHINE_SUBDIR/defs.mk
 
 #	getvars gdb/gdbserver/Makefile \
 #		INTERNAL_CFLAGS OBS \
 #		| write_mk $_GDB/bin/gdb/arch/$_MACHINE_SUBDIR/gdbserver.mk
 
-	for i in config.h observer.h observer.inc version.c init.c \
+	for i in config.h version.c init.c \
 	xml-builtin.c build-gnulib/config.h jit-reader.h
 	do
 	write_c $_GDBP/arch/$_MACHINE_SUBDIR/$i \



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

2019-05-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 01:56:34 UTC 2019

Modified Files:
src/external/gpl3/gdb/lib/libbfd/arch/x86_64: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libdecnumber/arch/x86_64: config.h gstdint.h
src/external/gpl3/gdb/lib/libgdb: common-agent.c
src/external/gpl3/gdb/lib/libgdb/arch/x86_64: config.h defs.mk init.c
jit-reader.h version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/x86_64/build-gnulib: config.h
src/external/gpl3/gdb/lib/libiberty/arch/x86_64: config.h
src/external/gpl3/gdb/lib/libopcodes/arch/x86_64: config.h
src/external/gpl3/gdb/lib/libreadline/arch/x86_64: config.h

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 \
src/external/gpl3/gdb/lib/libbfd/arch/x86_64/bfd-in3.h \
src/external/gpl3/gdb/lib/libbfd/arch/x86_64/bfd.h \
src/external/gpl3/gdb/lib/libbfd/arch/x86_64/bfdver.h
cvs rdiff -u -r1.8 -r1.9 \
src/external/gpl3/gdb/lib/libbfd/arch/x86_64/bfd_stdint.h \
src/external/gpl3/gdb/lib/libbfd/arch/x86_64/config.h
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gdb/lib/libbfd/arch/x86_64/defs.mk
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gdb/lib/libbfd/arch/x86_64/targmatch.h
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gdb/lib/libdecnumber/arch/x86_64/config.h
cvs rdiff -u -r1.8 -r1.9 \
src/external/gpl3/gdb/lib/libdecnumber/arch/x86_64/gstdint.h
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gdb/lib/libgdb/common-agent.c
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gdb/lib/libgdb/arch/x86_64/config.h
cvs rdiff -u -r1.14 -r1.15 \
src/external/gpl3/gdb/lib/libgdb/arch/x86_64/defs.mk \
src/external/gpl3/gdb/lib/libgdb/arch/x86_64/init.c
cvs rdiff -u -r1.5 -r1.6 \
src/external/gpl3/gdb/lib/libgdb/arch/x86_64/jit-reader.h
cvs rdiff -u -r1.8 -r1.9 \
src/external/gpl3/gdb/lib/libgdb/arch/x86_64/version.c \
src/external/gpl3/gdb/lib/libgdb/arch/x86_64/xml-builtin.c
cvs rdiff -u -r1.8 -r1.9 \
src/external/gpl3/gdb/lib/libgdb/arch/x86_64/build-gnulib/config.h
cvs rdiff -u -r1.7 -r1.8 \
src/external/gpl3/gdb/lib/libiberty/arch/x86_64/config.h
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/gdb/lib/libopcodes/arch/x86_64/config.h
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gdb/lib/libreadline/arch/x86_64/config.h

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-05-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 01:57:59 UTC 2019

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

Log Message:
amd64 switched to gdb-8.3


To generate a diff of this commit:
cvs rdiff -u -r1.1138 -r1.1139 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-05-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 01:57:59 UTC 2019

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

Log Message:
amd64 switched to gdb-8.3


To generate a diff of this commit:
cvs rdiff -u -r1.1138 -r1.1139 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.1138 src/share/mk/bsd.own.mk:1.1139
--- src/share/mk/bsd.own.mk:1.1138	Sun May 26 16:26:43 2019
+++ src/share/mk/bsd.own.mk	Tue May 28 21:57:59 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1138 2019/05/26 20:26:43 christos Exp $
+#	$NetBSD: bsd.own.mk,v 1.1139 2019/05/29 01:57:59 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -138,7 +138,11 @@ USE_SSP?=	yes
 #
 # What GDB is used?
 #
+.if ${MACHINE} == "amd64"
+HAVE_GDB?=	830
+.else
 HAVE_GDB?=	801
+.endif
 
 .if ${HAVE_GDB} == 830
 EXTERNAL_GDB_SUBDIR=		gdb



CVS commit: src/doc

2019-05-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 01:58:39 UTC 2019

Modified Files:
src/doc: 3RDPARTY CHANGES

Log Message:
new gdb


To generate a diff of this commit:
cvs rdiff -u -r1.1624 -r1.1625 src/doc/3RDPARTY
cvs rdiff -u -r1.2543 -r1.2544 src/doc/CHANGES

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

Modified files:

Index: src/doc/3RDPARTY
diff -u src/doc/3RDPARTY:1.1624 src/doc/3RDPARTY:1.1625
--- src/doc/3RDPARTY:1.1624	Sat May 25 17:32:35 2019
+++ src/doc/3RDPARTY	Tue May 28 21:58:39 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: 3RDPARTY,v 1.1624 2019/05/25 21:32:35 christos Exp $
+#	$NetBSD: 3RDPARTY,v 1.1625 2019/05/29 01:58:39 christos Exp $
 #
 # This file contains a list of the software that has been integrated into
 # NetBSD where we are not the primary maintainer.
@@ -469,7 +469,7 @@ Before importing a new version of extern
 	  into gcc/dist/gcc/doc: cpp.1 cpp.info gcc.1 gcc.info gcov.1
 
 Package:	gdb
-Version:	8.0.1
+Version:	8.3
 Current Vers:	8.3
 Maintainer:	FSF
 Archive Site:	ftp://ftp.gnu.org/gnu/gdb/

Index: src/doc/CHANGES
diff -u src/doc/CHANGES:1.2543 src/doc/CHANGES:1.2544
--- src/doc/CHANGES:1.2543	Sat May 25 17:32:35 2019
+++ src/doc/CHANGES	Tue May 28 21:58:39 2019
@@ -1,4 +1,4 @@
-# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2543 $>
+# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2544 $>
 #
 #
 # [Note: This file does not mention every change made to the NetBSD source tree.
@@ -387,3 +387,4 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 	dts: Import dts files from Linux 5.1.4. [jmcneill 20190525]
 	nsd: Import 4.1.27 [christos 20190525]
 	unbound(8): Import 1.9.1. [christos 20190525]
+	gdb(1): Updated to 8.3.  [christos 20190528]



CVS commit: src/doc

2019-05-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 01:58:39 UTC 2019

Modified Files:
src/doc: 3RDPARTY CHANGES

Log Message:
new gdb


To generate a diff of this commit:
cvs rdiff -u -r1.1624 -r1.1625 src/doc/3RDPARTY
cvs rdiff -u -r1.2543 -r1.2544 src/doc/CHANGES

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



Re: audio2

2019-05-28 Thread Valery Ushakov
On Tue, May 28, 2019 at 20:25:33 +0300, Andreas Gustafsson wrote:

> On May 23, Valery Ushakov wrote:
> > This feels inverted.  The mathematically correct operation required
> > here is symmetric division (that rounds towards zero). 
> 
> Rounding towards zero is absolutely the wrong thing to do for audio,
> because it introduces a discontinuity, which in turn causes
> unnecessary distortion of the audio.
> 
> For example, if your original signal is a linear ramp
> 
>   ... -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5 ...
> 
> and you divide it by two rounding towards zero, you get
> 
>   ... -2, -2, -1, -1, 0, 0, 0, 1, 1, 2, 2 ...
> 
> where every value is repeated twice, except that the value zero occurs
> three times, so the ramp is no longer linear - it now has a visible
> and audible kink in the middle.  And this kink is in the worst
> possible place of the amplitude scale, at zero where it will affect
> even the weakest signals, distorting every zero crossing.
> 
> The proper way to do audio scaling is using dither, but failing that,
> at least the values should be consistently rounded either up or down,
> which will at worst introduce a small DC offset which you can't hear,
> but no crossover distortion.

Thanks a lot for the explanation!

Now, you omit the most critical bit: what would you name the thing? :)
>From "the proper way to do audio scaling" I infer that AUDIO_SCALEDOWN
(or however that was spelled) should be ok, shouldn't it?

-uwe


CVS commit: src/lib/libc/net

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed May 29 02:30:43 UTC 2019

Modified Files:
src/lib/libc/net: rthdr.c

Log Message:
 Fix typo(s/suppport/support/) in comment. From FreeBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/lib/libc/net/rthdr.c

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

Modified files:

Index: src/lib/libc/net/rthdr.c
diff -u src/lib/libc/net/rthdr.c:1.18 src/lib/libc/net/rthdr.c:1.19
--- src/lib/libc/net/rthdr.c:1.18	Tue Mar 13 21:13:42 2012
+++ src/lib/libc/net/rthdr.c	Wed May 29 02:30:42 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: rthdr.c,v 1.18 2012/03/13 21:13:42 christos Exp $	*/
+/*	$NetBSD: rthdr.c,v 1.19 2019/05/29 02:30:42 msaitoh Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -31,7 +31,7 @@
 
 #include 
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: rthdr.c,v 1.18 2012/03/13 21:13:42 christos Exp $");
+__RCSID("$NetBSD: rthdr.c,v 1.19 2019/05/29 02:30:42 msaitoh Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -289,7 +289,7 @@ inet6_rth_space(int type, int segments)
 	case IPV6_RTHDR_TYPE_0:
 		return (((segments * 2) + 1) << 3);
 	default:
-		return (0);	/* type not suppported */
+		return (0);	/* type not supported */
 	}
 }
 



CVS commit: src/lib/libc/net

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed May 29 02:30:43 UTC 2019

Modified Files:
src/lib/libc/net: rthdr.c

Log Message:
 Fix typo(s/suppport/support/) in comment. From FreeBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/lib/libc/net/rthdr.c

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



CVS commit: src

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed May 29 02:34:19 UTC 2019

Modified Files:
src/doc: CHANGES.prev
src/doc/roadmaps: storage
src/sys/arch/amiga/stand/loadbsd: loadbsd.c

Log Message:
s/suppport/support/


To generate a diff of this commit:
cvs rdiff -u -r1.140 -r1.141 src/doc/CHANGES.prev
cvs rdiff -u -r1.26 -r1.27 src/doc/roadmaps/storage
cvs rdiff -u -r1.35 -r1.36 src/sys/arch/amiga/stand/loadbsd/loadbsd.c

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.prev
diff -u src/doc/CHANGES.prev:1.140 src/doc/CHANGES.prev:1.141
--- src/doc/CHANGES.prev:1.140	Thu Jun 14 14:48:59 2018
+++ src/doc/CHANGES.prev	Wed May 29 02:34:19 2019
@@ -1,4 +1,4 @@
-LIST OF CHANGES FROM PREVIOUS RELEASES:			<$Revision: 1.140 $>
+LIST OF CHANGES FROM PREVIOUS RELEASES:			<$Revision: 1.141 $>
 
 
 Changes from 386bsd 0.1 + patchkit 0.2.2 to NetBSD 0.8:
@@ -10132,7 +10132,7 @@ Changes from NetBSD 5.0 to NetBSD 6.0:
 		/var/run to /var/run/{named,lwresd} for improved chroot/setuid
 		support. [christos 20090412]
 	libbind: Update to 6.0-rc1. Use md5 for randomid instead of
-		sequential id, add suppport for DS, SSHFP, RRSIG, NSEC, DNSKEY,
+		sequential id, add support for DS, SSHFP, RRSIG, NSEC, DNSKEY,
 		DHCID, NSEC3, NSEC3PARAM, HIP and DLV, various new API
 		functions.  [christos 20090412]
 	re(4): Add support for RTL8168CP and RTL8168D. [tsutsui 20090413]

Index: src/doc/roadmaps/storage
diff -u src/doc/roadmaps/storage:1.26 src/doc/roadmaps/storage:1.27
--- src/doc/roadmaps/storage:1.26	Thu Apr 12 19:12:25 2018
+++ src/doc/roadmaps/storage	Wed May 29 02:34:19 2019
@@ -1,4 +1,4 @@
-$NetBSD: storage,v 1.26 2018/04/12 19:12:25 jdolecek Exp $
+$NetBSD: storage,v 1.27 2019/05/29 02:34:19 msaitoh Exp $
 
 NetBSD Storage Roadmap
 ==
@@ -210,7 +210,7 @@ more drivers.
  - Contact jdolecek or tls for further information.
 
 
-7. nvme suppport
+7. nvme support
 
 
 nvme ("NVM Express") is a hardware interface standard for PCI-attached

Index: src/sys/arch/amiga/stand/loadbsd/loadbsd.c
diff -u src/sys/arch/amiga/stand/loadbsd/loadbsd.c:1.35 src/sys/arch/amiga/stand/loadbsd/loadbsd.c:1.36
--- src/sys/arch/amiga/stand/loadbsd/loadbsd.c:1.35	Sun Jul 10 21:02:39 2011
+++ src/sys/arch/amiga/stand/loadbsd/loadbsd.c	Wed May 29 02:34:18 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: loadbsd.c,v 1.35 2011/07/10 21:02:39 mhitch Exp $	*/
+/*	$NetBSD: loadbsd.c,v 1.36 2019/05/29 02:34:18 msaitoh Exp $	*/
 
 /*
  * Copyright (c) 1994 Michael L. Hitch
@@ -413,7 +413,7 @@ main(int argc, char **argv)
 		sleep(2);
 	} else {
 		/*
-		 * Either the kernel doesn't suppport loading directly to
+		 * Either the kernel doesn't support loading directly to
 		 * fastmem or the -Z flag was given.  Verify kernel image
 		 * fits into chipmem.
 		 */



CVS commit: src

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed May 29 02:34:19 UTC 2019

Modified Files:
src/doc: CHANGES.prev
src/doc/roadmaps: storage
src/sys/arch/amiga/stand/loadbsd: loadbsd.c

Log Message:
s/suppport/support/


To generate a diff of this commit:
cvs rdiff -u -r1.140 -r1.141 src/doc/CHANGES.prev
cvs rdiff -u -r1.26 -r1.27 src/doc/roadmaps/storage
cvs rdiff -u -r1.35 -r1.36 src/sys/arch/amiga/stand/loadbsd/loadbsd.c

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



CVS commit: src/usr.sbin/cpuctl/arch

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed May 29 03:24:23 UTC 2019

Modified Files:
src/usr.sbin/cpuctl/arch: i386.c

Log Message:
 White space fix. No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.102 -r1.103 src/usr.sbin/cpuctl/arch/i386.c

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



CVS commit: src/usr.sbin/cpuctl/arch

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed May 29 03:24:23 UTC 2019

Modified Files:
src/usr.sbin/cpuctl/arch: i386.c

Log Message:
 White space fix. No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.102 -r1.103 src/usr.sbin/cpuctl/arch/i386.c

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

Modified files:

Index: src/usr.sbin/cpuctl/arch/i386.c
diff -u src/usr.sbin/cpuctl/arch/i386.c:1.102 src/usr.sbin/cpuctl/arch/i386.c:1.103
--- src/usr.sbin/cpuctl/arch/i386.c:1.102	Tue May 28 07:51:58 2019
+++ src/usr.sbin/cpuctl/arch/i386.c	Wed May 29 03:24:23 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: i386.c,v 1.102 2019/05/28 07:51:58 msaitoh Exp $	*/
+/*	$NetBSD: i386.c,v 1.103 2019/05/29 03:24:23 msaitoh Exp $	*/
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: i386.c,v 1.102 2019/05/28 07:51:58 msaitoh Exp $");
+__RCSID("$NetBSD: i386.c,v 1.103 2019/05/29 03:24:23 msaitoh Exp $");
 #endif /* not lint */
 
 #include 
@@ -168,7 +168,7 @@ static const char * const i386_intel_bra
 	"Pentium III",	/* Intel (R) Pentium (R) III processor */
 	"",		/* 0x05: Reserved */
 	"Mobile Pentium III",/* Mobile Intel (R) Pentium (R) III processor-M */
-	"Mobile Celeron",   /* Mobile Intel (R) Celeron (R) processor */
+	"Mobile Celeron",   /* Mobile Intel (R) Celeron (R) processor */
 	"Pentium 4",	/* Intel (R) Pentium (R) 4 processor */
 	"Pentium 4",	/* Intel (R) Pentium (R) 4 processor */
 	"Celeron",	/* Intel (R) Celeron (TM) processor */
@@ -321,10 +321,10 @@ const struct cpu_cpuid_nameclass i386_cp
 [0x06] = "Celeron (Mendocino)",
 [0x07] = "Pentium III (Katmai)",
 [0x08] = "Pentium III (Coppermine)",
-[0x09] = "Pentium M (Banias)", 
+[0x09] = "Pentium M (Banias)",
 [0x0a] = "Pentium III Xeon (Cascades)",
 [0x0b] = "Pentium III (Tualatin)",
-[0x0d] = "Pentium M (Dothan)", 
+[0x0d] = "Pentium M (Dothan)",
 [0x0e] = "Pentium Core Duo, Core solo",
 [0x0f] = "Xeon 30xx, 32xx, 51xx, 53xx, 73xx, "
 	 "Core 2 Quad 6xxx, "
@@ -729,7 +729,7 @@ static void
 cyrix6x86_cpu_setup(struct cpu_info *ci)
 {
 
-	/* 
+	/*
 	 * Do not disable the TSC on the Geode GX, it's reported to
 	 * work fine.
 	 */
@@ -979,7 +979,7 @@ amd_family6_probe(struct cpu_info *ci)
 
 	if (*cpu_brand_string == '\0')
 		return;
-	
+
 	for (i = 1; i < __arraycount(amd_brand); i++)
 		if ((p = strstr(cpu_brand_string, amd_brand[i])) != NULL) {
 			ci->ci_brand_id = i;
@@ -1230,10 +1230,10 @@ intel_cpu_cacheinfo(struct cpu_info *ci)
 	}
 }
 
-static const struct x86_cache_info amd_cpuid_l2cache_assoc_info[] = 
+static const struct x86_cache_info amd_cpuid_l2cache_assoc_info[] =
 AMD_L2CACHE_INFO;
 
-static const struct x86_cache_info amd_cpuid_l3cache_assoc_info[] = 
+static const struct x86_cache_info amd_cpuid_l3cache_assoc_info[] =
 AMD_L3CACHE_INFO;
 
 static void
@@ -2112,8 +2112,8 @@ identifycpu(int fd, const char *cpuname)
 			if (cpu_vendor == CPUVENDOR_AMD) {
 if (ci->ci_family == 6 && ci->ci_model >= 6) {
 	if (ci->ci_brand_id == 1)
-		/* 
-		 * It's Duron. We override the 
+		/*
+		 * It's Duron. We override the
 		 * name, since it might have
 		 * been misidentified as Athlon.
 		 */
@@ -2131,7 +2131,7 @@ identifycpu(int fd, const char *cpuname)
 		name = tmp;
 }
 			}
-			
+
 			if (cpu_vendor == CPUVENDOR_IDT && ci->ci_family >= 6)
 vendorname = "VIA";
 		}
@@ -2256,7 +2256,7 @@ identifycpu(int fd, const char *cpuname)
 		|| (cpu_vendor == CPUVENDOR_AMD))) {
 		uint16_t lmin, lmax;
 		x86_cpuid(5, descs);
-		
+
 		print_bits(cpuname, "MONITOR/MWAIT extensions",
 		CPUID_MON_FLAGS, descs[2]);
 		lmin = __SHIFTOUT(descs[0], CPUID_MON_MINSIZE);



CVS commit: src/share/installboot/evbarm

2019-05-28 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed May 29 03:25:46 UTC 2019

Modified Files:
src/share/installboot/evbarm: boards.plist

Log Message:
Add LeMaker Banana Pro.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/share/installboot/evbarm/boards.plist

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

Modified files:

Index: src/share/installboot/evbarm/boards.plist
diff -u src/share/installboot/evbarm/boards.plist:1.2 src/share/installboot/evbarm/boards.plist:1.3
--- src/share/installboot/evbarm/boards.plist:1.2	Sat May 25 01:37:54 2019
+++ src/share/installboot/evbarm/boards.plist	Wed May 29 03:25:46 2019
@@ -1,4 +1,4 @@
-
+
 

CVS commit: src/share/installboot/evbarm

2019-05-28 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed May 29 03:25:46 UTC 2019

Modified Files:
src/share/installboot/evbarm: boards.plist

Log Message:
Add LeMaker Banana Pro.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/share/installboot/evbarm/boards.plist

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



CVS commit: src/sys/arch/arm

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed May 29 05:05:24 UTC 2019

Modified Files:
src/sys/arch/arm/omap: if_cpsw.c omapl1x_emac.c
src/sys/arch/arm/ti: if_cpsw.c

Log Message:
 KNF. No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/arm/omap/if_cpsw.c
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/arm/omap/omapl1x_emac.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/arm/ti/if_cpsw.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/arm/omap/if_cpsw.c
diff -u src/sys/arch/arm/omap/if_cpsw.c:1.23 src/sys/arch/arm/omap/if_cpsw.c:1.24
--- src/sys/arch/arm/omap/if_cpsw.c:1.23	Tue Mar  5 08:25:01 2019
+++ src/sys/arch/arm/omap/if_cpsw.c	Wed May 29 05:05:24 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_cpsw.c,v 1.23 2019/03/05 08:25:01 msaitoh Exp $	*/
+/*	$NetBSD: if_cpsw.c,v 1.24 2019/05/29 05:05:24 msaitoh Exp $	*/
 
 /*
  * Copyright (c) 2013 Jonathan A. Kollasch
@@ -53,7 +53,7 @@
  */
 
 #include 
-__KERNEL_RCSID(1, "$NetBSD: if_cpsw.c,v 1.23 2019/03/05 08:25:01 msaitoh Exp $");
+__KERNEL_RCSID(1, "$NetBSD: if_cpsw.c,v 1.24 2019/05/29 05:05:24 msaitoh Exp $");
 
 #include 
 #include 
@@ -877,11 +877,13 @@ cpsw_init(struct ifnet *ifp)
 
 	/* Reset wrapper */
 	cpsw_write_4(sc, CPSW_WR_SOFT_RESET, 1);
-	while(cpsw_read_4(sc, CPSW_WR_SOFT_RESET) & 1);
+	while (cpsw_read_4(sc, CPSW_WR_SOFT_RESET) & 1)
+		;
 
 	/* Reset SS */
 	cpsw_write_4(sc, CPSW_SS_SOFT_RESET, 1);
-	while(cpsw_read_4(sc, CPSW_SS_SOFT_RESET) & 1);
+	while (cpsw_read_4(sc, CPSW_SS_SOFT_RESET) & 1)
+		;
 
 	/* Clear table and enable ALE */
 	cpsw_write_4(sc, CPSW_ALE_CONTROL,
@@ -893,7 +895,8 @@ cpsw_init(struct ifnet *ifp)
 
 		/* Reset */
 		cpsw_write_4(sc, CPSW_SL_SOFT_RESET(i), 1);
-		while(cpsw_read_4(sc, CPSW_SL_SOFT_RESET(i)) & 1);
+		while (cpsw_read_4(sc, CPSW_SL_SOFT_RESET(i)) & 1)
+			;
 		/* Set Slave Mapping */
 		cpsw_write_4(sc, CPSW_SL_RX_PRI_MAP(i), 0x76543210);
 		cpsw_write_4(sc, CPSW_PORT_P_TX_PRI_MAP(i+1), 0x33221100);
@@ -930,7 +933,8 @@ cpsw_init(struct ifnet *ifp)
 	cpsw_write_4(sc, CPSW_SS_STAT_PORT_EN, 7);
 
 	cpsw_write_4(sc, CPSW_CPDMA_SOFT_RESET, 1);
-	while(cpsw_read_4(sc, CPSW_CPDMA_SOFT_RESET) & 1);
+	while (cpsw_read_4(sc, CPSW_CPDMA_SOFT_RESET) & 1)
+		;
 
 	for (i = 0; i < 8; i++) {
 		cpsw_write_4(sc, CPSW_CPDMA_TX_HDP(i), 0);
@@ -1046,20 +1050,24 @@ cpsw_stop(struct ifnet *ifp, int disable
 
 	/* Reset wrapper */
 	cpsw_write_4(sc, CPSW_WR_SOFT_RESET, 1);
-	while(cpsw_read_4(sc, CPSW_WR_SOFT_RESET) & 1);
+	while (cpsw_read_4(sc, CPSW_WR_SOFT_RESET) & 1)
+		;
 
 	/* Reset SS */
 	cpsw_write_4(sc, CPSW_SS_SOFT_RESET, 1);
-	while(cpsw_read_4(sc, CPSW_SS_SOFT_RESET) & 1);
+	while (cpsw_read_4(sc, CPSW_SS_SOFT_RESET) & 1)
+		;
 
 	for (i = 0; i < CPSW_ETH_PORTS; i++) {
 		cpsw_write_4(sc, CPSW_SL_SOFT_RESET(i), 1);
-		while(cpsw_read_4(sc, CPSW_SL_SOFT_RESET(i)) & 1);
+		while (cpsw_read_4(sc, CPSW_SL_SOFT_RESET(i)) & 1)
+			;
 	}
 
 	/* Reset CPDMA */
 	cpsw_write_4(sc, CPSW_CPDMA_SOFT_RESET, 1);
-	while(cpsw_read_4(sc, CPSW_CPDMA_SOFT_RESET) & 1);
+	while (cpsw_read_4(sc, CPSW_CPDMA_SOFT_RESET) & 1)
+		;
 
 	/* Release any queued transmit buffers. */
 	for (i = 0; i < CPSW_NTXDESCS; i++) {

Index: src/sys/arch/arm/omap/omapl1x_emac.c
diff -u src/sys/arch/arm/omap/omapl1x_emac.c:1.8 src/sys/arch/arm/omap/omapl1x_emac.c:1.9
--- src/sys/arch/arm/omap/omapl1x_emac.c:1.8	Tue Jan 22 03:42:25 2019
+++ src/sys/arch/arm/omap/omapl1x_emac.c	Wed May 29 05:05:24 2019
@@ -30,7 +30,7 @@
 
 #include 
 
-__KERNEL_RCSID(0, "$NetBSD: omapl1x_emac.c,v 1.8 2019/01/22 03:42:25 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: omapl1x_emac.c,v 1.9 2019/05/29 05:05:24 msaitoh Exp $");
 
 #include "opt_omapl1x.h"
 
@@ -263,7 +263,7 @@ emac_mii_wait (struct emac_softc * const
 {
 	u_int tries;
 
-	for(tries = 0; tries < 1000; tries++) {
+	for (tries = 0; tries < 1000; tries++) {
 		if ((EMAC_READ(sc, MACMDIOUSERACCESS0) & USERACCESS_GO) == 0)
 			return 0;
 
@@ -1042,7 +1042,8 @@ emac_ifinit (struct ifnet *ifp)
 	EMAC_WRITE(sc, MACHASH2, 0);
 
 	EMAC_WRITE(sc, MACSOFTRESET, 1);
-	while (EMAC_READ(sc, MACSOFTRESET) == 1);
+	while (EMAC_READ(sc, MACSOFTRESET) == 1)
+		;
 
 	/* Till we figure out mcast, do this */
 	EMAC_WRITE(sc, MACHASH1, 0x);
@@ -1180,7 +1181,7 @@ emac_desc_list_create (struct emac_cppi_
 {
 	int i;
 	struct emac_cppi_bd *ptr = desc_base_ptr;
-	
+
 	for (i = 0; i < ndescs; i++)
 		desc[i] = ptr + i;
 }
@@ -1279,7 +1280,7 @@ emac_attach (device_t parent, device_t s
 	SIMPLEQ_INIT(&tx_chan->free_head);
 	SIMPLEQ_INIT(&tx_chan->inuse_head);
 	for (i = 0; i < EMAC_NTXDESCS; i++) {
-		/* 
+		/*
 		 * Ok, we keep this simple, one dma segment per tx dma map.
 		 * This makes the mapping of the desc's and the dma map's
 		 * pretty straightforward.

Index: src/sys/arch/arm/ti/if_cpsw.c
diff -u src/sys/arch/arm/ti/if_cpsw.c:1.4 src/sys/arch/arm/ti/if_cpsw.c:1.5
--- 

CVS commit: src/sys/arch/arm

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed May 29 05:05:24 UTC 2019

Modified Files:
src/sys/arch/arm/omap: if_cpsw.c omapl1x_emac.c
src/sys/arch/arm/ti: if_cpsw.c

Log Message:
 KNF. No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/arm/omap/if_cpsw.c
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/arm/omap/omapl1x_emac.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/arm/ti/if_cpsw.c

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



CVS commit: src/sys

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed May 29 05:06:40 UTC 2019

Modified Files:
src/sys/arch/amiga/dev: if_es.c
src/sys/arch/emips/ebus: if_le_ebus.c
src/sys/arch/evbppc/virtex/dev: if_temac.c
src/sys/arch/mips/ralink: ralink_eth.c
src/sys/arch/next68k/dev: mb8795.c
src/sys/arch/playstation2/dev: if_smap.c
src/sys/arch/sun2/dev: if_ec.c
src/sys/dev/ic: ax88190.c

Log Message:
 Whitespace fix. No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/sys/arch/amiga/dev/if_es.c
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/emips/ebus/if_le_ebus.c
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/evbppc/virtex/dev/if_temac.c
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/mips/ralink/ralink_eth.c
cvs rdiff -u -r1.62 -r1.63 src/sys/arch/next68k/dev/mb8795.c
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/playstation2/dev/if_smap.c
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/sun2/dev/if_ec.c
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/ic/ax88190.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/amiga/dev/if_es.c
diff -u src/sys/arch/amiga/dev/if_es.c:1.61 src/sys/arch/amiga/dev/if_es.c:1.62
--- src/sys/arch/amiga/dev/if_es.c:1.61	Tue Feb  5 06:17:00 2019
+++ src/sys/arch/amiga/dev/if_es.c	Wed May 29 05:06:39 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_es.c,v 1.61 2019/02/05 06:17:00 msaitoh Exp $ */
+/*	$NetBSD: if_es.c,v 1.62 2019/05/29 05:06:39 msaitoh Exp $ */
 
 /*
  * Copyright (c) 1995 Michael L. Hitch
@@ -33,7 +33,7 @@
 #include "opt_ns.h"
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_es.c,v 1.61 2019/02/05 06:17:00 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_es.c,v 1.62 2019/05/29 05:06:39 msaitoh Exp $");
 
 
 #include 
@@ -129,7 +129,7 @@ esmatch(device_t parent, cfdata_t cf, vo
 
 	/* Ameristar A4066 ethernet card */
 	if (zap->manid == 1053 && zap->prodid == 10)
-		return(1);
+		return (1);
 
 	return (0);
 }
@@ -847,7 +847,7 @@ esstart(struct ifnet *ifp)
 		lbuf = (u_long *)(pktbuf);
 		ldata = (u_long *)data;
 		cnt = pktlen / 4;
-		while(cnt--)
+		while (cnt--)
 			*ldata = *lbuf++;
 		if (pktlen & 2) {
 			buf = (u_short *)lbuf;

Index: src/sys/arch/emips/ebus/if_le_ebus.c
diff -u src/sys/arch/emips/ebus/if_le_ebus.c:1.17 src/sys/arch/emips/ebus/if_le_ebus.c:1.18
--- src/sys/arch/emips/ebus/if_le_ebus.c:1.17	Tue Feb  5 06:17:01 2019
+++ src/sys/arch/emips/ebus/if_le_ebus.c	Wed May 29 05:06:39 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_le_ebus.c,v 1.17 2019/02/05 06:17:01 msaitoh Exp $	*/
+/*	$NetBSD: if_le_ebus.c,v 1.18 2019/05/29 05:06:39 msaitoh Exp $	*/
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_le_ebus.c,v 1.17 2019/02/05 06:17:01 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_le_ebus.c,v 1.18 2019/05/29 05:06:39 msaitoh Exp $");
 
 #include "opt_inet.h"
 
@@ -240,7 +240,7 @@ static int enic_gethwinfo(struct enic_so
 	/*
 	 * First thing first, get the MAC address
 	 */
-	memset(buffer,0,sizeof buffer);
+	memset(buffer, 0, sizeof buffer);
 	buffer[0] = ENIC_CMD_GET_ADDRESS;
 	buffer[3] = ENIC_CMD_GET_ADDRESS;	/* bswap bug */
 	sc->sc_regs->SizeAndFlags = (sizeof buffer) | ES_F_CMD;
@@ -266,7 +266,7 @@ static int enic_gethwinfo(struct enic_so
 	/*
 	 * Next get the HW parameters
 	 */
-	memset(buffer,0,sizeof buffer);
+	memset(buffer, 0, sizeof buffer);
 	buffer[0] = ENIC_CMD_GET_INFO;
 	buffer[3] = ENIC_CMD_GET_INFO;	/* bswap bug */
 	sc->sc_regs->SizeAndFlags = (sizeof buffer) | ES_F_CMD;
@@ -524,7 +524,7 @@ enic_init(struct ifnet *ifp)
 		enic_kill_xmit(sc);
 
 		/* Re-post all recv buffers */
-		enic_post_recv(sc,NULL);
+		enic_post_recv(sc, NULL);
 	}
 
 	/* Start the eNIC */
@@ -535,7 +535,7 @@ enic_init(struct ifnet *ifp)
 	ctl &= ~EC_RXDIS;
 	sc->sc_regs->Control = ctl;
 #if 0
-	printf("enic_init <- %x\n",ctl);
+	printf("enic_init <- %x\n", ctl);
 #endif
 
 	if_schedule_deferred_start(ifp);
@@ -685,9 +685,9 @@ enic_intr(void *cookie, void *f)
 
 		fl = saf & (ES_F_MASK &~ ES_F_DONE);
 		if (fl == ES_F_RECV)
-			enic_rint(sc,saf,lo);
+			enic_rint(sc,saf, lo);
 		else if (fl == ES_F_XMIT)
-			enic_tint(sc,saf,lo);
+			enic_tint(sc,saf, lo);
 		else {
 			/*
 			 * we do not currently expect or care for

Index: src/sys/arch/evbppc/virtex/dev/if_temac.c
diff -u src/sys/arch/evbppc/virtex/dev/if_temac.c:1.13 src/sys/arch/evbppc/virtex/dev/if_temac.c:1.14
--- src/sys/arch/evbppc/virtex/dev/if_temac.c:1.13	Tue Jan 22 03:42:25 2019
+++ src/sys/arch/evbppc/virtex/dev/if_temac.c	Wed May 29 05:06:39 2019
@@ -1,4 +1,4 @@
-/* 	$NetBSD: if_temac.c,v 1.13 2019/01/22 03:42:25 msaitoh Exp $ */
+/* 	$NetBSD: if_temac.c,v 1.14 2019/05/29 05:06:39 msaitoh Exp $ */
 
 /*
  * Copyright (c) 2006 Jachym Holecek
@@ -40,7 +40,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_temac.c,v 1.13 2019/01/22 03:42:25 msaitoh Exp $");
+__KERNEL_RCSID(0, "$Net

CVS commit: src/sys

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed May 29 05:06:40 UTC 2019

Modified Files:
src/sys/arch/amiga/dev: if_es.c
src/sys/arch/emips/ebus: if_le_ebus.c
src/sys/arch/evbppc/virtex/dev: if_temac.c
src/sys/arch/mips/ralink: ralink_eth.c
src/sys/arch/next68k/dev: mb8795.c
src/sys/arch/playstation2/dev: if_smap.c
src/sys/arch/sun2/dev: if_ec.c
src/sys/dev/ic: ax88190.c

Log Message:
 Whitespace fix. No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/sys/arch/amiga/dev/if_es.c
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/emips/ebus/if_le_ebus.c
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/evbppc/virtex/dev/if_temac.c
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/mips/ralink/ralink_eth.c
cvs rdiff -u -r1.62 -r1.63 src/sys/arch/next68k/dev/mb8795.c
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/playstation2/dev/if_smap.c
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/sun2/dev/if_ec.c
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/ic/ax88190.c

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



CVS commit: src/sys

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed May 29 06:17:28 UTC 2019

Modified Files:
src/sys/arch/arm/omap: if_cpsw.c
src/sys/arch/arm/ti: if_cpsw.c
src/sys/arch/mips/ralink: ralink_eth.c
src/sys/arch/newsmips/apbus: if_tlp_ap.c
src/sys/dev/ic: ax88190.c dl10019.c elink3.c
src/sys/dev/pci: if_tlp_pci.c

Log Message:
No functional change:
 - Simplify MII structure initialization and reference.
 - KNF


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/arm/omap/if_cpsw.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/arm/ti/if_cpsw.c
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/mips/ralink/ralink_eth.c
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/newsmips/apbus/if_tlp_ap.c
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/ic/ax88190.c
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/ic/dl10019.c
cvs rdiff -u -r1.148 -r1.149 src/sys/dev/ic/elink3.c
cvs rdiff -u -r1.125 -r1.126 src/sys/dev/pci/if_tlp_pci.c

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



CVS commit: src/sys

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed May 29 06:17:28 UTC 2019

Modified Files:
src/sys/arch/arm/omap: if_cpsw.c
src/sys/arch/arm/ti: if_cpsw.c
src/sys/arch/mips/ralink: ralink_eth.c
src/sys/arch/newsmips/apbus: if_tlp_ap.c
src/sys/dev/ic: ax88190.c dl10019.c elink3.c
src/sys/dev/pci: if_tlp_pci.c

Log Message:
No functional change:
 - Simplify MII structure initialization and reference.
 - KNF


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/arm/omap/if_cpsw.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/arm/ti/if_cpsw.c
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/mips/ralink/ralink_eth.c
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/newsmips/apbus/if_tlp_ap.c
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/ic/ax88190.c
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/ic/dl10019.c
cvs rdiff -u -r1.148 -r1.149 src/sys/dev/ic/elink3.c
cvs rdiff -u -r1.125 -r1.126 src/sys/dev/pci/if_tlp_pci.c

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

Modified files:

Index: src/sys/arch/arm/omap/if_cpsw.c
diff -u src/sys/arch/arm/omap/if_cpsw.c:1.24 src/sys/arch/arm/omap/if_cpsw.c:1.25
--- src/sys/arch/arm/omap/if_cpsw.c:1.24	Wed May 29 05:05:24 2019
+++ src/sys/arch/arm/omap/if_cpsw.c	Wed May 29 06:17:27 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_cpsw.c,v 1.24 2019/05/29 05:05:24 msaitoh Exp $	*/
+/*	$NetBSD: if_cpsw.c,v 1.25 2019/05/29 06:17:27 msaitoh Exp $	*/
 
 /*
  * Copyright (c) 2013 Jonathan A. Kollasch
@@ -53,7 +53,7 @@
  */
 
 #include 
-__KERNEL_RCSID(1, "$NetBSD: if_cpsw.c,v 1.24 2019/05/29 05:05:24 msaitoh Exp $");
+__KERNEL_RCSID(1, "$NetBSD: if_cpsw.c,v 1.25 2019/05/29 06:17:27 msaitoh Exp $");
 
 #include 
 #include 
@@ -394,6 +394,7 @@ cpsw_attach(device_t parent, device_t se
 	prop_dictionary_t dict = device_properties(self);
 	struct ethercom * const ec = &sc->sc_ec;
 	struct ifnet * const ifp = &ec->ec_if;
+	struct mii_data * const mii = &sc->sc_mii;
 	int error;
 	u_int i;
 
@@ -508,7 +509,7 @@ cpsw_attach(device_t parent, device_t se
 	bus_dmamap_create(sc->sc_bdt, ETHER_MIN_LEN, 1, ETHER_MIN_LEN, 0,
 	BUS_DMA_WAITOK, &sc->sc_txpad_dm);
 	bus_dmamap_load(sc->sc_bdt, sc->sc_txpad_dm, sc->sc_txpad,
-	ETHER_MIN_LEN, NULL, BUS_DMA_WAITOK|BUS_DMA_WRITE);
+	ETHER_MIN_LEN, NULL, BUS_DMA_WAITOK | BUS_DMA_WRITE);
 	bus_dmamap_sync(sc->sc_bdt, sc->sc_txpad_dm, 0, ETHER_MIN_LEN,
 	BUS_DMASYNC_PREWRITE);
 
@@ -528,14 +529,13 @@ cpsw_attach(device_t parent, device_t se
 
 	cpsw_stop(ifp, 0);
 
-	sc->sc_mii.mii_ifp = ifp;
-	sc->sc_mii.mii_readreg = cpsw_mii_readreg;
-	sc->sc_mii.mii_writereg = cpsw_mii_writereg;
-	sc->sc_mii.mii_statchg = cpsw_mii_statchg;
-
-	sc->sc_ec.ec_mii = &sc->sc_mii;
-	ifmedia_init(&sc->sc_mii.mii_media, 0, ether_mediachange,
-	ether_mediastatus);
+	mii->mii_ifp = ifp;
+	mii->mii_readreg = cpsw_mii_readreg;
+	mii->mii_writereg = cpsw_mii_writereg;
+	mii->mii_statchg = cpsw_mii_statchg;
+
+	sc->sc_ec.ec_mii = mii;
+	ifmedia_init(&mii->mii_media, 0, ether_mediachange, ether_mediastatus);
 
 	/* Initialize MDIO */
 	cpsw_write_4(sc, MDIOCONTROL,
@@ -543,13 +543,12 @@ cpsw_attach(device_t parent, device_t se
 	/* Clear ALE */
 	cpsw_write_4(sc, CPSW_ALE_CONTROL, ALECTL_CLEAR_TABLE);
 
-	mii_attach(self, &sc->sc_mii, 0x, MII_PHY_ANY, 0, 0);
-	if (LIST_FIRST(&sc->sc_mii.mii_phys) == NULL) {
+	mii_attach(self, mii, 0x, MII_PHY_ANY, 0, 0);
+	if (LIST_FIRST(&mii->mii_phys) == NULL) {
 		aprint_error_dev(self, "no PHY found!\n");
 		sc->sc_phy_has_1000t = false;
-		ifmedia_add(&sc->sc_mii.mii_media,
-		IFM_ETHER|IFM_MANUAL, 0, NULL);
-		ifmedia_set(&sc->sc_mii.mii_media, IFM_ETHER|IFM_MANUAL);
+		ifmedia_add(&mii->mii_media, IFM_ETHER | IFM_MANUAL, 0, NULL);
+		ifmedia_set(&mii->mii_media, IFM_ETHER | IFM_MANUAL);
 	} else {
 		sc->sc_phy_has_1000t = cpsw_phy_has_1000t(sc);
 		if (sc->sc_phy_has_1000t) {
@@ -564,7 +563,7 @@ cpsw_attach(device_t parent, device_t se
 			GMIISEL_GMII1_SEL(RGMII_MODE));
 		}
 
-		ifmedia_set(&sc->sc_mii.mii_media, IFM_ETHER|IFM_AUTO);
+		ifmedia_set(&mii->mii_media, IFM_ETHER | IFM_AUTO);
 	}
 
 	if_attach(ifp);
@@ -597,7 +596,7 @@ cpsw_start(struct ifnet *ifp)
 	KERNHIST_FUNC(__func__);
 	KERNHIST_CALLED_5(cpswhist, (uintptr_t)sc, 0, 0, 0);
 
-	if (__predict_false((ifp->if_flags & (IFF_RUNNING|IFF_OACTIVE)) !=
+	if (__predict_false((ifp->if_flags & (IFF_RUNNING | IFF_OACTIVE)) !=
 	IFF_RUNNING)) {
 		return;
 	}
@@ -838,7 +837,7 @@ cpsw_new_rxbuf(struct cpsw_softc * const
 	rdp->rx_mb[i] = m;
 
 	error = bus_dmamap_load_mbuf(sc->sc_bdt, rdp->rx_dm[i], rdp->rx_mb[i],
-	BUS_DMA_READ|BUS_DMA_NOWAIT);
+	BUS_DMA_READ | BUS_DMA_NOWAIT);
 	if (error) {
 		device_printf(sc->sc_dev, "can't load rx DMA map %d: %d\n",
 		i, error);
@@ -1076,7 +1075,7 @@ cpsw_stop(struct ifnet *ifp, int disable
 		rdp->tx_mb[i] = NULL;
 	}
 
-	ifp->if_flags &= ~(IFF_RUNNING|IFF_OACTIVE);
+	ifp->if_flags &= ~(IFF

CVS commit: src/sys

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed May 29 06:21:58 UTC 2019

Modified Files:
src/sys/arch/acorn32/podulebus: if_ne_pbus.c
src/sys/arch/amiga/dev: if_es.c
src/sys/arch/arm/broadcom: bcm53xx_eth.c
src/sys/arch/arm/gemini: if_gpn.c
src/sys/arch/arm/omap: omapl1x_emac.c
src/sys/arch/emips/ebus: if_le_ebus.c
src/sys/arch/evbppc/virtex/dev: if_temac.c
src/sys/arch/next68k/dev: mb8795.c
src/sys/arch/playstation2/dev: if_smap.c
src/sys/arch/shark/ofw: if_cs_ofisa_machdep.c
src/sys/arch/sun2/dev: if_ec.c
src/sys/arch/usermode/dev: if_veth.c
src/sys/dev/isa: if_ec.c
src/sys/dev/ofw: ofw_network_subr.c
src/sys/dev/sbus: if_le.c if_le_lebuffer.c

Log Message:
 KNF. No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/acorn32/podulebus/if_ne_pbus.c
cvs rdiff -u -r1.62 -r1.63 src/sys/arch/amiga/dev/if_es.c
cvs rdiff -u -r1.35 -r1.36 src/sys/arch/arm/broadcom/bcm53xx_eth.c
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/arm/gemini/if_gpn.c
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/arm/omap/omapl1x_emac.c
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/emips/ebus/if_le_ebus.c
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/evbppc/virtex/dev/if_temac.c
cvs rdiff -u -r1.63 -r1.64 src/sys/arch/next68k/dev/mb8795.c
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/playstation2/dev/if_smap.c
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/shark/ofw/if_cs_ofisa_machdep.c
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/sun2/dev/if_ec.c
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/usermode/dev/if_veth.c
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/isa/if_ec.c
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/ofw/ofw_network_subr.c
cvs rdiff -u -r1.40 -r1.41 src/sys/dev/sbus/if_le.c
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/sbus/if_le_lebuffer.c

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



CVS commit: src/sys

2019-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed May 29 06:21:58 UTC 2019

Modified Files:
src/sys/arch/acorn32/podulebus: if_ne_pbus.c
src/sys/arch/amiga/dev: if_es.c
src/sys/arch/arm/broadcom: bcm53xx_eth.c
src/sys/arch/arm/gemini: if_gpn.c
src/sys/arch/arm/omap: omapl1x_emac.c
src/sys/arch/emips/ebus: if_le_ebus.c
src/sys/arch/evbppc/virtex/dev: if_temac.c
src/sys/arch/next68k/dev: mb8795.c
src/sys/arch/playstation2/dev: if_smap.c
src/sys/arch/shark/ofw: if_cs_ofisa_machdep.c
src/sys/arch/sun2/dev: if_ec.c
src/sys/arch/usermode/dev: if_veth.c
src/sys/dev/isa: if_ec.c
src/sys/dev/ofw: ofw_network_subr.c
src/sys/dev/sbus: if_le.c if_le_lebuffer.c

Log Message:
 KNF. No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/acorn32/podulebus/if_ne_pbus.c
cvs rdiff -u -r1.62 -r1.63 src/sys/arch/amiga/dev/if_es.c
cvs rdiff -u -r1.35 -r1.36 src/sys/arch/arm/broadcom/bcm53xx_eth.c
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/arm/gemini/if_gpn.c
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/arm/omap/omapl1x_emac.c
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/emips/ebus/if_le_ebus.c
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/evbppc/virtex/dev/if_temac.c
cvs rdiff -u -r1.63 -r1.64 src/sys/arch/next68k/dev/mb8795.c
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/playstation2/dev/if_smap.c
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/shark/ofw/if_cs_ofisa_machdep.c
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/sun2/dev/if_ec.c
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/usermode/dev/if_veth.c
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/isa/if_ec.c
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/ofw/ofw_network_subr.c
cvs rdiff -u -r1.40 -r1.41 src/sys/dev/sbus/if_le.c
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/sbus/if_le_lebuffer.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/acorn32/podulebus/if_ne_pbus.c
diff -u src/sys/arch/acorn32/podulebus/if_ne_pbus.c:1.19 src/sys/arch/acorn32/podulebus/if_ne_pbus.c:1.20
--- src/sys/arch/acorn32/podulebus/if_ne_pbus.c:1.19	Thu Apr 25 10:08:45 2019
+++ src/sys/arch/acorn32/podulebus/if_ne_pbus.c	Wed May 29 06:21:56 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_ne_pbus.c,v 1.19 2019/04/25 10:08:45 msaitoh Exp $	*/
+/*	$NetBSD: if_ne_pbus.c,v 1.20 2019/05/29 06:21:56 msaitoh Exp $	*/
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -50,7 +50,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_ne_pbus.c,v 1.19 2019/04/25 10:08:45 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ne_pbus.c,v 1.20 2019/05/29 06:21:56 msaitoh Exp $");
 
 #include 
 #include 
@@ -496,9 +496,9 @@ eh600_preattach(struct ne_pbus_softc *sc
 	bus_space_write_1(nict, nich, DP83905_MCRA, DP83905_MCRA_INT3);
 
 	/* Enable interrupts for the card */
-	tmp = bus_space_read_1(&sc->sc_tag,sc->sc_extrah,0);
+	tmp = bus_space_read_1(&sc->sc_tag, sc->sc_extrah, 0);
 	tmp |= EH_INTR_MASK;
-	bus_space_write_1(&sc->sc_tag,sc->sc_extrah,0,tmp);
+	bus_space_write_1(&sc->sc_tag, sc->sc_extrah, 0, tmp);
 }
 
 /*
@@ -572,7 +572,7 @@ void
 en_init_media(struct dp8390_softc *sc)
 {
 	static int en_media[] = {
-		IFM_ETHER|IFM_10_T
+		IFM_ETHER | IFM_10_T
 	};
 
 	aprint_normal_dev(sc->sc_dev, "10baseT, default 10baseT\n");

Index: src/sys/arch/amiga/dev/if_es.c
diff -u src/sys/arch/amiga/dev/if_es.c:1.62 src/sys/arch/amiga/dev/if_es.c:1.63
--- src/sys/arch/amiga/dev/if_es.c:1.62	Wed May 29 05:06:39 2019
+++ src/sys/arch/amiga/dev/if_es.c	Wed May 29 06:21:56 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_es.c,v 1.62 2019/05/29 05:06:39 msaitoh Exp $ */
+/*	$NetBSD: if_es.c,v 1.63 2019/05/29 06:21:56 msaitoh Exp $ */
 
 /*
  * Copyright (c) 1995 Michael L. Hitch
@@ -33,7 +33,7 @@
 #include "opt_ns.h"
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_es.c,v 1.62 2019/05/29 05:06:39 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_es.c,v 1.63 2019/05/29 06:21:56 msaitoh Exp $");
 
 
 #include 
@@ -177,8 +177,8 @@ esattach(device_t parent, device_t self,
 	ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
 
 	ifmedia_init(&sc->sc_media, 0, esmediachange, esmediastatus);
-	ifmedia_add(&sc->sc_media, IFM_ETHER|IFM_MANUAL, 0, NULL);
-	ifmedia_set(&sc->sc_media, IFM_ETHER|IFM_MANUAL);
+	ifmedia_add(&sc->sc_media, IFM_ETHER | IFM_MANUAL, 0, NULL);
+	ifmedia_set(&sc->sc_media, IFM_ETHER | IFM_MANUAL);
 
 	/* Attach the interface. */
 	if_attach(ifp);

Index: src/sys/arch/arm/broadcom/bcm53xx_eth.c
diff -u src/sys/arch/arm/broadcom/bcm53xx_eth.c:1.35 src/sys/arch/arm/broadcom/bcm53xx_eth.c:1.36
--- src/sys/arch/arm/broadcom/bcm53xx_eth.c:1.35	Fri Apr 26 06:33:33 2019
+++ src/sys/arch/arm/broadcom/bcm53xx_eth.c	Wed May 29 06:21:56 2019
@@ -35,7 +35,7 @@
 
 #include 
 
-__KERNEL_RCSID(1, "$NetBSD: bcm53xx_eth.c,v 1.35 2019/04/26 06:33:33 msaitoh Exp $");
+__KERNEL_RCSID(1, "$NetBSD: bcm53xx_eth.c,v 1.36 2019/05/29 06:21:56 m