CVS commit: [netbsd-5-1] src/sys/arch/xen/xen

2013-12-13 Thread Stephen Borrill
Module Name:src
Committed By:   sborrill
Date:   Fri Dec 13 08:49:41 UTC 2013

Modified Files:
src/sys/arch/xen/xen [netbsd-5-1]: evtchn.c

Log Message:
Pull up the following revisions(s) (requested by bouyer in ticket #1890):
sys/arch/xen/xen/evtchn.c:  revision 1.70

Remove the evtchn_do_event: handler %p didn't lower ipl %d %d\n printf
as analysis shows it actually isn't a bug in the handler, but related to
spin mutexes. Fixes port-xen/46313


To generate a diff of this commit:
cvs rdiff -u -r1.39.4.2 -r1.39.4.2.6.1 src/sys/arch/xen/xen/evtchn.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/xen/xen/evtchn.c
diff -u src/sys/arch/xen/xen/evtchn.c:1.39.4.2 src/sys/arch/xen/xen/evtchn.c:1.39.4.2.6.1
--- src/sys/arch/xen/xen/evtchn.c:1.39.4.2	Fri Nov 14 02:59:39 2008
+++ src/sys/arch/xen/xen/evtchn.c	Fri Dec 13 08:49:41 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: evtchn.c,v 1.39.4.2 2008/11/14 02:59:39 snj Exp $	*/
+/*	$NetBSD: evtchn.c,v 1.39.4.2.6.1 2013/12/13 08:49:41 sborrill Exp $	*/
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -64,7 +64,7 @@
 
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: evtchn.c,v 1.39.4.2 2008/11/14 02:59:39 snj Exp $);
+__KERNEL_RCSID(0, $NetBSD: evtchn.c,v 1.39.4.2.6.1 2013/12/13 08:49:41 sborrill Exp $);
 
 #include opt_xen.h
 #include isa.h
@@ -301,13 +301,6 @@ splx:
 	ih_fun = (void *)ih-ih_fun;
 	ih_fun(ih-ih_arg, regs);
 	cli();
-	if (ci-ci_ilevel != i) {
-		printf(evtchn_do_event: 
-		handler %p didn't lower 
-		ipl %d %d\n,
-		ih_fun, ci-ci_ilevel, i);
-		ci-ci_ilevel = i;
-	}
 }
 hypervisor_enable_ipl(i);
 /* more pending IPLs may have been registered */



CVS commit: [netbsd-5-1] src/doc

2013-12-13 Thread Stephen Borrill
Module Name:src
Committed By:   sborrill
Date:   Fri Dec 13 08:50:14 UTC 2013

Modified Files:
src/doc [netbsd-5-1]: CHANGES-5.1.4

Log Message:
Ticket #1890


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

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-5.1.4
diff -u src/doc/CHANGES-5.1.4:1.1.2.2 src/doc/CHANGES-5.1.4:1.1.2.3
--- src/doc/CHANGES-5.1.4:1.1.2.2	Sun Oct 13 07:26:19 2013
+++ src/doc/CHANGES-5.1.4	Fri Dec 13 08:50:14 2013
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-5.1.4,v 1.1.2.2 2013/10/13 07:26:19 jdc Exp $
+# $NetBSD: CHANGES-5.1.4,v 1.1.2.3 2013/12/13 08:50:14 sborrill Exp $
 
 A complete list of changes from the NetBSD 5.1.2 release to the NetBSD 5.1.3
 release:
