CVS commit: src/external/lgpl3/gmp/dist/mpn/generic

2012-10-27 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Sat Oct 27 06:55:55 UTC 2012

Modified Files:
src/external/lgpl3/gmp/dist/mpn/generic: get_d.c

Log Message:
Appease shift vs substract warning for clang.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/lgpl3/gmp/dist/mpn/generic/get_d.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/lgpl3/gmp/dist/mpn/generic/get_d.c
diff -u src/external/lgpl3/gmp/dist/mpn/generic/get_d.c:1.1.1.1 src/external/lgpl3/gmp/dist/mpn/generic/get_d.c:1.2
--- src/external/lgpl3/gmp/dist/mpn/generic/get_d.c:1.1.1.1	Mon Jun 20 05:54:41 2011
+++ src/external/lgpl3/gmp/dist/mpn/generic/get_d.c	Sat Oct 27 06:55:54 2012
@@ -220,7 +220,7 @@ mpn_get_d (mp_srcptr up, mp_size_t size,
 	  x = GMP_NAIL_BITS;
 	  mhi |= x  nbits  11;
 
-	  mlo = x  GMP_LIMB_BITS - nbits - 11;
+	  mlo = x  (GMP_LIMB_BITS - nbits - 11);
 	  nbits = nbits + 11 - GMP_NAIL_BITS;
 	}
   else



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

2012-10-27 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Sat Oct 27 07:19:45 UTC 2012

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