@@ -21,3 +21,10 @@ xsrc/xfree/xc/programs/Xserver/dix/dixfo
 	references *c.
 	[spz, ticket #966]
 
+sys/arch/xen/xen/evtchn.c			1.70
+
+	Remove the evtchn_do_event: handler %p didn't lower ipl %d %d\n
+	printf as analysis shows it actually isn't a bug in the handler,
+	but related to spin mutexes. Fixes port-xen/46313
+	[bouyer, ticket #1890]
+



CVS commit: [netbsd-5-2] src/doc

2013-12-13 Thread Stephen Borrill
Module Name:src
Committed By:   sborrill
Date:   Fri Dec 13 08:53:11 UTC 2013

Modified Files:
src/doc [netbsd-5-2]: CHANGES-5.2.2

Log Message:
Ticket #1890


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

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

Modified files:

Index: src/doc/CHANGES-5.2.2
diff -u src/doc/CHANGES-5.2.2:1.1.2.2 src/doc/CHANGES-5.2.2:1.1.2.3
--- src/doc/CHANGES-5.2.2:1.1.2.2	Sun Oct 13 07:26:23 2013
+++ src/doc/CHANGES-5.2.2	Fri Dec 13 08:53:11 2013
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-5.2.2,v 1.1.2.2 2013/10/13 07:26:23 jdc Exp $
+# $NetBSD: CHANGES-5.2.2,v 1.1.2.3 2013/12/13 08:53:11 sborrill Exp $
 
 A complete list of changes from the NetBSD 5.2 release to the NetBSD 5.2.1
 release:
@@ -21,3 +21,10 @@ xsrc/xfree/xc/programs/Xserver/dix/dixfo
 	references *c.
 	[spz, ticket #966]
 
+sys/arch/xen/xen/evtchn.c			1.70
+
+	Remove the evtchn_do_event: handler %p didn't lower ipl %d %d\n
+	printf as analysis shows it actually isn't a bug in the handler,
+	but related to spin mutexes. Fixes port-xen/46313
+	[bouyer, ticket #1890]
+



CVS commit: [netbsd-5-2] src/sys/arch/xen/xen

2013-12-13 Thread Stephen Borrill
Module Name:src
Committed By:   sborrill
Date:   Fri Dec 13 08:52:52 UTC 2013

Modified Files:
src/sys/arch/xen/xen [netbsd-5-2]: evtchn.c

Log Message:
Pull up the following revisions(s) (requested by bouyer in ticket #1890):
sys/arch/xen/xen/evtchn.c:  revision 1.70

Remove the evtchn_do_event: handler %p didn't lower ipl %d %d\n printf
as analysis shows it actually isn't a bug in the handler, but related to
spin mutexes. Fixes port-xen/46313


To generate a diff of this commit:
cvs rdiff -u -r1.39.4.2 -r1.39.4.2.10.1 src/sys/arch/xen/xen/evtchn.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/xen/xen/evtchn.c
diff -u src/sys/arch/xen/xen/evtchn.c:1.39.4.2 src/sys/arch/xen/xen/evtchn.c:1.39.4.2.10.1
--- src/sys/arch/xen/xen/evtchn.c:1.39.4.2	Fri Nov 14 02:59:39 2008
+++ src/sys/arch/xen/xen/evtchn.c	Fri Dec 13 08:52:52 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: evtchn.c,v 1.39.4.2 2008/11/14 02:59:39 snj Exp $	*/
+/*	$NetBSD: evtchn.c,v 1.39.4.2.10.1 2013/12/13 08:52:52 sborrill Exp $	*/
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -64,7 +64,7 @@
 
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: evtchn.c,v 1.39.4.2 2008/11/14 02:59:39 snj Exp $);
+__KERNEL_RCSID(0, $NetBSD: evtchn.c,v 1.39.4.2.10.1 2013/12/13 08:52:52 sborrill Exp $);
 
 #include opt_xen.h
 #include isa.h
@@ -301,13 +301,6 @@ splx:
 	ih_fun = (void *)ih-ih_fun;
 	ih_fun(ih-ih_arg, regs);
 	cli();
-	if (ci-ci_ilevel != i) {
-		printf(evtchn_do_event: 
-		handler %p didn't lower 
-		ipl %d %d\n,
-		ih_fun, ci-ci_ilevel, i);
-		ci-ci_ilevel = i;
-	}
 }
 hypervisor_enable_ipl(i);
 /* more pending IPLs may have been registered */



CVS commit: src/external/gpl3/gcc

2013-12-13 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Dec 13 10:01:49 UTC 2013

Modified Files:
src/external/gpl3/gcc: gcc2netbsd

Log Message:
update to reality for gcc 4.8.2.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/gcc2netbsd

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

Modified files:

Index: src/external/gpl3/gcc/gcc2netbsd
diff -u src/external/gpl3/gcc/gcc2netbsd:1.2 src/external/gpl3/gcc/gcc2netbsd:1.3
--- src/external/gpl3/gcc/gcc2netbsd:1.2	Sat Oct  5 18:38:03 2013
+++ src/external/gpl3/gcc/gcc2netbsd	Fri Dec 13 10:01:49 2013
@@ -1,6 +1,6 @@
 #! /bin/sh
 #
-#	$NetBSD: gcc2netbsd,v 1.2 2013/10/05 18:38:03 christos Exp $
+#	$NetBSD: gcc2netbsd,v 1.3 2013/12/13 10:01:49 mrg Exp $
 #
 # Copyright (c) 2011 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -27,7 +27,7 @@
 # POSSIBILITY OF SUCH DAMAGE.
 #
 # gcc2netbsd:  convert a file source tree into a
-# format suitable for import.  Works on current dir.
+# format suitable for import.  Works on first arg dir.
 # You can run this only once if you want it to work.
 #
 # based on file 2netbsd
@@ -45,18 +45,24 @@ FILE=$1
 cleantags $FILE
 
 RM=
-gcc/java
+boehm-gc
 gcc/ada
 gcc/fortran
-gcc/testsuite/ada
-gcc/testsuite/gfortran.dg
-gcc/testsuite/gfortran.fortran-torture
-libffi
-zlib
-boehm-gc
-libjava
+gcc/go
+gcc/java
+gcc/testsuite
 libada
+libatomic
+libffi
 libgfortran
+libgo
+libgomp/testsuite
+libiberty/testsuite
+libjava
+libmudflap/testsuite
+libquadmath
+libstdc++-v3/testsuite
+zlib
 
 
 find $FILE -name .cvsignore -exec rm -f {} +



CVS commit: src/distrib/pmax/cdroms/installcd

2013-12-13 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Dec 13 10:27:56 UTC 2013

Modified Files:
src/distrib/pmax/cdroms/installcd: Makefile

Log Message:
it's called netbsd-INSTALL64.gz for pmax64.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/distrib/pmax/cdroms/installcd/Makefile

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

Modified files:

Index: src/distrib/pmax/cdroms/installcd/Makefile
diff -u src/distrib/pmax/cdroms/installcd/Makefile:1.2 src/distrib/pmax/cdroms/installcd/Makefile:1.3
--- src/distrib/pmax/cdroms/installcd/Makefile:1.2	Sun Jan 15 22:34:33 2012
+++ src/distrib/pmax/cdroms/installcd/Makefile	Fri Dec 13 10:27:56 2013
@@ -1,7 +1,11 @@
-#	$NetBSD: Makefile,v 1.2 2012/01/15 22:34:33 jmcneill Exp $
+#	$NetBSD: Makefile,v 1.3 2013/12/13 10:27:56 mrg Exp $
 CDBASE=		pmaxcd			# gives ${CDBASE}.iso
 CDRELEASE=	true			# include $RELEASEDIR/$MACHINE
+.if ${MACHINE_ARCH} == mipsel
 CDKERNELS=	netbsd-INSTALL.gz netbsd
+.else
+CDKERNELS=	netbsd-INSTALL64.gz netbsd
+.endif
 CDINSTKERNEL=	../../instkernel
 
 #make the CD bootable



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

2013-12-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Dec 13 10:31:05 UTC 2013

Modified Files:
src/sys/arch/sparc/sparc: pmap.c

Log Message:
use CPU_INFO_ITERATOR instead of int.


To generate a diff of this commit:
cvs rdiff -u -r1.355 -r1.356 src/sys/arch/sparc/sparc/pmap.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/sparc/sparc/pmap.c
diff -u src/sys/arch/sparc/sparc/pmap.c:1.355 src/sys/arch/sparc/sparc/pmap.c:1.356
--- src/sys/arch/sparc/sparc/pmap.c:1.355	Tue Dec 10 12:24:47 2013
+++ src/sys/arch/sparc/sparc/pmap.c	Fri Dec 13 05:31:05 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap.c,v 1.355 2013/12/10 17:24:47 macallan Exp $ */
+/*	$NetBSD: pmap.c,v 1.356 2013/12/13 10:31:05 christos Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -56,7 +56,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: pmap.c,v 1.355 2013/12/10 17:24:47 macallan Exp $);
+__KERNEL_RCSID(0, $NetBSD: pmap.c,v 1.356 2013/12/13 10:31:05 christos Exp $);
 
 #include opt_ddb.h
 #include opt_kgdb.h
@@ -2321,7 +2321,7 @@ ctx_free(struct pmap *pm)
 
 #if defined(SUN4M) || defined(SUN4D)
 	if (CPU_HAS_SRMMU) {
-		int i;
+		CPU_INFO_ITERATOR i;
 
 		__USE(i);
 



CVS commit: [netbsd-5] src/sys/kern

2013-12-13 Thread Stephen Borrill
Module Name:src
Committed By:   sborrill
Date:   Fri Dec 13 12:22:39 UTC 2013

Modified Files:
src/sys/kern [netbsd-5]: uipc_syscalls.c

Log Message:
Pull up the following revisions(s) (requested by spz in ticket #1891):
sys/kern/uipc_syscalls.c:   revision 1.163

If the unix socket is closed before accept, the mbuf returned by
m_get() will have an uninitialized length and contain junk from a
previous call. Initialize m_len to be 0 to handle this case.
Fixes PR/47591


To generate a diff of this commit:
cvs rdiff -u -r1.134.4.3 -r1.134.4.4 src/sys/kern/uipc_syscalls.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/uipc_syscalls.c
diff -u src/sys/kern/uipc_syscalls.c:1.134.4.3 src/sys/kern/uipc_syscalls.c:1.134.4.4
--- src/sys/kern/uipc_syscalls.c:1.134.4.3	Sun Mar 28 15:32:00 2010
+++ src/sys/kern/uipc_syscalls.c	Fri Dec 13 12:22:39 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: uipc_syscalls.c,v 1.134.4.3 2010/03/28 15:32:00 snj Exp $	*/
+/*	$NetBSD: uipc_syscalls.c,v 1.134.4.4 2013/12/13 12:22:39 sborrill Exp $	*/
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: uipc_syscalls.c,v 1.134.4.3 2010/03/28 15:32:00 snj Exp $);
+__KERNEL_RCSID(0, $NetBSD: uipc_syscalls.c,v 1.134.4.4 2013/12/13 12:22:39 sborrill Exp $);
 
 #include opt_pipe.h
 
@@ -182,6 +182,7 @@ do_sys_accept(struct lwp *l, int sock, s
 		return (error);
 	}
 	nam = m_get(M_WAIT, MT_SONAME);
+	nam-m_len = 0;
 	*new_sock = fd;
 	so = fp-f_data;
 	solock(so);



CVS commit: src/sys/dev/ic

2013-12-13 Thread Jonathan A. Kollasch
Module Name:src
Committed By:   jakllsch
Date:   Fri Dec 13 20:52:48 UTC 2013

Modified Files:
src/sys/dev/ic: rtl81x9reg.h

Log Message:
Put previous (RTK_HWREV_8168F) in numeric sort order like its neighbors.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/sys/dev/ic/rtl81x9reg.h

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

Modified files:

Index: src/sys/dev/ic/rtl81x9reg.h
diff -u src/sys/dev/ic/rtl81x9reg.h:1.44 src/sys/dev/ic/rtl81x9reg.h:1.45
--- src/sys/dev/ic/rtl81x9reg.h:1.44	Sat Apr  6 01:53:14 2013
+++ src/sys/dev/ic/rtl81x9reg.h	Fri Dec 13 20:52:48 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: rtl81x9reg.h,v 1.44 2013/04/06 01:53:14 khorben Exp $	*/
+/*	$NetBSD: rtl81x9reg.h,v 1.45 2013/12/13 20:52:48 jakllsch Exp $	*/
 
 /*
  * Copyright (c) 1997, 1998
@@ -164,7 +164,6 @@
 #define RTK_HWREV_8168DP	0x2880
 #define RTK_HWREV_8168E		0x2C00
 #define RTK_HWREV_8168E_VL	0x2C80
-#define RTK_HWREV_8168F		0x4800
 #define RTK_HWREV_8168_SPIN1	0x3000
 #define RTK_HWREV_8100E		0x3080
 #define RTK_HWREV_8101E		0x3400
@@ -175,6 +174,7 @@
 #define RTK_HWREV_8168C		0x3C00
 #define RTK_HWREV_8168C_SPIN2	0x3C40
 #define RTK_HWREV_8168CP	0x3C80
+#define RTK_HWREV_8168F		0x4800
 #define RTK_HWREV_8139		0x6000
 #define RTK_HWREV_8139A		0x7000
 #define RTK_HWREV_8139AG	0x7080



CVS commit: src/sys/arch/sparc64/sparc64

2013-12-13 Thread Takeshi Nakayama
Module Name:src
Committed By:   nakayama
Date:   Sat Dec 14 05:28:47 UTC 2013

Modified Files:
src/sys/arch/sparc64/sparc64: machdep.c

Log Message:
Remove duplicate/unused declarations.


To generate a diff of this commit:
cvs rdiff -u -r1.273 -r1.274 src/sys/arch/sparc64/sparc64/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/sparc64/sparc64/machdep.c
diff -u src/sys/arch/sparc64/sparc64/machdep.c:1.273 src/sys/arch/sparc64/sparc64/machdep.c:1.274
--- src/sys/arch/sparc64/sparc64/machdep.c:1.273	Thu Nov 14 12:11:13 2013
+++ src/sys/arch/sparc64/sparc64/machdep.c	Sat Dec 14 05:28:47 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.273 2013/11/14 12:11:13 martin Exp $ */
+/*	$NetBSD: machdep.c,v 1.274 2013/12/14 05:28:47 nakayama Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: machdep.c,v 1.273 2013/11/14 12:11:13 martin Exp $);
+__KERNEL_RCSID(0, $NetBSD: machdep.c,v 1.274 2013/12/14 05:28:47 nakayama Exp $);
 
 #include opt_ddb.h
 #include opt_multiprocessor.h
@@ -154,11 +154,8 @@ extern vaddr_t avail_end;
 #ifdef MODULAR
 vaddr_t module_start, module_end;
 static struct vm_map module_map_store;
-extern struct vm_map *module_map;
 #endif
 
-extern	void *msgbufaddr;
-
 /*
  * Maximum number of DMA segments we'll allow in dmamem_load()
  * routines.  Can be overridden in config files, etc.
@@ -592,8 +589,6 @@ cpu_reboot(int howto, char *user_boot_st
 	maybe_dump(howto);
 
 	if ((howto  RB_NOSYNC) == 0  !syncdone) {
-		extern struct lwp lwp0;
-
 		if (!syncdone) {
 		syncdone = true;
 		vfs_shutdown();



CVS commit: src/sys/kern

2013-12-13 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sat Dec 14 06:27:57 UTC 2013

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

Log Message:
Add SYS_compat_60__lwp_park to the list of syscalls that can be resolved by 
loading kernel modules.

This seems to address my PR kern/48027


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/kern/kern_syscall.c

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

Modified files:

Index: src/sys/kern/kern_syscall.c
diff -u src/sys/kern/kern_syscall.c:1.8 src/sys/kern/kern_syscall.c:1.9
--- src/sys/kern/kern_syscall.c:1.8	Mon Dec  9 16:49:43 2013
+++ src/sys/kern/kern_syscall.c	Sat Dec 14 06:27:57 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_syscall.c,v 1.8 2013/12/09 16:49:43 pooka Exp $	*/
+/*	$NetBSD: kern_syscall.c,v 1.9 2013/12/14 06:27:57 pgoyette Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: kern_syscall.c,v 1.8 2013/12/09 16:49:43 pooka Exp $);
+__KERNEL_RCSID(0, $NetBSD: kern_syscall.c,v 1.9 2013/12/14 06:27:57 pgoyette Exp $);
 
 #ifdef _KERNEL_OPT
 #include opt_modular.h
@@ -190,6 +190,7 @@ sys_nomodule(struct lwp *l, const void *
 	{ SYS_compat_50___ntp_gettime30, compat },
 	{ SYS_compat_50___fhstat40, compat },
 	{ SYS_compat_50_aio_suspend, compat },
+	{ SYS_compat_60__lwp_park, compat },
 	{ SYS__ksem_init, ksem },
 	{ SYS__ksem_open, ksem },
 	{ SYS__ksem_unlink, ksem },