Log Message:
Fix uninitialised variable warning from clang by removing the variable
used in first place.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/x86/x86/powernow.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/powernow.c
diff -u src/sys/arch/x86/x86/powernow.c:1.6 src/sys/arch/x86/x86/powernow.c:1.7
--- src/sys/arch/x86/x86/powernow.c:1.6	Wed Jul 18 21:55:05 2012
+++ src/sys/arch/x86/x86/powernow.c	Sat Oct 27 07:19:45 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: powernow.c,v 1.6 2012/07/18 21:55:05 joerg Exp $ */
+/*	$NetBSD: powernow.c,v 1.7 2012/10/27 07:19:45 joerg Exp $ */
 /*	$OpenBSD: powernow-k8.c,v 1.8 2006/06/16 05:58:50 gwk Exp $ */
 
 /*-
@@ -57,7 +57,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: powernow.c,v 1.6 2012/07/18 21:55:05 joerg Exp $);
+__KERNEL_RCSID(0, $NetBSD: powernow.c,v 1.7 2012/10/27 07:19:45 joerg Exp $);
 
 #include sys/param.h
 #include sys/device.h
@@ -378,7 +378,7 @@ powernow_k7_init(device_t self)
 	struct powernow_softc *sc = device_private(self);
 	uint32_t currentfid, maxfid, mhz, startvid;
 	uint64_t status;
-	int i, rv, len;
+	int i, rv;
 	char tmp[6];
 
 	sc-sc_state = kmem_alloc(sizeof(*sc-sc_state), KM_SLEEP);
@@ -428,7 +428,7 @@ powernow_k7_init(device_t self)
 			sc-sc_state-state_table[i].fid,
 			sc-sc_state-state_table[i].vid));
 
-		len += snprintf(tmp, sizeof(tmp), %d%s,
+		snprintf(tmp, sizeof(tmp), %d%s,
 		sc-sc_state-state_table[i].freq,
 		i  sc-sc_state-n_states - 1 ?   : );
 



CVS commit: src/sys/arch/amiga

2012-10-27 Thread Frank Wille
Module Name:src
Committed By:   phx
Date:   Sat Oct 27 11:54:21 UTC 2012

Modified Files:
src/sys/arch/amiga/clockport: files.clockport
src/sys/arch/amiga/conf: files.amiga

Log Message:
Fixed dependencies for some new PCI and clockport devices, to make a
kernel compile without them.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/amiga/clockport/files.clockport
cvs rdiff -u -r1.162 -r1.163 src/sys/arch/amiga/conf/files.amiga

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/clockport/files.clockport
diff -u src/sys/arch/amiga/clockport/files.clockport:1.2 src/sys/arch/amiga/clockport/files.clockport:1.3
--- src/sys/arch/amiga/clockport/files.clockport:1.2	Tue May 15 17:35:43 2012
+++ src/sys/arch/amiga/clockport/files.clockport	Sat Oct 27 11:54:21 2012
@@ -1,4 +1,4 @@
-#	$NetBSD: files.clockport,v 1.2 2012/05/15 17:35:43 rkujawa Exp $
+#	$NetBSD: files.clockport,v 1.3 2012/10/27 11:54:21 phx Exp $
 
 define	clockportbus {}
 
@@ -36,6 +36,4 @@ file	arch/amiga/clockport/clockport.c	cl
 
 # Individual Computers SilverSurfer serial
 attach	com at clockport with com_ss
-file	arch/amiga/clockport/com_ss.c
-
-
+file	arch/amiga/clockport/com_ss.c		com_ss

Index: src/sys/arch/amiga/conf/files.amiga
diff -u src/sys/arch/amiga/conf/files.amiga:1.162 src/sys/arch/amiga/conf/files.amiga:1.163
--- src/sys/arch/amiga/conf/files.amiga:1.162	Sun Oct 14 20:33:17 2012
+++ src/sys/arch/amiga/conf/files.amiga	Sat Oct 27 11:54:21 2012
@@ -1,4 +1,4 @@
-#	$NetBSD: files.amiga,v 1.162 2012/10/14 20:33:17 phx Exp $
+#	$NetBSD: files.amiga,v 1.163 2012/10/27 11:54:21 phx Exp $
 
 # maxpartitions must be first item in files.${ARCH}.newconf
 maxpartitions 16			# NOTE THAT AMIGA IS SPECIAL!
@@ -527,19 +527,19 @@ file	arch/amiga/pci/pci_machdep.c	pci
 
 device	p5pb: pcibus
 attach	p5pb at p5bus 
-file	arch/amiga/pci/p5pb.c		pci
+file	arch/amiga/pci/p5pb.c		p5pb  pci
 
 device	mppb: pcibus
 attach	mppb at zbus
-file	arch/amiga/pci/mppb.c		pci
+file	arch/amiga/pci/mppb.c		mppb  pci
 
 device	cv3dpb: pcibus
 attach	cv3dpb at zbus
-file	arch/amiga/pci/cv3dpb.c		pci
+file	arch/amiga/pci/cv3dpb.c		cv3dpb  pci
 
 device	empb: pcibus, amibus_empb
 attach	empb at zbus
-file	arch/amiga/pci/empb.c		pci
+file	arch/amiga/pci/empb.c		empb  pci
 
 device	emmem {}
 attach	emmem at zbus



CVS commit: src/share/zoneinfo

2012-10-27 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Sat Oct 27 16:43:10 UTC 2012

Update of /cvsroot/src/share/zoneinfo
In directory ivanova.netbsd.org:/tmp/cvs-serv24175

Log Message:
Import tzdata2012g from ftp://ftp.iana.org/tz/releases/tzdata2012h.tar.gz

Changes from tzdata2012g to tzdata2012h:

  Bahia no longer has DST.  (Thanks to Kelley Cook.)

  Tocantins has DST.  (Thanks to Rodrigo Severo.)

  Israel has new DST rules next year.  (Thanks to Ephraim Silverberg.)

  Jordan stays on DST this winter.  (Thanks to Steffen Thorsen.)

  Web page updates.

Status:

Vendor Tag: ADO
Release Tags:   TZDATA2012H

U src/share/zoneinfo/antarctica
C src/share/zoneinfo/Makefile
U src/share/zoneinfo/africa
U src/share/zoneinfo/australasia
U src/share/zoneinfo/asia
U src/share/zoneinfo/northamerica
U src/share/zoneinfo/europe
U src/share/zoneinfo/yearistype.sh
U src/share/zoneinfo/southamerica
U src/share/zoneinfo/pacificnew
U src/share/zoneinfo/etcetera
U src/share/zoneinfo/backward
U src/share/zoneinfo/systemv
U src/share/zoneinfo/factory
U src/share/zoneinfo/solar87
U src/share/zoneinfo/solar88
U src/share/zoneinfo/solar89
U src/share/zoneinfo/iso3166.tab
U src/share/zoneinfo/zone.tab
U src/share/zoneinfo/leapseconds

1 conflicts created by this import.
Use the following command to help the merge:

cvs checkout -jADO:yesterday -jADO src/share/zoneinfo



CVS commit: src/doc

2012-10-27 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Sat Oct 27 16:48:58 UTC 2012

Modified Files:
src/doc: 3RDPARTY

Log Message:
tzcode202h/tzdata2012h have been released.  We have updated to tzdata2012h.


To generate a diff of this commit:
cvs rdiff -u -r1.976 -r1.977 src/doc/3RDPARTY

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.976 src/doc/3RDPARTY:1.977
--- src/doc/3RDPARTY:1.976	Wed Oct 24 00:12:08 2012
+++ src/doc/3RDPARTY	Sat Oct 27 16:48:57 2012
@@ -1,4 +1,4 @@
-#	$NetBSD: 3RDPARTY,v 1.976 2012/10/24 00:12:08 christos Exp $
+#	$NetBSD: 3RDPARTY,v 1.977 2012/10/27 16:48:57 apb Exp $
 #
 # This file contains a list of the software that has been integrated into
 # NetBSD where we are not the primary maintainer.
@@ -1189,8 +1189,8 @@ Notes:
 Added changes from a5 - a12 manually.
 
 Package:	tz
-Version:	tzcode2012g / tzdata2012g
-Current Vers:	tzcode2012g / tzdata2012g
+Version:	tzcode2012g / tzdata2012h
+Current Vers:	tzcode2012h / tzdata2012h
 Maintainer:	Paul Eggert egg...@cs.ucla.edu
 Archive Site:	ftp://ftp.iana.org/tz/releases/
 Archive Site:	ftp://munnari.oz.au/pub/oldtz/



CVS commit: src/doc

2012-10-27 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Sat Oct 27 16:50:14 UTC 2012

Modified Files:
src/doc: CHANGES

Log Message:
zoneinfo: Import tzdata2012h. [apb 20121027]
Also change zoneinfo: to libc: in an entry for tzcode.


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

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

Modified files:

Index: src/doc/CHANGES
diff -u src/doc/CHANGES:1.1752 src/doc/CHANGES:1.1753
--- src/doc/CHANGES:1.1752	Wed Oct 24 00:12:08 2012
+++ src/doc/CHANGES	Sat Oct 27 16:50:13 2012
@@ -1,4 +1,4 @@
-# LIST OF CHANGES FROM LAST RELEASE:			$Revision: 1.1752 $
+# LIST OF CHANGES FROM LAST RELEASE:			$Revision: 1.1753 $
 #
 #
 # [Note: This file does not mention every change made to the NetBSD source tree.
@@ -131,4 +131,5 @@ Changes from NetBSD 6.0 to NetBSD 7.0:
 	kernel: Added experimental support for the (mostly SSD specific)
 		discard, or ATA TRIM command to wd(4) and ffs
 		[drochner 20121019]
-	zoneinfo: Import tzcode2012g. [christos 20121023]
+	libc: Import tzcode2012g. [christos 20121023]
+	zoneinfo: Import tzdata2012h. [apb 20121027]



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

2012-10-27 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Sat Oct 27 17:24:37 UTC 2012

Modified Files:
src/sys/arch/arm/broadcom: bcm53xx_rng.c

Log Message:
Reenable NO_ESTIMATE now that rnd has been fixed.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/arm/broadcom/bcm53xx_rng.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/broadcom/bcm53xx_rng.c
diff -u src/sys/arch/arm/broadcom/bcm53xx_rng.c:1.2 src/sys/arch/arm/broadcom/bcm53xx_rng.c:1.3
--- src/sys/arch/arm/broadcom/bcm53xx_rng.c:1.2	Fri Oct 26 04:45:03 2012
+++ src/sys/arch/arm/broadcom/bcm53xx_rng.c	Sat Oct 27 17:24:37 2012
@@ -33,7 +33,7 @@
 
 #include sys/cdefs.h
 
-__KERNEL_RCSID(1, $NetBSD: bcm53xx_rng.c,v 1.2 2012/10/26 04:45:03 matt Exp $);
+__KERNEL_RCSID(1, $NetBSD: bcm53xx_rng.c,v 1.3 2012/10/27 17:24:37 matt Exp $);
 
 #include sys/bus.h
 #include sys/callout.h
@@ -135,7 +135,7 @@ bcmrng_ccb_attach(device_t parent, devic
 	callout_init(sc-sc_rnd_callout, CALLOUT_MPSAFE);
 
 	rnd_attach_source(sc-sc_rnd_source, device_xname(self), RND_TYPE_RNG,
-	0 /* RND_FLAG_NO_ESTIMATE */);
+	RND_FLAG_NO_ESTIMATE);
 
 #ifdef RNG_USE_INTR
 	sc-sc_ih = intr_establish(loc-loc_intrs[0], IPL_VM, IST_LEVEL,



CVS commit: src/sys/arch/ia64/ia64

2012-10-27 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Sat Oct 27 17:29:03 UTC 2012

Modified Files:
src/sys/arch/ia64/ia64: sapic.c

Log Message:
malloc - kmem_zalloc.  this also fixes a build error.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/ia64/ia64/sapic.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/ia64/ia64/sapic.c
diff -u src/sys/arch/ia64/ia64/sapic.c:1.1 src/sys/arch/ia64/ia64/sapic.c:1.2
--- src/sys/arch/ia64/ia64/sapic.c:1.1	Mon Jul 20 04:41:36 2009
+++ src/sys/arch/ia64/ia64/sapic.c	Sat Oct 27 17:29:03 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: sapic.c,v 1.1 2009/07/20 04:41:36 kiyohara Exp $	*/
+/*	$NetBSD: sapic.c,v 1.2 2012/10/27 17:29:03 chs Exp $	*/
 /*-
  * Copyright (c) 2001 Doug Rabson
  * All rights reserved.
@@ -30,7 +30,7 @@
 #include opt_ddb.h
 
 #include sys/param.h
-#include sys/malloc.h
+#include sys/kmem.h
 #include sys/kernel.h
 #include sys/systm.h
 #include sys/bus.h
@@ -44,8 +44,6 @@
 #include machine/sapicvar.h
 
 
-static MALLOC_DEFINE(M_SAPIC, sapic, I/O SAPIC devices);
-
 struct sapic *ia64_sapics[16]; /* XXX make this resizable */
 static int ia64_sapic_count;
 
@@ -146,7 +144,7 @@ sapic_create(u_int id, u_int base, uint6
 	struct sapic *sa;
 	u_int i;
 
-	sa = malloc(sizeof(struct sapic), M_SAPIC, M_ZERO | M_NOWAIT);
+	sa = kmem_zalloc(sizeof(struct sapic), KM_NOSLEEP);
 	if (sa == NULL)
 		return NULL;
 



CVS commit: src/sys/kern

2012-10-27 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Sat Oct 27 17:34:07 UTC 2012

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

Log Message:
Use kmem_intr_alloc/kmem_intr_free


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/kern/subr_cprng.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_cprng.c
diff -u src/sys/kern/subr_cprng.c:1.12 src/sys/kern/subr_cprng.c:1.13
--- src/sys/kern/subr_cprng.c:1.12	Sat Sep  8 02:58:13 2012
+++ src/sys/kern/subr_cprng.c	Sat Oct 27 17:34:07 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: subr_cprng.c,v 1.12 2012/09/08 02:58:13 msaitoh Exp $ */
+/*	$NetBSD: subr_cprng.c,v 1.13 2012/10/27 17:34:07 matt Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -46,7 +46,7 @@
 
 #include sys/cprng.h
 
-__KERNEL_RCSID(0, $NetBSD: subr_cprng.c,v 1.12 2012/09/08 02:58:13 msaitoh Exp $);
+__KERNEL_RCSID(0, $NetBSD: subr_cprng.c,v 1.13 2012/10/27 17:34:07 matt Exp $);
 
 void
 cprng_init(void)
@@ -286,7 +286,7 @@ rekeyany:
 	 */
 	if (__predict_false(c-drbg.reseed_counter == 1) 
 	(flags  FASYNC) == 0) {
-		rngtest_t *rt = kmem_alloc(sizeof(*rt), KM_NOSLEEP);
+		rngtest_t *rt = kmem_intr_alloc(sizeof(*rt), KM_NOSLEEP);
 
 		if (rt) {
 
@@ -308,7 +308,7 @@ rekeyany:
 len = 0;
 			}
 			memset(rt, 0, sizeof(*rt));
-			kmem_free(rt, sizeof(*rt));
+			kmem_intr_free(rt, sizeof(*rt));
 		}
 	}
 #endif



CVS commit: src/external/bsd/ipf/dist/tools

2012-10-27 Thread Takeshi Nakayama
Module Name:src
Committed By:   nakayama
Date:   Sat Oct 27 20:07:12 UTC 2012

Modified Files:
src/external/bsd/ipf/dist/tools: ipmon.c

Log Message:
Remove ipl overwrite.  Which was missed in previous.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/bsd/ipf/dist/tools/ipmon.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/bsd/ipf/dist/tools/ipmon.c
diff -u src/external/bsd/ipf/dist/tools/ipmon.c:1.6 src/external/bsd/ipf/dist/tools/ipmon.c:1.7
--- src/external/bsd/ipf/dist/tools/ipmon.c:1.6	Fri Oct 26 23:05:14 2012
+++ src/external/bsd/ipf/dist/tools/ipmon.c	Sat Oct 27 20:07:12 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: ipmon.c,v 1.6 2012/10/26 23:05:14 christos Exp $	*/
+/*	$NetBSD: ipmon.c,v 1.7 2012/10/27 20:07:12 nakayama Exp $	*/
 
 /*
  * Copyright (C) 2012 by Darren Reed.
@@ -844,7 +844,6 @@ print_statelog(config_t *conf, const ipl
 	struct tm *tm;
 
 	t = line;
-	ipl = (const iplog_t *)buf;
 	if (ipl-ipl_seqnum != seqnum) {
 		if ((ipmonopts  IPMON_SYSLOG) != 0) {
 			syslog(LOG_WARNING,



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

2012-10-27 Thread Frank Wille
Module Name:src
Committed By:   phx
Date:   Sat Oct 27 21:13:03 UTC 2012

Modified Files:
src/sys/arch/amiga/dev: if_ed_zbus.c

Log Message:
Fixed receiving of odd-length packets. Driver works now perfectly.
Thanks to Harald Meinzer for providing me with a Hydra for a few days.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/amiga/dev/if_ed_zbus.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_ed_zbus.c
diff -u src/sys/arch/amiga/dev/if_ed_zbus.c:1.1 src/sys/arch/amiga/dev/if_ed_zbus.c:1.2
--- src/sys/arch/amiga/dev/if_ed_zbus.c:1.1	Sun Oct 14 13:36:07 2012
+++ src/sys/arch/amiga/dev/if_ed_zbus.c	Sat Oct 27 21:13:03 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_ed_zbus.c,v 1.1 2012/10/14 13:36:07 phx Exp $ */
+/*	$NetBSD: if_ed_zbus.c,v 1.2 2012/10/27 21:13:03 phx Exp $ */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: if_ed_zbus.c,v 1.1 2012/10/14 13:36:07 phx Exp $);
+__KERNEL_RCSID(0, $NetBSD: if_ed_zbus.c,v 1.2 2012/10/27 21:13:03 phx Exp $);
 
 #include sys/param.h
 #include sys/device.h
@@ -208,9 +208,10 @@ ed_zbus_test_mem(struct dp8390_softc *sc
 	bus_space_handle_t bufh = sc-sc_bufh;
 	int i;
 
-	bus_space_set_region_2(buft, bufh, sc-mem_start, 0, sc-mem_size  1);
+	bus_space_set_region_2(buft, bufh, sc-mem_start, 0,
+	sc-mem_size  1);
 
-	for (i = 0; i  sc-mem_size  1; i += 2) {
+	for (i = 0; i  sc-mem_size; i += 2) {
 		if (bus_space_read_2(sc-sc_buft, sc-sc_bufh, i)) {
 			printf(: failed to clear NIC buffer at offset %x - 
 			check configuration\n, (sc-mem_start + i));
@@ -225,16 +226,16 @@ ed_zbus_read_hdr(struct dp8390_softc *sc
 {
 	bus_space_tag_t buft = sc-sc_buft;
 	bus_space_handle_t bufh = sc-sc_bufh;
-	uint16_t wrd;
+	uint16_t wrd[2];
 
 	/*
 	 * Read the 4-byte header as two 16-bit words in little-endian
 	 * format. Convert into big-endian and put them into hdrp.
 	 */
-	wrd = bus_space_read_2(buft, bufh, src);
-	hdrp-rsr = wrd  0xff;
-	hdrp-next_packet = wrd  8;
-	hdrp-count = bswap16(bus_space_read_2(buft, bufh, src + 2));
+	bus_space_read_region_stream_2(buft, bufh, src, wrd, 2);
+	hdrp-rsr = wrd[0]  0xff;
+	hdrp-next_packet = wrd[0]  8;
+	hdrp-count = bswap16(wrd[1]);
 }
 
 /*
@@ -248,19 +249,30 @@ ed_zbus_ring_copy(struct dp8390_softc *s
 	bus_space_tag_t buft = sc-sc_buft;
 	bus_space_handle_t bufh = sc-sc_bufh;
 	u_short tmp_amount;
+	u_char readbyte[2];
 
 	/* Does copy wrap to lower addr in ring buffer? */
 	if (src + amount  sc-mem_end) {
 		tmp_amount = sc-mem_end - src;
 
-		/* Copy amount up to end of NIC memory. */
-		bus_space_read_region_2(buft, bufh, src, dst, tmp_amount  1);
+		/* copy amount up to end of NIC memory */
+		bus_space_read_region_stream_2(buft, bufh, src, dst,
+		tmp_amount  1);
 
 		amount -= tmp_amount;
 		src = sc-mem_ring;
-		dst = (char *)dst + tmp_amount;
+		dst = (u_char *)dst + tmp_amount;
+	}
+
+	bus_space_read_region_stream_2(buft, bufh, src, dst, amount  1);
+
+	/* handle odd length packet */
+	if (amount  1) {
+		bus_space_read_region_stream_2(buft, bufh, src + amount - 1,
+		(u_int16_t *)readbyte, 1);
+		*((u_char *)dst + amount - 1) = readbyte[0];
+		amount++;
 	}
-	bus_space_read_region_2(buft, bufh, src, dst, amount  1);
 
 	return src + amount;
 }
@@ -287,8 +299,9 @@ ed_zbus_write_mbuf(struct dp8390_softc *
 			/* Finish the last word. */
 			if (wantbyte) {
 savebyte[1] = *data;
-bus_space_write_region_2(sc-sc_buft,
-sc-sc_bufh, buf, (u_int16_t *)savebyte, 1);
+bus_space_write_region_stream_2(sc-sc_buft,
+sc-sc_bufh, buf,
+(u_int16_t *)savebyte, 1);
 buf += 2;
 data++;
 len--;
@@ -296,9 +309,9 @@ ed_zbus_write_mbuf(struct dp8390_softc *
 			}
 			/* Output contiguous words. */
 			if (len  1) {
-bus_space_write_region_2(
-sc-sc_buft, sc-sc_bufh,
-buf, (u_int16_t *)data, len  1);
+bus_space_write_region_stream_2(sc-sc_buft,
+sc-sc_bufh, buf,
+(u_int16_t *)data, len  1);
 buf += len  ~1;
 data += len  ~1;
 len = 1;
@@ -314,7 +327,7 @@ ed_zbus_write_mbuf(struct dp8390_softc *
 	len = ETHER_PAD_LEN - totlen;
 	if (wantbyte) {
 		savebyte[1] = 0;
-		bus_space_write_region_2(sc-sc_buft, sc-sc_bufh,
+		bus_space_write_region_stream_2(sc-sc_buft, sc-sc_bufh,
 		buf, (u_int16_t *)savebyte, 1);
 		buf += 2;
 		totlen++;



CVS commit: src

2012-10-27 Thread Alexander Nasonov
Module Name:src
Committed By:   alnsn
Date:   Sat Oct 27 22:36:14 UTC 2012

Modified Files:
src/distrib/sets/lists/comp: mi
src/distrib/sets/lists/modules: md.amd64
src/sys/conf: files
src/sys/modules: Makefile
src/sys/net: Makefile bpf.c bpf_filter.c bpfdesc.h
Added Files:
src/sys/modules/bpfjit: Makefile
src/sys/net: bpfjit.c bpfjit.h

Log Message:
Add bpfjit and enable it for amd64.


To generate a diff of this commit:
cvs rdiff -u -r1.1783 -r1.1784 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.35 -r1.36 src/distrib/sets/lists/modules/md.amd64
cvs rdiff -u -r1.1059 -r1.1060 src/sys/conf/files
cvs rdiff -u -r1.112 -r1.113 src/sys/modules/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/modules/bpfjit/Makefile
cvs rdiff -u -r1.31 -r1.32 src/sys/net/Makefile
cvs rdiff -u -r1.172 -r1.173 src/sys/net/bpf.c
cvs rdiff -u -r1.54 -r1.55 src/sys/net/bpf_filter.c
cvs rdiff -u -r1.35 -r1.36 src/sys/net/bpfdesc.h
cvs rdiff -u -r0 -r1.1 src/sys/net/bpfjit.c src/sys/net/bpfjit.h

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

Modified files:

Index: src/distrib/sets/lists/comp/mi
diff -u src/distrib/sets/lists/comp/mi:1.1783 src/distrib/sets/lists/comp/mi:1.1784
--- src/distrib/sets/lists/comp/mi:1.1783	Tue Oct  2 01:47:39 2012
+++ src/distrib/sets/lists/comp/mi	Sat Oct 27 22:36:11 2012
@@ -1,4 +1,4 @@
-#	$NetBSD: mi,v 1.1783 2012/10/02 01:47:39 christos Exp $
+#	$NetBSD: mi,v 1.1784 2012/10/27 22:36:11 alnsn Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -1806,6 +1806,7 @@
 ./usr/include/net/bpf.hcomp-c-include
 ./usr/include/net/bpfdesc.h			comp-c-include
 ./usr/include/net/bpf_jit.h			comp-c-include		obsolete
+./usr/include/net/bpfjit.h			comp-c-include
 ./usr/include/net/dlt.hcomp-c-include
 ./usr/include/net/ethertypes.h			comp-c-include
 ./usr/include/net/if.hcomp-c-include

Index: src/distrib/sets/lists/modules/md.amd64
diff -u src/distrib/sets/lists/modules/md.amd64:1.35 src/distrib/sets/lists/modules/md.amd64:1.36
--- src/distrib/sets/lists/modules/md.amd64:1.35	Sat Oct 13 19:42:02 2012
+++ src/distrib/sets/lists/modules/md.amd64	Sat Oct 27 22:36:13 2012
@@ -1,4 +1,4 @@
-# $NetBSD: md.amd64,v 1.35 2012/10/13 19:42:02 alnsn Exp $
+# $NetBSD: md.amd64,v 1.36 2012/10/27 22:36:13 alnsn Exp $
 ./@MODULEDIR@/acpiacadbase-kernel-modules	kmod
 ./@MODULEDIR@/acpiacad/acpiacad.kmod		base-kernel-modules	kmod
 ./@MODULEDIR@/acpibatbase-kernel-modules	kmod
@@ -39,6 +39,8 @@
 ./@MODULEDIR@/auvitek/auvitek.kmod		base-kernel-modules	kmod
 ./@MODULEDIR@/azaliabase-kernel-modules	kmod
 ./@MODULEDIR@/azalia/azalia.kmod		base-kernel-modules	kmod
+./@MODULEDIR@/bpfjitbase-kernel-modules	kmod
+./@MODULEDIR@/bpfjit/bpfjit.kmod		base-kernel-modules	kmod
 ./@MODULEDIR@/compat_linux			base-kernel-modules	kmod
 ./@MODULEDIR@/compat_linux/compat_linux.kmod	base-kernel-modules	kmod
 ./@MODULEDIR@/compat_linux32			base-kernel-modules	kmod

Index: src/sys/conf/files
diff -u src/sys/conf/files:1.1059 src/sys/conf/files:1.1060
--- src/sys/conf/files:1.1059	Wed Oct 17 20:16:59 2012
+++ src/sys/conf/files	Sat Oct 27 22:36:13 2012
@@ -1,4 +1,4 @@
-#	$NetBSD: files,v 1.1059 2012/10/17 20:16:59 drochner Exp $
+#	$NetBSD: files,v 1.1060 2012/10/27 22:36:13 alnsn Exp $
 #	@(#)files.newconf	7.5 (Berkeley) 5/10/93
 
 version 	20100430
@@ -186,6 +186,10 @@ include dev/sysmon/files.sysmon
 define	bpf_filter
 defparam opt_bpf.h	BPF_BUFSIZE
 
+defflag	opt_bpfjit.h	BPFJIT
+
+file	net/bpfjit.c	sljit  bpfjit
+
 include net80211/files.net80211
 include netatalk/files.netatalk
 include netbt/files.netbt

Index: src/sys/modules/Makefile
diff -u src/sys/modules/Makefile:1.112 src/sys/modules/Makefile:1.113
--- src/sys/modules/Makefile:1.112	Sat Oct 13 19:42:03 2012
+++ src/sys/modules/Makefile	Sat Oct 27 22:36:13 2012
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.112 2012/10/13 19:42:03 alnsn Exp $
+#	$NetBSD: Makefile,v 1.113 2012/10/27 22:36:13 alnsn Exp $
 
 .include bsd.own.mk
 
@@ -122,6 +122,7 @@ SUBDIR+=	vmt
 .endif
 
 .if ${MACHINE_ARCH} == x86_64
+SUBDIR+=	bpfjit
 SUBDIR+=	sljit
 .endif
 

Index: src/sys/net/Makefile
diff -u src/sys/net/Makefile:1.31 src/sys/net/Makefile:1.32
--- src/sys/net/Makefile:1.31	Thu Sep 27 18:28:56 2012
+++ src/sys/net/Makefile	Sat Oct 27 22:36:14 2012
@@ -1,8 +1,8 @@
-#	$NetBSD: Makefile,v 1.31 2012/09/27 18:28:56 alnsn Exp $
+#	$NetBSD: Makefile,v 1.32 2012/10/27 22:36:14 alnsn Exp $
 
 INCSDIR= /usr/include/net
 
-INCS=	bpf.h bpfdesc.h dlt.h ethertypes.h if.h if_arc.h if_arp.h \
+INCS=	bpf.h bpfjit.h bpfdesc.h dlt.h ethertypes.h if.h if_arc.h if_arp.h \
 	if_atm.h if_bridgevar.h if_dl.h if_ether.h if_etherip.h if_fddi.h if_gif.h \
 	if_gre.h if_hippi.h if_ieee1394.h if_llc.h if_media.h if_mpls.h \
 	if_pflog.h if_ppp.h if_pppoe.h if_sppp.h if_srt.h if_stf.h \

Index: src/sys/net/bpf.c
diff -u src/sys/net/bpf.c:1.172 

CVS commit: src/usr.bin/fstat

2012-10-27 Thread Alexander Nasonov
Module Name:src
Committed By:   alnsn
Date:   Sat Oct 27 22:38:07 UTC 2012

Modified Files:
src/usr.bin/fstat: misc.c

Log Message:
Report jit'ed bpf fildes in fstat.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/usr.bin/fstat/misc.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.bin/fstat/misc.c
diff -u src/usr.bin/fstat/misc.c:1.8 src/usr.bin/fstat/misc.c:1.9
--- src/usr.bin/fstat/misc.c:1.8	Sat Sep 10 18:34:40 2011
+++ src/usr.bin/fstat/misc.c	Sat Oct 27 22:38:07 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: misc.c,v 1.8 2011/09/10 18:34:40 christos Exp $	*/
+/*	$NetBSD: misc.c,v 1.9 2012/10/27 22:38:07 alnsn Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include sys/cdefs.h
-__RCSID($NetBSD: misc.c,v 1.8 2011/09/10 18:34:40 christos Exp $);
+__RCSID($NetBSD: misc.c,v 1.9 2012/10/27 22:38:07 alnsn Exp $);
 
 #define _KMEMUSER
 #include stdbool.h
@@ -118,6 +118,8 @@ p_bpf(struct file *f)
 		(void)printf(, immed);
 	if (bpf.bd_seesent)
 		(void)printf(, seesent);
+	if (bpf.bd_jitcode != NULL)
+		(void)printf(, jit);
 	if (bpf.bd_async)
 		(void)printf(, asyncgrp=%lu, (unsigned long)bpf.bd_pgid);
 	if (bpf.bd_state == BPF_IDLE)



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

2012-10-27 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Sun Oct 28 00:25:59 UTC 2012

Modified Files:
src/sys/arch/sun3/include: types.h

Log Message:
no need to define __BROKEN_CONFIG_UNIT_USAGE, the code that this enabled
has been gone for years.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/sun3/include/types.h

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

Modified files:

Index: src/sys/arch/sun3/include/types.h
diff -u src/sys/arch/sun3/include/types.h:1.18 src/sys/arch/sun3/include/types.h:1.19
--- src/sys/arch/sun3/include/types.h:1.18	Sun Jun 12 03:35:48 2011
+++ src/sys/arch/sun3/include/types.h	Sun Oct 28 00:25:59 2012
@@ -1,8 +1,7 @@
-/*	$NetBSD: types.h,v 1.18 2011/06/12 03:35:48 rmind Exp $	*/
+/*	$NetBSD: types.h,v 1.19 2012/10/28 00:25:59 chs Exp $	*/
 
 #include m68k/types.h
 
-#define	__BROKEN_CONFIG_UNIT_USAGE
 #define	__HAVE_MM_MD_KERNACC
 #define	__HAVE_MM_MD_DIRECT_MAPPED_PHYS
 #define	__HAVE_MM_MD_MMAP



CVS commit: src/usr.bin/mixerctl

2012-10-27 Thread Tetsuya Isaki
Module Name:src
Committed By:   isaki
Date:   Sun Oct 28 01:51:20 UTC 2012

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

Log Message:
Avoid SEGV even if audio device has no mixer features.
Fix PR/47003


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/usr.bin/mixerctl/mixerctl.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.bin/mixerctl/mixerctl.c
diff -u src/usr.bin/mixerctl/mixerctl.c:1.24 src/usr.bin/mixerctl/mixerctl.c:1.25
--- src/usr.bin/mixerctl/mixerctl.c:1.24	Tue Jul 14 21:02:24 2009
+++ src/usr.bin/mixerctl/mixerctl.c	Sun Oct 28 01:51:20 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: mixerctl.c,v 1.24 2009/07/14 21:02:24 apb Exp $	*/
+/*	$NetBSD: mixerctl.c,v 1.25 2012/10/28 01:51:20 isaki Exp $	*/
 
 /*
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 #include sys/cdefs.h
 
 #ifndef lint
-__RCSID($NetBSD: mixerctl.c,v 1.24 2009/07/14 21:02:24 apb Exp $);
+__RCSID($NetBSD: mixerctl.c,v 1.25 2012/10/28 01:51:20 isaki Exp $);
 #endif
 
 #include stdio.h
@@ -429,7 +429,7 @@ main(int argc, char **argv)
 	}
 
 	if (argc == 0  aflag  !wflag) {
-		for(i = 0; fields[i].name; i++) {
+		for(i = 0; i  j; i++) {
 			prfield(fields[i], sep, vflag);
 			fprintf(out, \n);
 		}



CVS commit: src/usr.bin/mixerctl

2012-10-27 Thread Tetsuya Isaki
Module Name:src
Committed By:   isaki
Date:   Sun Oct 28 02:01:15 UTC 2012

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

Log Message:
Fix indent and style. no functional changes.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/usr.bin/mixerctl/mixerctl.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.bin/mixerctl/mixerctl.c
diff -u src/usr.bin/mixerctl/mixerctl.c:1.25 src/usr.bin/mixerctl/mixerctl.c:1.26
--- src/usr.bin/mixerctl/mixerctl.c:1.25	Sun Oct 28 01:51:20 2012
+++ src/usr.bin/mixerctl/mixerctl.c	Sun Oct 28 02:01:15 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: mixerctl.c,v 1.25 2012/10/28 01:51:20 isaki Exp $	*/
+/*	$NetBSD: mixerctl.c,v 1.26 2012/10/28 02:01:15 isaki Exp $	*/
 
 /*
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 #include sys/cdefs.h
 
 #ifndef lint
-__RCSID($NetBSD: mixerctl.c,v 1.25 2012/10/28 01:51:20 isaki Exp $);
+__RCSID($NetBSD: mixerctl.c,v 1.26 2012/10/28 02:01:15 isaki Exp $);
 #endif
 
 #include stdio.h
@@ -76,7 +76,7 @@ static struct field *
 findfield(char *name)
 {
 	int i;
-	for(i = 0; fields[i].name; i++)
+	for (i = 0; fields[i].name; i++)
 		if (strcmp(fields[i].name, name) == 0)
 			return fields[i];
 	return 0;
@@ -93,26 +93,26 @@ prfield(struct field *p, const char *sep
 	m = p-valp;
 	switch(m-type) {
 	case AUDIO_MIXER_ENUM:
-		for(i = 0; i  p-infp-un.e.num_mem; i++)
+		for (i = 0; i  p-infp-un.e.num_mem; i++)
 			if (p-infp-un.e.member[i].ord == m-un.ord)
 fprintf(out, %s,
-	p-infp-un.e.member[i].label.name);
+p-infp-un.e.member[i].label.name);
 		if (prvalset) {
 			fprintf(out,   [ );
-			for(i = 0; i  p-infp-un.e.num_mem; i++)
+			for (i = 0; i  p-infp-un.e.num_mem; i++)
 fprintf(out, %s ,
 p-infp-un.e.member[i].label.name);
 			fprintf(out, ]);
 		}
 		break;
 	case AUDIO_MIXER_SET:
-		for(n = i = 0; i  p-infp-un.s.num_mem; i++)
+		for (n = i = 0; i  p-infp-un.s.num_mem; i++)
 			if (m-un.mask  p-infp-un.s.member[i].mask)
 fprintf(out, %s%s, n++ ? , : ,
-	p-infp-un.s.member[i].label.name);
+p-infp-un.s.member[i].label.name);
 		if (prvalset) {
 			fprintf(out,   { );
-			for(i = 0; i  p-infp-un.s.num_mem; i++)
+			for (i = 0; i  p-infp-un.s.num_mem; i++)
 fprintf(out, %s ,
 p-infp-un.s.member[i].label.name);
 			fprintf(out, });
@@ -123,7 +123,7 @@ prfield(struct field *p, const char *sep
 			fprintf(out, %d, m-un.value.level[0]);
 		else
 			fprintf(out, %d,%d, m-un.value.level[0], 
-			   m-un.value.level[1]);
+			m-un.value.level[1]);
 		if (prvalset) {
 			fprintf(out,  %s, p-infp-un.v.units.name);
 			if (p-infp-un.v.delta)
@@ -147,7 +147,7 @@ rdfield(struct field *p, char *q)
 	m = p-valp;
 	switch(m-type) {
 	case AUDIO_MIXER_ENUM:
-		for(i = 0; i  p-infp-un.e.num_mem; i++)
+		for (i = 0; i  p-infp-un.e.num_mem; i++)
 			if (strcmp(p-infp-un.e.member[i].label.name, q) == 0)
 break;
 		if (i  p-infp-un.e.num_mem)
@@ -159,13 +159,13 @@ rdfield(struct field *p, char *q)
 		break;
 	case AUDIO_MIXER_SET:
 		mask = 0;
-		for(v = 0; q  *q; q = s) {
+		for (v = 0; q  *q; q = s) {
 			s = strchr(q, ',');
 			if (s)
 *s++ = 0;
-			for(i = 0; i  p-infp-un.s.num_mem; i++)
+			for (i = 0; i  p-infp-un.s.num_mem; i++)
 if (strcmp(p-infp-un.s.member[i].label.name,
-	   q) == 0)
+q) == 0)
 	break;
 			if (i  p-infp-un.s.num_mem) {
 mask |= p-infp-un.s.member[i].mask;
@@ -214,7 +214,7 @@ incfield(struct field *p, int inc)
 	case AUDIO_MIXER_ENUM:
 		m-un.ord += inc;
 		if (m-un.ord  0)
-			m-un.ord = p-infp-un.e.num_mem-1;
+			m-un.ord = p-infp-un.e.num_mem - 1;
 		if (m-un.ord = p-infp-un.e.num_mem)
 			m-un.ord = 0;
 		break;
@@ -276,7 +276,7 @@ wrarg(int fd, char *arg, const char *sep
 			incdec *= -1;
 		*(q-1) = 0;
 		q = NULL;
-	} else		
+	} else
 		*q++ = 0;
 
 	p = findfield(arg);
@@ -353,26 +353,26 @@ main(int argc, char **argv)
 		case '?':
 		default:
 		usage:
-		fprintf(out, %s [-d file] [-v] [-n] name ...\n, prog);
-		fprintf(out, %s [-d file] [-v] [-n] -w name=value ...\n,prog);
-		fprintf(out, %s [-d file] [-v] [-n] -a\n, prog);
-		exit(0);
+			fprintf(out, %s [-d file] [-v] [-n] name ...\n, prog);
+			fprintf(out, %s [-d file] [-v] [-n] -w name=value ...\n,prog);
+			fprintf(out, %s [-d file] [-v] [-n] -a\n, prog);
+			exit(0);
 		}
 	}
 	argc -= optind;
 	argv += optind;
-
+
 	fd = open(file, O_RDWR);
-/* Try with mixer0. */
-if (fd  0  strcmp(file, _PATH_MIXER) == 0) {
-	file = _PATH_MIXER0;
-fd = open(file, O_RDWR);
-}
+	/* Try with mixer0. */
+	if (fd  0  strcmp(file, _PATH_MIXER) == 0) {
+		file = _PATH_MIXER0;
+		fd = open(file, O_RDWR);
+	}
 
 	if (fd  0)
 		err(1, %s, file);
 
-	for(ndev = 0; ; ndev++) {
+	for (ndev = 0; ; ndev++) {
 		dinfo.index = ndev;
 		if (ioctl(fd, AUDIO_MIXER_DEVINFO, dinfo)  0)
 			break;
@@ -382,18 +382,18 @@ 

CVS commit: src/external/lgpl3/gmp/dist/mpn/generic

2012-10-27 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Sat Oct 27 06:55:55 UTC 2012

Modified Files:
src/external/lgpl3/gmp/dist/mpn/generic: get_d.c

Log Message:
Appease shift vs substract warning for clang.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/lgpl3/gmp/dist/mpn/generic/get_d.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

2012-10-27 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Sat Oct 27 07:19:45 UTC 2012

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

Log Message:
Fix uninitialised variable warning from clang by removing the variable
used in first place.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/x86/x86/powernow.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/amiga

2012-10-27 Thread Frank Wille
Module Name:src
Committed By:   phx
Date:   Sat Oct 27 11:54:21 UTC 2012

Modified Files:
src/sys/arch/amiga/clockport: files.clockport
src/sys/arch/amiga/conf: files.amiga

Log Message:
Fixed dependencies for some new PCI and clockport devices, to make a
kernel compile without them.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/amiga/clockport/files.clockport
cvs rdiff -u -r1.162 -r1.163 src/sys/arch/amiga/conf/files.amiga

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



CVS commit: src/share/zoneinfo

2012-10-27 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Sat Oct 27 16:43:10 UTC 2012

Update of /cvsroot/src/share/zoneinfo
In directory ivanova.netbsd.org:/tmp/cvs-serv24175

Log Message:
Import tzdata2012g from ftp://ftp.iana.org/tz/releases/tzdata2012h.tar.gz

Changes from tzdata2012g to tzdata2012h:

  Bahia no longer has DST.  (Thanks to Kelley Cook.)

  Tocantins has DST.  (Thanks to Rodrigo Severo.)

  Israel has new DST rules next year.  (Thanks to Ephraim Silverberg.)

  Jordan stays on DST this winter.  (Thanks to Steffen Thorsen.)

  Web page updates.

Status:

Vendor Tag: ADO
Release Tags:   TZDATA2012H

U src/share/zoneinfo/antarctica
C src/share/zoneinfo/Makefile
U src/share/zoneinfo/africa
U src/share/zoneinfo/australasia
U src/share/zoneinfo/asia
U src/share/zoneinfo/northamerica
U src/share/zoneinfo/europe
U src/share/zoneinfo/yearistype.sh
U src/share/zoneinfo/southamerica
U src/share/zoneinfo/pacificnew
U src/share/zoneinfo/etcetera
U src/share/zoneinfo/backward
U src/share/zoneinfo/systemv
U src/share/zoneinfo/factory
U src/share/zoneinfo/solar87
U src/share/zoneinfo/solar88
U src/share/zoneinfo/solar89
U src/share/zoneinfo/iso3166.tab
U src/share/zoneinfo/zone.tab
U src/share/zoneinfo/leapseconds

1 conflicts created by this import.
Use the following command to help the merge:

cvs checkout -jADO:yesterday -jADO src/share/zoneinfo



CVS commit: src/doc

2012-10-27 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Sat Oct 27 16:48:58 UTC 2012

Modified Files:
src/doc: 3RDPARTY

Log Message:
tzcode202h/tzdata2012h have been released.  We have updated to tzdata2012h.


To generate a diff of this commit:
cvs rdiff -u -r1.976 -r1.977 src/doc/3RDPARTY

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



CVS commit: src/doc

2012-10-27 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Sat Oct 27 16:50:14 UTC 2012

Modified Files:
src/doc: CHANGES

Log Message:
zoneinfo: Import tzdata2012h. [apb 20121027]
Also change zoneinfo: to libc: in an entry for tzcode.


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

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

2012-10-27 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Sat Oct 27 17:24:37 UTC 2012

Modified Files:
src/sys/arch/arm/broadcom: bcm53xx_rng.c

Log Message:
Reenable NO_ESTIMATE now that rnd has been fixed.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/arm/broadcom/bcm53xx_rng.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/ia64/ia64

2012-10-27 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Sat Oct 27 17:29:03 UTC 2012

Modified Files:
src/sys/arch/ia64/ia64: sapic.c

Log Message:
malloc - kmem_zalloc.  this also fixes a build error.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/ia64/ia64/sapic.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

2012-10-27 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Sat Oct 27 17:34:07 UTC 2012

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

Log Message:
Use kmem_intr_alloc/kmem_intr_free


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/kern/subr_cprng.c

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



CVS commit: src/external/bsd/ipf/dist/tools

2012-10-27 Thread Takeshi Nakayama
Module Name:src
Committed By:   nakayama
Date:   Sat Oct 27 20:07:12 UTC 2012

Modified Files:
src/external/bsd/ipf/dist/tools: ipmon.c

Log Message:
Remove ipl overwrite.  Which was missed in previous.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/bsd/ipf/dist/tools/ipmon.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/amiga/dev

2012-10-27 Thread Frank Wille
Module Name:src
Committed By:   phx
Date:   Sat Oct 27 21:13:03 UTC 2012

Modified Files:
src/sys/arch/amiga/dev: if_ed_zbus.c

Log Message:
Fixed receiving of odd-length packets. Driver works now perfectly.
Thanks to Harald Meinzer for providing me with a Hydra for a few days.


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

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



CVS commit: src

2012-10-27 Thread Alexander Nasonov
Module Name:src
Committed By:   alnsn
Date:   Sat Oct 27 22:36:14 UTC 2012

Modified Files:
src/distrib/sets/lists/comp: mi
src/distrib/sets/lists/modules: md.amd64
src/sys/conf: files
src/sys/modules: Makefile
src/sys/net: Makefile bpf.c bpf_filter.c bpfdesc.h
Added Files:
src/sys/modules/bpfjit: Makefile
src/sys/net: bpfjit.c bpfjit.h

Log Message:
Add bpfjit and enable it for amd64.


To generate a diff of this commit:
cvs rdiff -u -r1.1783 -r1.1784 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.35 -r1.36 src/distrib/sets/lists/modules/md.amd64
cvs rdiff -u -r1.1059 -r1.1060 src/sys/conf/files
cvs rdiff -u -r1.112 -r1.113 src/sys/modules/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/modules/bpfjit/Makefile
cvs rdiff -u -r1.31 -r1.32 src/sys/net/Makefile
cvs rdiff -u -r1.172 -r1.173 src/sys/net/bpf.c
cvs rdiff -u -r1.54 -r1.55 src/sys/net/bpf_filter.c
cvs rdiff -u -r1.35 -r1.36 src/sys/net/bpfdesc.h
cvs rdiff -u -r0 -r1.1 src/sys/net/bpfjit.c src/sys/net/bpfjit.h

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



CVS commit: src/usr.bin/fstat

2012-10-27 Thread Alexander Nasonov
Module Name:src
Committed By:   alnsn
Date:   Sat Oct 27 22:38:07 UTC 2012

Modified Files:
src/usr.bin/fstat: misc.c

Log Message:
Report jit'ed bpf fildes in fstat.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/usr.bin/fstat/misc.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/sun3/include

2012-10-27 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Sun Oct 28 00:25:59 UTC 2012

Modified Files:
src/sys/arch/sun3/include: types.h

Log Message:
no need to define __BROKEN_CONFIG_UNIT_USAGE, the code that this enabled
has been gone for years.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/sun3/include/types.h

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



CVS commit: src/usr.bin/mixerctl

2012-10-27 Thread Tetsuya Isaki
Module Name:src
Committed By:   isaki
Date:   Sun Oct 28 01:51:20 UTC 2012

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

Log Message:
Avoid SEGV even if audio device has no mixer features.
Fix PR/47003


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

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



CVS commit: src/usr.bin/mixerctl

2012-10-27 Thread Tetsuya Isaki
Module Name:src
Committed By:   isaki
Date:   Sun Oct 28 02:01:15 UTC 2012

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

Log Message:
Fix indent and style. no functional changes.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/usr.bin/mixerctl/mixerctl.c

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