Re: CVS commit: src/external/bsd/mdocml/dist

2011-10-29 Thread Joerg Sonnenberger
On Fri, Oct 28, 2011 at 10:00:20AM -0400, Christos Zoulas wrote:
 Module Name:  src
 Committed By: christos
 Date: Fri Oct 28 14:00:20 UTC 2011
 
 Modified Files:
   src/external/bsd/mdocml/dist: tbl_data.c
 
 Log Message:
 rename data() - parse_data() to appease the powerpc64 toolchain:
 {standard input}: Assembler messages:
 {standard input}:105: Error: symbol `.data' is already defined

That sounds like a bug in the PPC64 toolchain?

Joerg


Re: CVS commit: src/external/bsd/mdocml/dist

2011-10-29 Thread Christos Zoulas
In article 20111029080748.ga16...@britannica.bec.de,
Joerg Sonnenberger  jo...@britannica.bec.de wrote:
On Fri, Oct 28, 2011 at 10:00:20AM -0400, Christos Zoulas wrote:
 Module Name: src
 Committed By:christos
 Date:Fri Oct 28 14:00:20 UTC 2011
 
 Modified Files:
  src/external/bsd/mdocml/dist: tbl_data.c
 
 Log Message:
 rename data() - parse_data() to appease the powerpc64 toolchain:
 {standard input}: Assembler messages:
 {standard input}:105: Error: symbol `.data' is already defined

That sounds like a bug in the PPC64 toolchain?

Yes, I don't understand why such limitation should exist. I have noted
it in the HACKS file.

christos



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

2011-10-29 Thread John Nemeth
Module Name:src
Committed By:   jnemeth
Date:   Sat Oct 29 09:58:24 UTC 2011

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

Log Message:
Don't run off the beginning of an array from Maurizio Lombardi.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 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.3 src/sys/arch/x86/x86/powernow.c:1.4
--- src/sys/arch/x86/x86/powernow.c:1.3	Fri Mar  4 04:53:28 2011
+++ src/sys/arch/x86/x86/powernow.c	Sat Oct 29 09:58:23 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: powernow.c,v 1.3 2011/03/04 04:53:28 jruoho Exp $ */
+/*	$NetBSD: powernow.c,v 1.4 2011/10/29 09:58:23 jnemeth 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.3 2011/03/04 04:53:28 jruoho Exp $);
+__KERNEL_RCSID(0, $NetBSD: powernow.c,v 1.4 2011/10/29 09:58:23 jnemeth Exp $);
 
 #include sys/param.h
 #include sys/device.h
@@ -418,8 +418,8 @@ powernow_k7_init(device_t self)
 	for (i = 0; i  sc-sc_state-n_states; i++) {
 
 		/* Skip duplicated matches. */
-		if (sc-sc_state-state_table[i].freq ==
-		sc-sc_state-state_table[i - 1].freq)
+		if (i  0  (sc-sc_state-state_table[i].freq ==
+		sc-sc_state-state_table[i - 1].freq))
 			continue;
 
 		DPRINTF((%s: cstate-state_table.freq=%d\n,



CVS commit: src/lib/csu/powerpc64

2011-10-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Oct 29 10:28:37 UTC 2011

Modified Files:
src/lib/csu/powerpc64: Makefile

Log Message:
remove -I- from CPPFLAGS.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/csu/powerpc64/Makefile

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

Modified files:

Index: src/lib/csu/powerpc64/Makefile
diff -u src/lib/csu/powerpc64/Makefile:1.1 src/lib/csu/powerpc64/Makefile:1.2
--- src/lib/csu/powerpc64/Makefile:1.1	Fri Jun 30 22:49:50 2006
+++ src/lib/csu/powerpc64/Makefile	Sat Oct 29 10:28:37 2011
@@ -1,5 +1,5 @@
-#	$NetBSD: Makefile,v 1.1 2006/06/30 22:49:50 ross Exp $
+#	$NetBSD: Makefile,v 1.2 2011/10/29 10:28:37 mrg Exp $
 
-CPPFLAGS+= -I- -I${.CURDIR}
+CPPFLAGS+= -I${.CURDIR}
 
 .include ${.CURDIR}/../common_elf/Makefile.inc



CVS commit: src/external/gpl3/gcc/dist/gcc/config/rs6000

2011-10-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Oct 29 10:51:16 UTC 2011

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/rs6000: netbsd64.h

Log Message:
remove the duplicated -mcall-netbsd.
adjust the __PIC__ definition to match common.opt.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.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/gcc/dist/gcc/config/rs6000/netbsd64.h
diff -u src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h:1.3 src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h:1.4
--- src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h:1.3	Tue Jul 12 23:23:17 2011
+++ src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h	Sat Oct 29 10:51:16 2011
@@ -160,7 +160,6 @@ extern int dot_symbols;
 %{mcall-freebsd: -mbig} \
 %{mcall-i960-old: -mlittle} \
 %{mcall-linux: -mbig} \
-%{mcall-netbsd: -mbig} \
 %{mcall-gnu: -mbig} \
 %{mcall-netbsd: -mbig} \
 
@@ -287,7 +286,7 @@ extern int dot_symbols;
 	  builtin_define (__PPC64__);			\
 	  builtin_define (__powerpc__);		\
 	  builtin_define (__powerpc64__);		\
-	  builtin_define (__PIC__);			\
+	  builtin_define_with_int_value (__PIC__, 2);	\
 	  builtin_assert (cpu=powerpc64);		\
 	  builtin_assert (machine=powerpc64);		\
 	}		\



CVS commit: src/external/gpl3/binutils

2011-10-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Oct 29 11:05:46 UTC 2011

Modified Files:
src/external/gpl3/binutils/lib/libbfd/arch/powerpc64: bfd_stdint.h
config.h
src/external/gpl3/binutils/usr.bin/common/arch/powerpc64: config.h
defs.mk
src/external/gpl3/binutils/usr.bin/gas/arch/powerpc64: config.h defs.mk
src/external/gpl3/binutils/usr.bin/gprof/arch/powerpc64: defs.mk
gconfig.h
src/external/gpl3/binutils/usr.bin/ld/arch/powerpc64: config.h defs.mk

Log Message:
regenerate binutils for powerpc64.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/binutils/lib/libbfd/arch/powerpc64/bfd_stdint.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/binutils/lib/libbfd/arch/powerpc64/config.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/binutils/usr.bin/common/arch/powerpc64/config.h \
src/external/gpl3/binutils/usr.bin/common/arch/powerpc64/defs.mk
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/binutils/usr.bin/gas/arch/powerpc64/config.h \
src/external/gpl3/binutils/usr.bin/gas/arch/powerpc64/defs.mk
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/binutils/usr.bin/gprof/arch/powerpc64/defs.mk \
src/external/gpl3/binutils/usr.bin/gprof/arch/powerpc64/gconfig.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/binutils/usr.bin/ld/arch/powerpc64/config.h \
src/external/gpl3/binutils/usr.bin/ld/arch/powerpc64/defs.mk

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

Modified files:

Index: src/external/gpl3/binutils/lib/libbfd/arch/powerpc64/bfd_stdint.h
diff -u src/external/gpl3/binutils/lib/libbfd/arch/powerpc64/bfd_stdint.h:1.1 src/external/gpl3/binutils/lib/libbfd/arch/powerpc64/bfd_stdint.h:1.2
--- src/external/gpl3/binutils/lib/libbfd/arch/powerpc64/bfd_stdint.h:1.1	Tue Aug 18 20:22:01 2009
+++ src/external/gpl3/binutils/lib/libbfd/arch/powerpc64/bfd_stdint.h	Sat Oct 29 11:05:45 2011
@@ -1,8 +1,8 @@
 /* This file is automatically generated.  DO NOT EDIT! */
-/* Generated from: 	NetBSD: mknative-binutils,v 1.5 2006/02/02 20:06:04 skrll Exp  */
+/* Generated from: 	NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp  */
 /* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp  */
 
-/* generated for  powerpc64--netbsd-gcc (GCC) 4.1.3 20080704 (prerelease) (NetBSD nb2 20081120) */
+/* generated for  powerpc64--netbsd-gcc (NetBSD nb1 20110620) 4.5.3 */
 
 #ifndef GCC_GENERATED_STDINT_H
 #define GCC_GENERATED_STDINT_H 1

Index: src/external/gpl3/binutils/lib/libbfd/arch/powerpc64/config.h
diff -u src/external/gpl3/binutils/lib/libbfd/arch/powerpc64/config.h:1.2 src/external/gpl3/binutils/lib/libbfd/arch/powerpc64/config.h:1.3
--- src/external/gpl3/binutils/lib/libbfd/arch/powerpc64/config.h:1.2	Thu Oct 27 20:18:54 2011
+++ src/external/gpl3/binutils/lib/libbfd/arch/powerpc64/config.h	Sat Oct 29 11:05:45 2011
@@ -251,7 +251,7 @@
 /* #undef HAVE_WIN32_PSTATUS_T */
 
 /* Define to 1 if you have the zlib.h header file. */
-/* #undef HAVE_ZLIB_H */
+#define HAVE_ZLIB_H 1
 
 /* Define to the sub-directory in which libtool stores uninstalled libraries.
*/

Index: src/external/gpl3/binutils/usr.bin/common/arch/powerpc64/config.h
diff -u src/external/gpl3/binutils/usr.bin/common/arch/powerpc64/config.h:1.2 src/external/gpl3/binutils/usr.bin/common/arch/powerpc64/config.h:1.3
--- src/external/gpl3/binutils/usr.bin/common/arch/powerpc64/config.h:1.2	Tue Nov 10 10:18:06 2009
+++ src/external/gpl3/binutils/usr.bin/common/arch/powerpc64/config.h	Sat Oct 29 11:05:45 2011
@@ -1,8 +1,8 @@
 /* This file is automatically generated.  DO NOT EDIT! */
-/* Generated from: 	NetBSD: mknative-binutils,v 1.7 2009/11/09 13:50:41 skrll Exp  */
+/* Generated from: 	NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp  */
 /* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp  */
 
-/* config.h.  Generated by configure.  */
+/* config.h.  Generated from config.in by configure.  */
 /* config.in.  Generated from configure.in by autoheader.  */
 
 /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
@@ -75,9 +75,6 @@
 /* Define to 1 if you have the fcntl.h header file. */
 #define HAVE_FCNTL_H 1
 
-/* Is fopen64 available? */
-/* #undef HAVE_FOPEN64 */
-
 /* Define to 1 if you have the `getc_unlocked' function. */
 #define HAVE_GETC_UNLOCKED 1
 
@@ -108,9 +105,6 @@
 /* Define to 1 if you have the `setmode' function. */
 #define HAVE_SETMODE 1
 
-/* Is stat64 available? */
-/* #undef HAVE_STAT64 */
-
 /* Define to 1 if you have the stdint.h header file. */
 #define HAVE_STDINT_H 1
 
@@ -178,12 +172,15 @@
 /* Define to the one symbol short name of this package. */
 #define PACKAGE_TARNAME 
 
+/* Define to the home page for this package. */
+#define PACKAGE_URL 
+
 /* Define to the version of this package. */
 #define PACKAGE_VERSION 
 
 /* If 

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

2011-10-29 Thread Radoslaw Kujawa
Module Name:src
Committed By:   rkujawa
Date:   Sat Oct 29 11:16:19 UTC 2011

Modified Files:
src/sys/arch/amiga/dev: efa.c efareg.h

Log Message:
Fix style (pointed out by phx).


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/amiga/dev/efa.c \
src/sys/arch/amiga/dev/efareg.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/amiga/dev/efa.c
diff -u src/sys/arch/amiga/dev/efa.c:1.1 src/sys/arch/amiga/dev/efa.c:1.2
--- src/sys/arch/amiga/dev/efa.c:1.1	Thu Oct 27 22:12:23 2011
+++ src/sys/arch/amiga/dev/efa.c	Sat Oct 29 11:16:19 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: efa.c,v 1.1 2011/10/27 22:12:23 rkujawa Exp $ */
+/*	$NetBSD: efa.c,v 1.2 2011/10/29 11:16:19 rkujawa Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -111,10 +111,12 @@ static const unsigned int	wdr_offsets_pi
 int
 efa_probe(device_t parent, cfdata_t cfp, void *aux)
 {
-	/* FastATA 1200 uses portions of Gayle IDE interface, and efa driver 
+	/*
+	 * FastATA 1200 uses portions of Gayle IDE interface, and efa driver 
 	 * can't coexist with wdc_amiga. Match wdc on an A1200, because 
- * FastATA 1200 does not autoconfigure. */
-	if( !matchname(aux, wdc) || !is_a1200() )
+	 * FastATA 1200 does not autoconfigure. 
+	 */
+	if ( !matchname(aux, wdc) || !is_a1200() )
 		return(0);
 
 	return 100;
@@ -134,15 +136,15 @@ efa_attach(device_t parent, device_t sel
 
 	efa_set_opts(sc);
 
-	if(!efa_mapbase(sc)) {
+	if (!efa_mapbase(sc)) {
 		aprint_error_dev(self, couldn't map base addresses\n);
 		return;
 	}
-	if(!efa_mapreg_gayle(sc)) {
+	if (!efa_mapreg_gayle(sc)) {
 		aprint_error_dev(self, couldn't map Gayle registers\n);
 		return;
 	}
-	if(!efa_mapreg_native(sc)) {
+	if (!efa_mapreg_native(sc)) {
 		aprint_error_dev(self, couldn't map FastATA regsters\n);
 		return;
 	}
@@ -153,13 +155,13 @@ efa_attach(device_t parent, device_t sel
 	sc-sc_wdcdev.sc_atac.atac_dev = self;
 	sc-sc_wdcdev.sc_atac.atac_channels = sc-sc_chanlist;
 
-	if(sc-sc_32bit_io)
+	if (sc-sc_32bit_io)
 		sc-sc_wdcdev.sc_atac.atac_cap = ATAC_CAP_DATA32;
 	else	
 		sc-sc_wdcdev.sc_atac.atac_cap = ATAC_CAP_DATA16;
 	/*
 	 * The following should work for polling mode, but it does not.
-	 * if(sc-sc_no_intr) 
+	 * if (sc-sc_no_intr) 
 	 *	sc-sc_wdcdev.sc_atac.atac_cap |= ATAC_CAP_NOIRQ;
 	 */
 
@@ -167,11 +169,10 @@ efa_attach(device_t parent, device_t sel
 
 	sc-sc_intreg = gayle.intreq;
 
-	for(i = 0; i  FATA1_CHANNELS; i++) {
+	for (i = 0; i  FATA1_CHANNELS; i++) 
 		efa_attach_channel(sc, i);
-	}
 
-	if(sc-sc_no_intr) {
+	if (sc-sc_no_intr) {
 		sc-sc_fata_softintr = softint_establish(SOFTINT_BIO,
 		(void (*)(void *))efa_intr_soft, sc);
 		if (sc-sc_fata_softintr == NULL) {
@@ -203,7 +204,7 @@ efa_attach_channel(struct efa_softc *sc,
 	sc-sc_ports[chnum].chan.ch_queue = sc-sc_ports[chnum].queue;
 	sc-sc_ports[chnum].chan.ch_ndrive = 2;
 
-	if(!sc-sc_32bit_io)
+	if (!sc-sc_32bit_io)
 		efa_select_regset(sc, chnum, 0); /* Start in PIO0. */
 	else
 		efa_select_regset(sc, chnum, 3); 
@@ -224,7 +225,7 @@ efa_poll_kthread(void *arg)
 {
 	struct efa_softc *sc = arg;
 
-	for(;;) {
+	for (;;) {
 		/* TODO: actually check if interrupt status register is set */
 		softint_schedule(sc-sc_fata_softintr);
 		/* TODO: convert to kpause */
@@ -247,10 +248,10 @@ efa_set_opts(struct efa_softc *sc)
 	sc-sc_no_intr = false;
 #endif /* EFA_NO_INTR */
 
-	if(sc-sc_no_intr)
+	if (sc-sc_no_intr)
 		aprint_verbose_dev(sc-sc_dev, hardware interrupt disabled\n);
 
-	if(sc-sc_32bit_io)
+	if (sc-sc_32bit_io)
 		aprint_verbose_dev(sc-sc_dev, 32-bit I/O enabled\n);
 }
 
@@ -277,10 +278,11 @@ int
 efa_intr(void *arg)
 {
 	struct efa_softc *sc = (struct efa_softc *)arg;
-	int r1, r2;
+	int r1, r2, ret;
+	u_char intreq;
 
-	u_char intreq = *sc-sc_intreg;
-	int ret = 0;
+	intreq = *sc-sc_intreg;
+	ret = 0;
 
 	if (intreq  GAYLE_INT_IDE) {
 		gayle.intreq = 0x7c | (intreq  0x03);
@@ -311,16 +313,16 @@ efa_mapbase(struct efa_softc *sc) 
 	GAYLE_IDE_BASE, gayle_cmd_iot.base, FATA1_BASE, fata_cmd_iot.base);
 #endif
 
-	if(!gayle_cmd_iot.base)
+	if (!gayle_cmd_iot.base)
 		return false;
-	if(!fata_cmd_iot.base)
+	if (!fata_cmd_iot.base)
 		return false;
 
 	sc-sc_gayle_wdc_regs.cmd_iot = gayle_cmd_iot;
 	sc-sc_gayle_wdc_regs.ctl_iot = gayle_cmd_iot;
 
-	for(i = 0; i  FATA1_CHANNELS; i++) {
-		for(j = 0; j  PIO_COUNT; j++) {
+	for (i = 0; i  FATA1_CHANNELS; i++) {
+		for (j = 0; j  PIO_COUNT; j++) {
 			sc-sc_ports[i].wdr[j].cmd_iot = fata_cmd_iot;
 			sc-sc_ports[i].wdr[j].ctl_iot = gayle_cmd_iot;
 		}
@@ -339,7 +341,7 @@ efa_mapreg_gayle(struct efa_softc *sc)
 	struct wdc_regs *wdr = sc-sc_gayle_wdc_regs;
 
 	if (bus_space_map(wdr-cmd_iot, 0, 0x40, 0,
-			  wdr-cmd_baseioh)) {
+	wdr-cmd_baseioh)) {
 		return false;
 	}
 
@@ -363,19 +365,20 @@ efa_mapreg_gayle(struct efa_softc *sc)
 
 /* Native FastATA register mapping, suitable for PIO 

CVS commit: src/sys/kern

2011-10-29 Thread Jean-Yves Migeon
Module Name:src
Committed By:   jym
Date:   Sat Oct 29 11:41:32 UTC 2011

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

Log Message:
Fix comment.


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/kern/kern_cpu.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_cpu.c
diff -u src/sys/kern/kern_cpu.c:1.51 src/sys/kern/kern_cpu.c:1.52
--- src/sys/kern/kern_cpu.c:1.51	Sun Sep 11 14:54:49 2011
+++ src/sys/kern/kern_cpu.c	Sat Oct 29 11:41:32 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_cpu.c,v 1.51 2011/09/11 14:54:49 jdc Exp $	*/
+/*	$NetBSD: kern_cpu.c,v 1.52 2011/10/29 11:41:32 jym Exp $	*/
 
 /*-
  * Copyright (c) 2007, 2008, 2009, 2010 The NetBSD Foundation, Inc.
@@ -56,7 +56,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: kern_cpu.c,v 1.51 2011/09/11 14:54:49 jdc Exp $);
+__KERNEL_RCSID(0, $NetBSD: kern_cpu.c,v 1.52 2011/10/29 11:41:32 jym Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -80,8 +80,8 @@ __KERNEL_RCSID(0, $NetBSD: kern_cpu.c,v
 #include uvm/uvm_extern.h
 
 /*
- * If the port has state that cpu_data is the first thing in cpu_info,
- * verify the claim is true.  This will prevent the from getting out
+ * If the port has stated that cpu_data is the first thing in cpu_info,
+ * verify that the claim is true. This will prevent them from getting out
  * of sync.
  */
 #ifdef __HAVE_CPU_DATA_FIRST



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64

2011-10-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Oct 29 11:42:09 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64: config.m4

Log Message:
make sure to use powerpc64/elf.m4, not powerpc32/elf.m4 here!


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/config.m4

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/lib/libgmp/arch/powerpc64/config.m4
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/config.m4:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/config.m4:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/config.m4:1.1	Sat Oct 29 09:16:54 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/config.m4	Sat Oct 29 11:42:09 2011
@@ -28,7 +28,7 @@ changequote(`,')
 ifdef(`__CONFIG_M4_INCLUDED__',,`
 include(CONFIG_TOP_SRCDIR`/mpn/asm-defs.m4')
 include_mpn(`powerpc32/powerpc-defs.m4')
-include_mpn(`powerpc32/elf.m4')
+include_mpn(`powerpc64/elf.m4')
 define_not_for_expansion(`HAVE_HOST_CPU_powerpc64')
 define_not_for_expansion(`HAVE_ABI_mode32')
 define_not_for_expansion(`HAVE_LIMB_BIG_ENDIAN')



CVS commit: src/distrib/sets/lists/modules

2011-10-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Oct 29 11:52:15 UTC 2011

Modified Files:
src/distrib/sets/lists/modules: md.evbppc

Log Message:
mark all these modules with compatmodules as evbppc64 doesn't want them.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/distrib/sets/lists/modules/md.evbppc

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/modules/md.evbppc
diff -u src/distrib/sets/lists/modules/md.evbppc:1.12 src/distrib/sets/lists/modules/md.evbppc:1.13
--- src/distrib/sets/lists/modules/md.evbppc:1.12	Sun Oct  2 12:13:08 2011
+++ src/distrib/sets/lists/modules/md.evbppc	Sat Oct 29 11:52:15 2011
@@ -1,327 +1,327 @@
-# $NetBSD: md.evbppc,v 1.12 2011/10/02 12:13:08 mbalmer Exp $
-./stand/powerpc-4xx		base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@	base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules	base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/accf_dataready			base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/accf_dataready/accf_dataready.kmod	base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/accf_httpready			base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/accf_httpready/accf_httpready.kmod	base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/adosfsbase-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/adosfs/adosfs.kmod		base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/aiobase-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/aio/aio.kmod			base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/bpfbase-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/bpf/bpf.kmod			base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/cd9660base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/cd9660/cd9660.kmod		base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/codabase-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/coda/coda.kmod			base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/coda5base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/coda5/coda5.kmod			base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/compatbase-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/compat/compat.kmod		base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/compat_ossaudio			base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/compat_ossaudio/compat_ossaudio.kmod	base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/coredumpbase-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/coredump/coredump.kmod		base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/dirhashbase-obsolete	obsolete
-./stand/powerpc-4xx/@OSRELEASE@/modules/dirhash/dirhash.kmod		base-obsolete	obsolete
-./stand/powerpc-4xx/@OSRELEASE@/modules/dmbase-kernel-modules	lvm,kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/dm/dm.kmod			base-kernel-modules	lvm,kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/dtracebase-kernel-modules	kmod,dtrace
-./stand/powerpc-4xx/@OSRELEASE@/modules/dtrace/dtrace.kmod		base-kernel-modules	kmod,dtrace
-./stand/powerpc-4xx/@OSRELEASE@/modules/dtvbase-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/dtv/dtv.kmod			base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/dtv_math			base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/dtv_math/dtv_math.kmod		base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/efsbase-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/efs/efs.kmod			base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/exec_script			base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/exec_script/exec_script.kmod	base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/exec_elf32			base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/exec_elf32/exec_elf32.kmod	base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/ext2fsbase-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/ext2fs/ext2fs.kmod		base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/fbtbase-kernel-modules	kmod,dtrace
-./stand/powerpc-4xx/@OSRELEASE@/modules/fbt/fbt.kmod			base-kernel-modules	kmod,dtrace
-./stand/powerpc-4xx/@OSRELEASE@/modules/fdescbase-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/fdesc/fdesc.kmod			base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/ffsbase-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/ffs/ffs.kmod			base-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/filecorebase-kernel-modules	kmod
-./stand/powerpc-4xx/@OSRELEASE@/modules/filecore/filecore.kmod		base-kernel-modules	kmod

CVS commit: src/doc

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 29 15:18:21 UTC 2011

Modified Files:
src/doc: HACKS

Log Message:
mention another ppc64 hack.


To generate a diff of this commit:
cvs rdiff -u -r1.118 -r1.119 src/doc/HACKS

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

Modified files:

Index: src/doc/HACKS
diff -u src/doc/HACKS:1.118 src/doc/HACKS:1.119
--- src/doc/HACKS:1.118	Thu Oct 27 14:46:43 2011
+++ src/doc/HACKS	Sat Oct 29 11:18:21 2011
@@ -1,4 +1,4 @@
-# $NetBSD: HACKS,v 1.118 2011/10/27 18:46:43 christos Exp $
+# $NetBSD: HACKS,v 1.119 2011/10/29 15:18:21 christos Exp $
 #
 # This file is intended to document workarounds for currently unsolved
 # (mostly) compiler bugs.
@@ -679,3 +679,15 @@ port	powerpc64
 		libposix_pic.a(cerror.pico)(.text+0x14): unresolvable \
 		R_PPC64_REL24 relocation against symbol `.__errno'
 	kcah
+
+	hack	rename data() function in mdocml to avoid redefined error.
+		Compiler/Assembler bug?
+	cdate	Sat Oct 29 11:16:01 EDT 2011
+	who	christos
+	file	src/external/bsd/mdocml/tbl_data.c: 1.2
+	descr
+		workaround for:
+		{standard input}: Assembler messages:
+		{standard input}:105: Error: symbol `.data' is already \
+		defined
+	kcah



CVS commit: src/sys/kern

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 29 15:58:38 UTC 2011

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

Log Message:
PR/45539: Greg A. Woods: add support for getrusage(2) memory size statistics


To generate a diff of this commit:
cvs rdiff -u -r1.128 -r1.129 src/sys/kern/kern_clock.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_clock.c
diff -u src/sys/kern/kern_clock.c:1.128 src/sys/kern/kern_clock.c:1.129
--- src/sys/kern/kern_clock.c:1.128	Wed Jul 27 10:35:33 2011
+++ src/sys/kern/kern_clock.c	Sat Oct 29 11:58:38 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_clock.c,v 1.128 2011/07/27 14:35:33 uebayasi Exp $	*/
+/*	$NetBSD: kern_clock.c,v 1.129 2011/10/29 15:58:38 christos Exp $	*/
 
 /*-
  * Copyright (c) 2000, 2004, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -69,7 +69,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: kern_clock.c,v 1.128 2011/07/27 14:35:33 uebayasi Exp $);
+__KERNEL_RCSID(0, $NetBSD: kern_clock.c,v 1.129 2011/10/29 15:58:38 christos Exp $);
 
 #include opt_ntp.h
 #include opt_perfctrs.h
@@ -429,7 +429,32 @@ statclock(struct clockframe *frame)
 	}
 	spc-spc_pscnt = psdiv;
 
+/*
+ * If the CPU is currently scheduled to a non-idle process, then charge
+ * that process with the appropriate VM resource utilization for a tick.
+ *
+ * Assume that the current process has been running the entire last
+ * tick, and account for VM use regardless of whether in user mode or
+ * system mode (XXX or interrupt mode?).
+ *
+ * rusage VM stats are expressed in kilobytes * ticks-of-execution.
+ */
+/* based on code from 4.3BSD kern_clock.c and from FreeBSD */
+ 
 	if (p != NULL) {
+		struct vmspace *vm = p-p_vmspace;
+		struct rusage *ru = p-p_stats-p_ru;
+		long rss;
+ 
+#define pg2kb(n)	(((n) * PAGE_SIZE) / 1024)
+		ru-ru_idrss += pg2kb(vm-vm_dsize); /* unshared data */
+		ru-ru_isrss += pg2kb(vm-vm_ssize); /* unshared stack */
+		ru-ru_ixrss += pg2kb(vm-vm_tsize); /* shared text? */
+ 
+		rss = pg2kb(vm_resident_count(vm));
+		if (rss  ru-ru_maxrss)
+			ru-ru_maxrss = rss;
+
 		atomic_inc_uint(l-l_cpticks);
 		mutex_spin_exit(p-p_stmutex);
 	}



CVS commit: src/lib/libc/arch/powerpc64/sys

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 29 16:03:04 UTC 2011

Modified Files:
src/lib/libc/arch/powerpc64/sys: cerror.S

Log Message:
Sync with other ports: in PIC mode make __cerror hidden; it is not supposed
to be used outside libc.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/arch/powerpc64/sys/cerror.S

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/arch/powerpc64/sys/cerror.S
diff -u src/lib/libc/arch/powerpc64/sys/cerror.S:1.1 src/lib/libc/arch/powerpc64/sys/cerror.S:1.2
--- src/lib/libc/arch/powerpc64/sys/cerror.S:1.1	Sat Jul  1 12:37:20 2006
+++ src/lib/libc/arch/powerpc64/sys/cerror.S	Sat Oct 29 12:03:03 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: cerror.S,v 1.1 2006/07/01 16:37:20 ross Exp $	*/
+/*	$NetBSD: cerror.S,v 1.2 2011/10/29 16:03:03 christos Exp $	*/
 
 #include machine/asm.h
 #include SYS.h
@@ -6,6 +6,9 @@
 #ifndef _REENTRANT
 	.globl	_C_LABEL(errno)
 #endif
+#ifdef PIC
+	.hidden	_C_LABEL(__cerror)
+#endif
 
 ENTRY(__cerror)
 #ifdef _REENTRANT



CVS commit: src/lib/libc/arch/powerpc64/sys

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 29 16:03:34 UTC 2011

Modified Files:
src/lib/libc/arch/powerpc64/sys: brk.S getcontext.S

Log Message:
Everything else uses PIC branches to __cerror except those two...


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/powerpc64/sys/brk.S \
src/lib/libc/arch/powerpc64/sys/getcontext.S

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/arch/powerpc64/sys/brk.S
diff -u src/lib/libc/arch/powerpc64/sys/brk.S:1.3 src/lib/libc/arch/powerpc64/sys/brk.S:1.4
--- src/lib/libc/arch/powerpc64/sys/brk.S:1.3	Fri Jul  7 02:50:06 2006
+++ src/lib/libc/arch/powerpc64/sys/brk.S	Sat Oct 29 12:03:33 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: brk.S,v 1.3 2006/07/07 06:50:06 ross Exp $	*/
+/*	$NetBSD: brk.S,v 1.4 2011/10/29 16:03:33 christos Exp $	*/
 
 #include SYS.h
 
@@ -37,4 +37,5 @@ ENTRY(_brk)
 	blr# return 0
 
 1:
-	b	.__cerror
+	b	PIC_PLT(_C_LABEL(__cerror))
+
Index: src/lib/libc/arch/powerpc64/sys/getcontext.S
diff -u src/lib/libc/arch/powerpc64/sys/getcontext.S:1.3 src/lib/libc/arch/powerpc64/sys/getcontext.S:1.4
--- src/lib/libc/arch/powerpc64/sys/getcontext.S:1.3	Mon Apr 28 16:22:57 2008
+++ src/lib/libc/arch/powerpc64/sys/getcontext.S	Sat Oct 29 12:03:33 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: getcontext.S,v 1.3 2008/04/28 20:22:57 martin Exp $	*/
+/*	$NetBSD: getcontext.S,v 1.4 2011/10/29 16:03:33 christos Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
 
 #if defined(SYSLIBC_SCCS)  !defined(lint)
 	.text
-	.asciz $NetBSD: getcontext.S,v 1.3 2008/04/28 20:22:57 martin Exp $
+	.asciz $NetBSD: getcontext.S,v 1.4 2011/10/29 16:03:33 christos Exp $
 #endif /* SYSLIBC_SCCS  !lint */
 
 #ifdef WEAK_ALIAS
@@ -50,4 +50,4 @@ ENTRY(_getcontext)
 	stw	%r3,(48 +  3 * 4)(%r5)		# arrange for return value 0
 	blr
 1:
-	b	.__cerror
+	b	PIC_PLT(_C_LABEL(__cerror))



CVS commit: src/sys/dev/iscsi

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 29 16:04:39 UTC 2011

Modified Files:
src/sys/dev/iscsi: iscsi.h iscsi_ioctl.h

Log Message:
make all bitfields unsigned int


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/iscsi/iscsi.h \
src/sys/dev/iscsi/iscsi_ioctl.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/iscsi/iscsi.h
diff -u src/sys/dev/iscsi/iscsi.h:1.1 src/sys/dev/iscsi/iscsi.h:1.2
--- src/sys/dev/iscsi/iscsi.h:1.1	Sun Oct 23 17:15:02 2011
+++ src/sys/dev/iscsi/iscsi.h	Sat Oct 29 12:04:39 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: iscsi.h,v 1.1 2011/10/23 21:15:02 agc Exp $	*/
+/*	$NetBSD: iscsi.h,v 1.2 2011/10/29 16:04:39 christos Exp $	*/
 
 /*-
  * Copyright (c) 2004,2006,2011 The NetBSD Foundation, Inc.
@@ -55,9 +55,9 @@ typedef enum {
 */
 
 typedef struct {
-	int			mutual_auth:1;
-	int			is_secure:1;
-	int			auth_number:4;
+	unsigned int		mutual_auth:1;
+	unsigned int		is_secure:1;
+	unsigned int		auth_number:4;
 	iscsi_auth_types_t	auth_type[ISCSI_AUTH_OPTIONS];
 } iscsi_auth_info_t;
 
Index: src/sys/dev/iscsi/iscsi_ioctl.h
diff -u src/sys/dev/iscsi/iscsi_ioctl.h:1.1 src/sys/dev/iscsi/iscsi_ioctl.h:1.2
--- src/sys/dev/iscsi/iscsi_ioctl.h:1.1	Sun Oct 23 17:15:02 2011
+++ src/sys/dev/iscsi/iscsi_ioctl.h	Sat Oct 29 12:04:39 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: iscsi_ioctl.h,v 1.1 2011/10/23 21:15:02 agc Exp $	*/
+/*	$NetBSD: iscsi_ioctl.h,v 1.2 2011/10/29 16:04:39 christos Exp $	*/
 
 /*-
  * Copyright (c) 2004,2005,2006,2011 The NetBSD Foundation, Inc.
@@ -41,19 +41,19 @@ typedef struct {
 	uint32_t status;
 	int socket;
 	struct {
-		int HeaderDigest:1;
-		int DataDigest:1;
-		int MaxConnections:1;
-		int DefaultTime2Wait:1;
-		int DefaultTime2Retain:1;
-		int MaxRecvDataSegmentLength:1;
-		int auth_info:1;
-		int user_name:1;
-		int password:1;
-		int target_password:1;
-		int TargetName:1;
-		int TargetAlias:1;
-		int ErrorRecoveryLevel:1;
+		unsigned int HeaderDigest:1;
+		unsigned int DataDigest:1;
+		unsigned int MaxConnections:1;
+		unsigned int DefaultTime2Wait:1;
+		unsigned int DefaultTime2Retain:1;
+		unsigned int MaxRecvDataSegmentLength:1;
+		unsigned int auth_info:1;
+		unsigned int user_name:1;
+		unsigned int password:1;
+		unsigned int target_password:1;
+		unsigned int TargetName:1;
+		unsigned int TargetAlias:1;
+		unsigned int ErrorRecoveryLevel:1;
 	} is_present;
 	iscsi_auth_info_t auth_info;
 	iscsi_login_session_type_t login_type;
@@ -205,7 +205,7 @@ typedef struct {
 	uint32_t session_id;
 	uint32_t connection_id;
 	struct {
-		int immediate:1;
+		unsigned int immediate:1;
 	} options;
 	uint64_t lun;
 	scsireq_t req;



CVS commit: src/sbin/iscsid

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 29 16:54:50 UTC 2011

Modified Files:
src/sbin/iscsid: iscsid.h iscsid_discover.c iscsid_driverif.c
iscsid_globals.h iscsid_lists.c iscsid_main.c iscsid_targets.c

Log Message:
cleanup some messy casts and type violations.
XXX: There is one piece of code I marked that does not make sense.
Someone should take a look at it.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sbin/iscsid/iscsid.h \
src/sbin/iscsid/iscsid_discover.c src/sbin/iscsid/iscsid_driverif.c \
src/sbin/iscsid/iscsid_globals.h src/sbin/iscsid/iscsid_lists.c \
src/sbin/iscsid/iscsid_main.c src/sbin/iscsid/iscsid_targets.c

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

Modified files:

Index: src/sbin/iscsid/iscsid.h
diff -u src/sbin/iscsid/iscsid.h:1.1 src/sbin/iscsid/iscsid.h:1.2
--- src/sbin/iscsid/iscsid.h:1.1	Sun Oct 23 17:11:23 2011
+++ src/sbin/iscsid/iscsid.h	Sat Oct 29 12:54:49 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: iscsid.h,v 1.1 2011/10/23 21:11:23 agc Exp $	*/
+/*	$NetBSD: iscsid.h,v 1.2 2011/10/29 16:54:49 christos Exp $	*/
 
 /*-
  * Copyright (c) 2004,2006,2011 The NetBSD Foundation, Inc.
@@ -109,7 +109,7 @@ typedef enum {
 /*  Symbolic or numeric ID  */
 
 typedef struct {
-	int	id;
+	uint32_t id;
 	uint8_t	name[ISCSI_STRING_LENGTH];
 } iscsid_sym_id_t;
 
@@ -137,9 +137,9 @@ typedef struct {
 
 typedef struct {
 	struct {
-		int	HeaderDigest:1;
-		int	DataDigest:1;
-		int	MaxRecvDataSegmentLength:1;
+		unsigned int	HeaderDigest:1;
+		unsigned int	DataDigest:1;
+		unsigned int	MaxRecvDataSegmentLength:1;
 	} is_present;
 	iscsi_digest_t	HeaderDigest;
 	iscsi_digest_t	DataDigest;
@@ -280,13 +280,13 @@ typedef struct {
 	iscsid_list_kind_t	list_kind;
 	iscsid_sym_id_t		target_id;
 	struct {
-		int		HeaderDigest:1;
-		int		DataDigest:1;
-		int		MaxConnections:1;
-		int		DefaultTime2Wait:1;
-		int		DefaultTime2Retain:1;
-		int		MaxRecvDataSegmentLength:1;
-		int		ErrorRecoveryLevel:1;
+		unsigned int	HeaderDigest:1;
+		unsigned int	DataDigest:1;
+		unsigned int	MaxConnections:1;
+		unsigned int	DefaultTime2Wait:1;
+		unsigned int	DefaultTime2Retain:1;
+		unsigned int	MaxRecvDataSegmentLength:1;
+		unsigned int	ErrorRecoveryLevel:1;
 	} is_present;
 	iscsi_digest_t		HeaderDigest;
 	iscsi_digest_t		DataDigest;
Index: src/sbin/iscsid/iscsid_discover.c
diff -u src/sbin/iscsid/iscsid_discover.c:1.1 src/sbin/iscsid/iscsid_discover.c:1.2
--- src/sbin/iscsid/iscsid_discover.c:1.1	Sun Oct 23 17:11:23 2011
+++ src/sbin/iscsid/iscsid_discover.c	Sat Oct 29 12:54:49 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: iscsid_discover.c,v 1.1 2011/10/23 21:11:23 agc Exp $	*/
+/*	$NetBSD: iscsid_discover.c,v 1.2 2011/10/29 16:54:49 christos Exp $	*/
 
 /*-
  * Copyright (c) 2005,2006,2011 The NetBSD Foundation, Inc.
@@ -66,22 +66,24 @@ ISNS_HANDLE isns_handle = ISNS_INVALID_H
  */
 
 STATIC void
-xlate_ip(uint8_t * dest, size_t size, uint8_t * data)
+xlate_ip(uint8_t *dest, size_t size, void *data)
 {
 	uint16_t *wdt = (uint16_t *) data;
 	size_t	cc;
 	int i;
+	char *dst = (char *)dest;
+	char *dt = data;
 
 	for (i = 0; i  5  !wdt[i]; i++) {
 	}
 	if (i == 5  wdt[5] == 0x) {
-		snprintf((char *)dest, size, %d.%d.%d.%d,
-			data[12], data[13], data[14], data[15]);
+		snprintf(dst, size, %d.%d.%d.%d,
+			dt[12], dt[13], dt[14], dt[15]);
 	} else {
 		for (cc = 0, i = 0; i  7; i++) {
-			cc += snprintf((char *)dest[cc], size - cc, %x:, wdt[i]);
+			cc += snprintf(dst[cc], size - cc, %x:, wdt[i]);
 		}
-		snprintf((char *)dest[cc], size - cc, %x, wdt[7]);
+		snprintf(dst[cc], size - cc, %x, wdt[7]);
 	}
 }
 
@@ -102,7 +104,7 @@ get_isns_target_info(isns_t * isns, uint
 	int retval;
 	ISNS_TRANS t;
 	uint32_t tag;
-	int32_t data_len;
+	uint32_t data_len;
 	void *data_p;
 	uint32_t u32;
 	struct timespec tout = { 5, 0 };
@@ -112,9 +114,9 @@ get_isns_target_info(isns_t * isns, uint
 	char alias[ISCSI_STRING_LENGTH];
 	iscsi_portal_address_t addr;
 
-	if (ISNS_INVALID_TRANS == (t = isns_new_trans(isns_handle, isnsp_DevAttrQry,
-		MY_FLAGS))) {
-		DEBOUT((get_targets iscsi_new_trans failed\n));
+	t = isns_new_trans(isns_handle, isnsp_DevAttrQry, MY_FLAGS);
+	if (ISNS_INVALID_TRANS == t) {
+		DEBOUT((%s: get_targets iscsi_new_trans failed\n, __func__));
 		return ISCSID_STATUS_NO_RESOURCES;
 	}
 	isns_add_string(t, isnst_iSCSIName, (char *)isns-reg_iscsi_name);
@@ -340,9 +342,9 @@ deregister_isns_server(isns_t * isns)
 	isns_add_string(t, isnst_iSCSIName, (char *)isns-reg_iscsi_name);
 	isns_add_tlv(t, isnst_Delimiter, 0, NULL);
 	isns_add_string(t, isnst_EID, (char *)isns-reg_entity_id);
-	isns_add_tlv(t, isnst_PortalIPAddr, sizeof(isns-reg_ip_addr),
+	isns_add_tlv(t, isnst_PortalIPAddr, (uint32_t)sizeof(isns-reg_ip_addr),
  isns-reg_ip_addr);
-	isns_add_tlv(t, isnst_PortalPort, sizeof(isns-reg_ip_port),
+	isns_add_tlv(t, isnst_PortalPort, (uint32_t)sizeof(isns-reg_ip_port),
 

CVS commit: src/external/gpl3/gcc/lib/libgcc/libgcc_s

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 29 17:14:12 UTC 2011

Modified Files:
src/external/gpl3/gcc/lib/libgcc/libgcc_s: Makefile

Log Message:
Make the mips softloat special case the same as in the libgcc Makefile.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/lib/libgcc/libgcc_s/Makefile

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/lib/libgcc/libgcc_s/Makefile
diff -u src/external/gpl3/gcc/lib/libgcc/libgcc_s/Makefile:1.4 src/external/gpl3/gcc/lib/libgcc/libgcc_s/Makefile:1.5
--- src/external/gpl3/gcc/lib/libgcc/libgcc_s/Makefile:1.4	Thu Oct 27 22:28:01 2011
+++ src/external/gpl3/gcc/lib/libgcc/libgcc_s/Makefile	Sat Oct 29 13:14:12 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.4 2011/10/28 02:28:01 christos Exp $
+#	$NetBSD: Makefile,v 1.5 2011/10/29 17:14:12 christos Exp $
 
 USE_SHLIBDIR=	yes
 REQUIRETOOLS=	yes
@@ -22,7 +22,7 @@ LDFLAGS+=	-nodefaultlibs
 LDFLAGS+=	-Wl,--version-script=${.OBJDIR}/libgcc.map
 
 # XXX handle this better?
-.if ${MACHINE} == emips || (${MACHINE_CPU} == mips  !(${MKSOFTFLOAT} != no))
+.if ${MACHINE} == emips
 G_LIB2ADD_HACK+=	${GNUHOSTDIST}/gcc/config/floatunsidf.c \
 			${GNUHOSTDIST}/gcc/config/floatunsisf.c
 .endif



CVS commit: src/sys/arch/m68k

2011-10-29 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Sat Oct 29 18:26:20 UTC 2011

Modified Files:
src/sys/arch/m68k/include: pmap_motorola.h
src/sys/arch/m68k/m68k: pmap_motorola.c

Log Message:
Use pool(9) for struct pv_entry allocations rather than
uvm_km_alloc(9)/uvm_km_free(9) and ancient homegrown pv_page_info structures.

Calling uvm_km_free(9) during pmap_remove(9) could cause rw_lock error
in uvm_unmap1() as noted in PR port-m68k/45519.

NetBSD/x68k (both real X68030 and XM6i emulator) still gets weird panic
(corrupted kernel stack pointer?) on some heavy load:
---
panic: MMU fault
Stopped in pid 363.1 (X68k) at  netbsd:cpu_Debugger+0x6:unlka6
db tr
cpu_Debugger(4012004,8,1cbb528,2a618e0,2a5b000) + 6
db
---
but it also occurs without this change so there might be some more bugs
in m68k pmap...


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/arch/m68k/include/pmap_motorola.h
cvs rdiff -u -r1.62 -r1.63 src/sys/arch/m68k/m68k/pmap_motorola.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/m68k/include/pmap_motorola.h
diff -u src/sys/arch/m68k/include/pmap_motorola.h:1.33 src/sys/arch/m68k/include/pmap_motorola.h:1.34
--- src/sys/arch/m68k/include/pmap_motorola.h:1.33	Fri Jun  3 17:03:52 2011
+++ src/sys/arch/m68k/include/pmap_motorola.h	Sat Oct 29 18:26:19 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap_motorola.h,v 1.33 2011/06/03 17:03:52 tsutsui Exp $	*/
+/*	$NetBSD: pmap_motorola.h,v 1.34 2011/10/29 18:26:19 tsutsui Exp $	*/
 
 /* 
  * Copyright (c) 1991, 1993
@@ -191,29 +191,6 @@ struct pv_entry {
 	struct pmap	*pv_ptpmap;	/* if pv_ptste, pmap for PT page */
 };
 
-struct pv_page;
-
-struct pv_page_info {
-	TAILQ_ENTRY(pv_page) pgi_list;
-	struct pv_entry *pgi_freelist;
-	int pgi_nfree;
-};
-
-/*
- * This is basically:
- * ((PAGE_SIZE - sizeof(struct pv_page_info)) / sizeof(struct pv_entry))
- */
-#if PAGE_SIZE == 8192
-#define	NPVPPG	340
-#else
-#define	NPVPPG	170
-#endif
-
-struct pv_page {
-	struct pv_page_info pvp_pgi;
-	struct pv_entry pvp_pv[NPVPPG];
-};
-
 #define	active_pmap(pm) \
 	((pm) == pmap_kernel() || (pm) == curproc-p_vmspace-vm_map.pmap)
 #define	active_user_pmap(pm) \

Index: src/sys/arch/m68k/m68k/pmap_motorola.c
diff -u src/sys/arch/m68k/m68k/pmap_motorola.c:1.62 src/sys/arch/m68k/m68k/pmap_motorola.c:1.63
--- src/sys/arch/m68k/m68k/pmap_motorola.c:1.62	Sun Jun 12 03:35:43 2011
+++ src/sys/arch/m68k/m68k/pmap_motorola.c	Sat Oct 29 18:26:19 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap_motorola.c,v 1.62 2011/06/12 03:35:43 rmind Exp $*/
+/*	$NetBSD: pmap_motorola.c,v 1.63 2011/10/29 18:26:19 tsutsui Exp $*/
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -119,7 +119,7 @@
 #include opt_m68k_arch.h
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: pmap_motorola.c,v 1.62 2011/06/12 03:35:43 rmind Exp $);
+__KERNEL_RCSID(0, $NetBSD: pmap_motorola.c,v 1.63 2011/10/29 18:26:19 tsutsui Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -283,9 +283,10 @@ pt_entry_t	*caddr1_pte;	/* PTE for CADDR
 pt_entry_t	*caddr2_pte;	/* PTE for CADDR2 */
 
 struct pool	pmap_pmap_pool;	/* memory pool for pmap structures */
+struct pool	pmap_pv_pool;	/* memory pool for pv entries */
 
-struct pv_entry *pmap_alloc_pv(void);
-void	pmap_free_pv(struct pv_entry *);
+#define pmap_alloc_pv()		pool_get(pmap_pv_pool, PR_NOWAIT)
+#define pmap_free_pv(pv)	pool_put(pmap_pv_pool, (pv))
 
 #define	PAGE_IS_MANAGED(pa)	(pmap_initialized  uvm_pageismanaged(pa))
 
@@ -543,6 +544,12 @@ pmap_init(void)
 	pool_allocator_nointr, IPL_NONE);
 
 	/*
+	 * Initialize the pv_entry pools.
+	 */
+	pool_init(pmap_pv_pool, sizeof(struct pv_entry), 0, 0, 0, pvpl,
+	pool_allocator_nointr, IPL_NONE);
+
+	/*
 	 * Now that this is done, mark the pages shared with the
 	 * hardware page table search as non-CCB (actually, as CI).
 	 *
@@ -579,142 +586,6 @@ pmap_init(void)
 }
 
 /*
- * pmap_alloc_pv:
- *
- *	Allocate a pv_entry.
- */
-struct pv_entry *
-pmap_alloc_pv(void)
-{
-	struct pv_page *pvp;
-	struct pv_entry *pv;
-	int i;
-
-	if (pv_nfree == 0) {
-		pvp = (struct pv_page *)uvm_km_alloc(kernel_map, PAGE_SIZE, 0,
-		UVM_KMF_WIRED | UVM_KMF_ZERO);
-		if (pvp == NULL)
-			panic(pmap_alloc_pv: uvm_km_alloc() failed);
-		pvp-pvp_pgi.pgi_freelist = pv = pvp-pvp_pv[1];
-		for (i = NPVPPG - 2; i; i--, pv++)
-			pv-pv_next = pv + 1;
-		pv-pv_next = NULL;
-		pv_nfree += pvp-pvp_pgi.pgi_nfree = NPVPPG - 1;
-		TAILQ_INSERT_HEAD(pv_page_freelist, pvp, pvp_pgi.pgi_list);
-		pv = pvp-pvp_pv[0];
-	} else {
-		--pv_nfree;
-		pvp = TAILQ_FIRST(pv_page_freelist);
-		if (--pvp-pvp_pgi.pgi_nfree == 0) {
-			TAILQ_REMOVE(pv_page_freelist, pvp, pvp_pgi.pgi_list);
-		}
-		pv = pvp-pvp_pgi.pgi_freelist;
-#ifdef DIAGNOSTIC
-		if (pv == NULL)
-			panic(pmap_alloc_pv: pgi_nfree inconsistent);
-#endif
-		pvp-pvp_pgi.pgi_freelist = pv-pv_next;
-	}
-	return pv;
-}
-
-/*
- 

CVS commit: src/sys/dev/ata

2011-10-29 Thread Jonathan A. Kollasch
Module Name:src
Committed By:   jakllsch
Date:   Sat Oct 29 18:43:58 UTC 2011

Modified Files:
src/sys/dev/ata: atavar.h

Log Message:
Some comment improvements; spelling and grammar.


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 src/sys/dev/ata/atavar.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/ata/atavar.h
diff -u src/sys/dev/ata/atavar.h:1.82 src/sys/dev/ata/atavar.h:1.83
--- src/sys/dev/ata/atavar.h:1.82	Sat Apr 30 00:34:03 2011
+++ src/sys/dev/ata/atavar.h	Sat Oct 29 18:43:58 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: atavar.h,v 1.82 2011/04/30 00:34:03 jakllsch Exp $	*/
+/*	$NetBSD: atavar.h,v 1.83 2011/10/29 18:43:58 jakllsch Exp $	*/
 
 /*
  * Copyright (c) 1998, 2001 Manuel Bouyer.
@@ -229,10 +229,10 @@ struct ata_bio {
  *
  * This structure defines the interface between the ATA/ATAPI device driver
  * and the controller for short commands. It contains the command's parameter,
- * the len of data's to read/write (if any), and a function to call upon
+ * the length of data to read/write (if any), and a function to call upon
  * completion.
  * If no sleep is allowed, the driver can poll for command completion.
- * Once the command completed, if the error registed is valid, the flag
+ * Once the command completed, if the error registered is valid, the flag
  * AT_ERROR is set and the error register value is copied to r_error .
  * A separate interface is needed for read/write or ATAPI packet commands
  * (which need multiple interrupts per commands).



CVS commit: src/sys/arch/mips

2011-10-29 Thread Jonathan A. Kollasch
Module Name:src
Committed By:   jakllsch
Date:   Sat Oct 29 18:56:50 UTC 2011

Modified Files:
src/sys/arch/mips/include: cpuregs.h
src/sys/arch/mips/mips: mips_machdep.c

Log Message:
Add Broadcom BCM3302 CPU to the table.


To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 src/sys/arch/mips/include/cpuregs.h
cvs rdiff -u -r1.249 -r1.250 src/sys/arch/mips/mips/mips_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/mips/include/cpuregs.h
diff -u src/sys/arch/mips/include/cpuregs.h:1.87 src/sys/arch/mips/include/cpuregs.h:1.88
--- src/sys/arch/mips/include/cpuregs.h:1.87	Thu Sep 22 05:08:52 2011
+++ src/sys/arch/mips/include/cpuregs.h	Sat Oct 29 18:56:49 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: cpuregs.h,v 1.87 2011/09/22 05:08:52 macallan Exp $	*/
+/*	$NetBSD: cpuregs.h,v 1.88 2011/10/29 18:56:49 jakllsch Exp $	*/
 
 /*
  * Copyright (c) 2009 Miodrag Vallat.
@@ -906,6 +906,11 @@
 #define	MIPS_1004K	0x99	/* MIPS 1004Kc/1004Kf		ISA 32  Rel 2 */
 
 /*
+ * CPU processor revision IDs for company ID == 2 (Broadcom)
+ */
+#define	MIPS_BCM3302	0x90	/* MIPS 4KEc_R2-like?		ISA 32  Rel 2 */
+
+/*
  * Alchemy (company ID 3) use the processor ID field to donote the CPU core
  * revision and the company options field do donate the SOC chip type.
  */

Index: src/sys/arch/mips/mips/mips_machdep.c
diff -u src/sys/arch/mips/mips/mips_machdep.c:1.249 src/sys/arch/mips/mips/mips_machdep.c:1.250
--- src/sys/arch/mips/mips/mips_machdep.c:1.249	Thu Sep 22 05:08:52 2011
+++ src/sys/arch/mips/mips/mips_machdep.c	Sat Oct 29 18:56:49 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: mips_machdep.c,v 1.249 2011/09/22 05:08:52 macallan Exp $	*/
+/*	$NetBSD: mips_machdep.c,v 1.250 2011/10/29 18:56:49 jakllsch Exp $	*/
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -112,7 +112,7 @@
 
 #include sys/cdefs.h			/* RCS ID  Copyright macro defns */
 
-__KERNEL_RCSID(0, $NetBSD: mips_machdep.c,v 1.249 2011/09/22 05:08:52 macallan Exp $);
+__KERNEL_RCSID(0, $NetBSD: mips_machdep.c,v 1.250 2011/10/29 18:56:49 jakllsch Exp $);
 
 #define __INTR_PRIVATE
 #include opt_cputype.h
@@ -504,6 +504,9 @@ static const struct pridtab cputab[] = {
 	  MIPS_CP0FL_CONFIG3 | MIPS_CP0FL_CONFIG6 | MIPS_CP0FL_CONFIG7,
 	  0, 1004K },
 
+	{ MIPS_PRID_CID_BROADCOM, MIPS_BCM3302, -1, -1, -1, 0,
+	  MIPS32_FLAGS | CPU_MIPS_DOUBLE_COUNT, 0, 0, BCM3302	},
+
 	{ MIPS_PRID_CID_ALCHEMY, MIPS_AU_REV1, -1, MIPS_AU1000, -1, 0,
 	  MIPS32_FLAGS | CPU_MIPS_NO_WAIT | CPU_MIPS_I_D_CACHE_COHERENT, 0, 0,
 		Au1000 (Rev 1 core)	},



CVS commit: src/sys/arch/amiga

2011-10-29 Thread Radoslaw Kujawa
Module Name:src
Committed By:   rkujawa
Date:   Sat Oct 29 19:25:20 UTC 2011

Modified Files:
src/sys/arch/amiga/amiga: amiga_bus_simple_4.c
src/sys/arch/amiga/dev: efa.c

Log Message:
Allow 32-bit transfers for drives which support it. Add missing bus_space 
methods needed for such transfers.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/amiga/amiga/amiga_bus_simple_4.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/amiga/dev/efa.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/amiga/amiga_bus_simple_4.c
diff -u src/sys/arch/amiga/amiga/amiga_bus_simple_4.c:1.8 src/sys/arch/amiga/amiga/amiga_bus_simple_4.c:1.9
--- src/sys/arch/amiga/amiga/amiga_bus_simple_4.c:1.8	Fri Sep 16 10:23:01 2011
+++ src/sys/arch/amiga/amiga/amiga_bus_simple_4.c	Sat Oct 29 19:25:19 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: amiga_bus_simple_4.c,v 1.8 2011/09/16 10:23:01 rkujawa Exp $ */
+/* $NetBSD: amiga_bus_simple_4.c,v 1.9 2011/10/29 19:25:19 rkujawa Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -30,10 +30,11 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(1, $NetBSD: amiga_bus_simple_4.c,v 1.8 2011/09/16 10:23:01 rkujawa Exp $);
+__KERNEL_RCSID(1, $NetBSD: amiga_bus_simple_4.c,v 1.9 2011/10/29 19:25:19 rkujawa Exp $);
 
 #define AMIGA_SIMPLE_BUS_STRIDE 4		/* 1 byte per long */
 #define AMIGA_SIMPLE_BUS_WORD_METHODS
+#define AMIGA_SIMPLE_BUS_LONGWORD_METHODS
 
 #include simple_busfuncs.c
 
@@ -46,6 +47,8 @@ __KERNEL_RCSID(1, $NetBSD: amiga_bus_si
 
 bsrm(oabs(bsrm2_swap_), u_int16_t);
 bswm(oabs(bswm2_swap_), u_int16_t);
+bsrm(oabs(bsrm4_swap_), u_int32_t);
+bswm(oabs(bswm4_swap_), u_int32_t);
 
 void
 oabs(bsrm2_swap_)(bus_space_handle_t handle, bus_size_t offset,
@@ -78,6 +81,37 @@ oabs(bswm2_swap_)(bus_space_handle_t han
 	}
 }
 
+void
+oabs(bsrm4_swap_)(bus_space_handle_t handle, bus_size_t offset,
+		  u_int32_t *pointer, bus_size_t count)
+{
+	volatile u_int32_t *p;
+
+	p = (volatile u_int32_t *)(handle + offset * AMIGA_SIMPLE_BUS_STRIDE);
+
+	while (count  0) {
+		*pointer++ = bswap32(*p);
+		amiga_bus_reorder_protect();
+		--count;
+	}
+}
+
+void
+oabs(bswm4_swap_)(bus_space_handle_t handle, bus_size_t offset,
+		  const u_int32_t *pointer, bus_size_t count)
+{
+	volatile u_int32_t *p;
+
+	p = (volatile u_int32_t *)(handle + offset * AMIGA_SIMPLE_BUS_STRIDE);
+
+	while (count  0) {
+		*p = bswap32(*pointer);
+		amiga_bus_reorder_protect();
+		++pointer;
+		--count;
+	}
+}
+
 const struct amiga_bus_space_methods amiga_bus_stride_4swap = {
 
 	.bsm =		oabs(bsm_),
@@ -108,5 +142,21 @@ const struct amiga_bus_space_methods ami
 	.bsrrs2 =	oabs(bsrr2_),
 	.bswrs2 =	oabs(bswr2_),
 	.bssr2 =	oabs(bssr2_),		/* XXX swap? */
-	.bscr2 =	oabs(bscr2_)		/* XXX swap? */
+	.bscr2 =	oabs(bscr2_),		/* XXX swap? */
+
+	.bsr4 =		oabs(bsr4_),		/* XXX swap? */
+	.bsw4 =		oabs(bsw4_),		/* XXX swap? */
+	.bsrs4 =	oabs(bsr4_),
+	.bsws4 =	oabs(bsw4_),
+	.bsrm4 =	oabs(bsrm4_swap_),
+	.bswm4 =	oabs(bswm4_swap_),
+	.bsrms4 =	oabs(bsrm4_),
+	.bswms4 =	oabs(bswm4_),
+	.bsrr4 =	oabs(bsrr4_),		/* XXX swap? */
+	.bswr4 =	oabs(bswr4_),		/* XXX swap? */
+	.bsrrs4 =	oabs(bsrr4_),
+	.bswrs4 =	oabs(bswr4_),
+	.bssr4 =	oabs(bssr4_),		/* XXX swap? */
+	.bscr4 =	oabs(bscr4_)		/* XXX swap? */
 };
+

Index: src/sys/arch/amiga/dev/efa.c
diff -u src/sys/arch/amiga/dev/efa.c:1.2 src/sys/arch/amiga/dev/efa.c:1.3
--- src/sys/arch/amiga/dev/efa.c:1.2	Sat Oct 29 11:16:19 2011
+++ src/sys/arch/amiga/dev/efa.c	Sat Oct 29 19:25:19 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: efa.c,v 1.2 2011/10/29 11:16:19 rkujawa Exp $ */
+/*	$NetBSD: efa.c,v 1.3 2011/10/29 19:25:19 rkujawa Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -64,7 +64,7 @@
 #include amiga/dev/efareg.h
 #include amiga/dev/efavar.h
 
-/* #define EFA_32BIT_IO 1 */
+#define EFA_32BIT_IO 1
 /* #define EFA_NO_INTR 1 */
 /* #define EFA_DEBUG 1 */
 
@@ -154,11 +154,11 @@ efa_attach(device_t parent, device_t sel
 	sc-sc_wdcdev.sc_atac.atac_set_modes = efa_setup_channel;
 	sc-sc_wdcdev.sc_atac.atac_dev = self;
 	sc-sc_wdcdev.sc_atac.atac_channels = sc-sc_chanlist;
+	sc-sc_wdcdev.sc_atac.atac_cap = ATAC_CAP_DATA16;
 
 	if (sc-sc_32bit_io)
-		sc-sc_wdcdev.sc_atac.atac_cap = ATAC_CAP_DATA32;
-	else	
-		sc-sc_wdcdev.sc_atac.atac_cap = ATAC_CAP_DATA16;
+		sc-sc_wdcdev.sc_atac.atac_cap |= ATAC_CAP_DATA32;
+
 	/*
 	 * The following should work for polling mode, but it does not.
 	 * if (sc-sc_no_intr) 
@@ -324,6 +324,7 @@ efa_mapbase(struct efa_softc *sc) 
 	for (i = 0; i  FATA1_CHANNELS; i++) {
 		for (j = 0; j  PIO_COUNT; j++) {
 			sc-sc_ports[i].wdr[j].cmd_iot = fata_cmd_iot;
+			sc-sc_ports[i].wdr[j].data32iot = fata_cmd_iot;
 			sc-sc_ports[i].wdr[j].ctl_iot = gayle_cmd_iot;
 		}
 	}
@@ -454,12 +455,11 @@ efa_fata_subregion_pion(struct wdc_regs 
 {
 	if (data32)
 		bus_space_subregion(wdr_fata-cmd_iot, wdr_fata-cmd_baseioh, 
-		

CVS commit: src/sys/kern

2011-10-29 Thread Jean-Yves Migeon
Module Name:src
Committed By:   jym
Date:   Sat Oct 29 20:11:09 UTC 2011

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

Log Message:
Typo fix.


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sys/kern/kern_kthread.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_kthread.c
diff -u src/sys/kern/kern_kthread.c:1.36 src/sys/kern/kern_kthread.c:1.37
--- src/sys/kern/kern_kthread.c:1.36	Sun Aug  7 14:03:16 2011
+++ src/sys/kern/kern_kthread.c	Sat Oct 29 20:11:08 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_kthread.c,v 1.36 2011/08/07 14:03:16 rmind Exp $	*/
+/*	$NetBSD: kern_kthread.c,v 1.37 2011/10/29 20:11:08 jym Exp $	*/
 
 /*-
  * Copyright (c) 1998, 1999, 2007, 2009 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: kern_kthread.c,v 1.36 2011/08/07 14:03:16 rmind Exp $);
+__KERNEL_RCSID(0, $NetBSD: kern_kthread.c,v 1.37 2011/10/29 20:11:08 jym Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -209,7 +209,7 @@ kthread_join(lwp_t *l)
 
 	/*
 	 * - Wait if some other thread has occupied the target.
-	 * - Speicfy our kthread as a target and notify it.
+	 * - Specify our kthread as a target and notify it.
 	 * - Wait for the target kthread to notify us.
 	 */
 	mutex_enter(kthread_lock);



CVS commit: src/sys/arch/mips/mips

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 29 20:55:36 UTC 2011

Modified Files:
src/sys/arch/mips/mips: mips_fpu.c

Log Message:
- make noat-at noreorder-reorder sequences consistent.
- add nop hack to fix assembler internal error.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/mips/mips/mips_fpu.c

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

Modified files:

Index: src/sys/arch/mips/mips/mips_fpu.c
diff -u src/sys/arch/mips/mips/mips_fpu.c:1.6 src/sys/arch/mips/mips/mips_fpu.c:1.7
--- src/sys/arch/mips/mips/mips_fpu.c:1.6	Tue Aug 16 02:58:15 2011
+++ src/sys/arch/mips/mips/mips_fpu.c	Sat Oct 29 16:55:36 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: mips_fpu.c,v 1.6 2011/08/16 06:58:15 matt Exp $	*/
+/*	$NetBSD: mips_fpu.c,v 1.7 2011/10/29 20:55:36 christos Exp $	*/
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: mips_fpu.c,v 1.6 2011/08/16 06:58:15 matt Exp $);
+__KERNEL_RCSID(0, $NetBSD: mips_fpu.c,v 1.7 2011/10/29 20:55:36 christos Exp $);
 
 #include opt_multiprocessor.h
 
@@ -109,8 +109,8 @@ mips_fpu_state_save(lwp_t *l)
 		___STRING(COP0_HAZARD_FPUENABLE)
 		cfc1	%1, $31	\n\t
 		cfc1	%1, $31	\n\t
+		.set at		\n\t
 		.set reorder		\n\t
-		.set at
 	:	=r (status), =r(fpcsr)
 	:	r(tf-tf_regs[_R_SR]  (MIPS_SR_COP_1_BIT|MIPS3_SR_FR|MIPS_SR_KX|MIPS_SR_INT_IE)),
 		n(MIPS_COP_0_STATUS));
@@ -236,8 +236,8 @@ mips_fpu_state_load(lwp_t *l, bool used)
 		mfc0	%0, $%2 			\n\t
 		mtc0	%1, $%2			\n\t
 		___STRING(COP0_HAZARD_FPUENABLE)
+		.set at\n\t
 		.set reorder\n\t
-		.set at
 	: =r(status)
 	: r(tf-tf_regs[_R_SR]  (MIPS_SR_COP_1_BIT|MIPS3_SR_FR|MIPS_SR_KX|MIPS_SR_INT_IE)), n(MIPS_COP_0_STATUS));
 
@@ -334,9 +334,10 @@ mips_fpu_state_load(lwp_t *l, bool used)
 		.set noreorder	\n\t
 		.set noat		\n\t
 		ctc1	%0, $31	\n\t
+		nop			\n\t	/* XXX: Hack */
 		mtc0	%1, $%2	\n\t
+		.set at		\n\t
 		.set reorder		\n\t
-		.set at
 	::	r(fpcsr ~ MIPS_FPU_EXCEPTION_BITS), r(status),
 		n(MIPS_COP_0_STATUS));
 }



CVS commit: src/doc

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 29 20:59:30 UTC 2011

Modified Files:
src/doc: HACKS

Log Message:
Another binutils workaround


To generate a diff of this commit:
cvs rdiff -u -r1.119 -r1.120 src/doc/HACKS

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

Modified files:

Index: src/doc/HACKS
diff -u src/doc/HACKS:1.119 src/doc/HACKS:1.120
--- src/doc/HACKS:1.119	Sat Oct 29 11:18:21 2011
+++ src/doc/HACKS	Sat Oct 29 16:59:30 2011
@@ -1,4 +1,4 @@
-# $NetBSD: HACKS,v 1.119 2011/10/29 15:18:21 christos Exp $
+# $NetBSD: HACKS,v 1.120 2011/10/29 20:59:30 christos Exp $
 #
 # This file is intended to document workarounds for currently unsolved
 # (mostly) compiler bugs.
@@ -691,3 +691,18 @@ port	powerpc64
 		{standard input}:105: Error: symbol `.data' is already \
 		defined
 	kcah
+
+port	emips
+
+	hack	Add nop between ctc1 and mtc0 to avoid assembler internal
+		error
+	cdate	Sat Oct 29 16:57:34 EDT 2011
+	who	christos
+	file	src/sys/arch/mips/mips/mips_fpu.c: 1.7
+	descr
+		workaround for:
+		{standard input}: Assembler messages:
+		{standard input}:730: Internal error!
+		Assertion failure in append_insn at /usr/src/external/gpl3/\
+		binutils/dist/gas/config/tc-mips.c line 2910.
+	kcah



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

2011-10-29 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sat Oct 29 21:18:28 UTC 2011

Modified Files:
src/external/gpl3/gdb/dist/gdb: shnbsd-tdep.c

Log Message:
shnbsd_get_next_pc: declare displacement as LONGEST and use
regcache_cooked_read_signed() to fetch displacement for braf/bsrf.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gdb/dist/gdb/shnbsd-tdep.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/shnbsd-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/shnbsd-tdep.c:1.4 src/external/gpl3/gdb/dist/gdb/shnbsd-tdep.c:1.5
--- src/external/gpl3/gdb/dist/gdb/shnbsd-tdep.c:1.4	Mon Oct 24 23:58:01 2011
+++ src/external/gpl3/gdb/dist/gdb/shnbsd-tdep.c	Sat Oct 29 21:18:28 2011
@@ -264,7 +264,7 @@ shnbsd_get_next_pc (struct regcache *reg
 {
   unsigned short insn;
   ULONGEST sr;
-  int displacement;
+  LONGEST displacement;
   int reg;
   CORE_ADDR next_pc;
   int delay_slot;
@@ -310,7 +310,7 @@ shnbsd_get_next_pc (struct regcache *reg
   /* BRAF, BSRF */
   else if (BRANCH_FAR_P(insn))
 {
-  regcache_cooked_read_unsigned (regcache, BRANCH_FAR_REG(insn),
+  regcache_cooked_read_signed (regcache, BRANCH_FAR_REG(insn),
 	  displacement);
   next_pc = pc + 4 + displacement;
   delay_slot = 1;



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

2011-10-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Oct 29 23:42:45 UTC 2011

Modified Files:
src/external/gpl3/gdb/dist/gdb: configure.tgt

Log Message:
add support for powerpc64-netbsd.
fix support for sh*-netbsd.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/gdb/configure.tgt

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/configure.tgt
diff -u src/external/gpl3/gdb/dist/gdb/configure.tgt:1.1.1.1 src/external/gpl3/gdb/dist/gdb/configure.tgt:1.2
--- src/external/gpl3/gdb/dist/gdb/configure.tgt:1.1.1.1	Sat Sep 24 20:09:44 2011
+++ src/external/gpl3/gdb/dist/gdb/configure.tgt	Sat Oct 29 23:42:45 2011
@@ -395,10 +395,11 @@ mt-*-*)
 	gdb_target_obs=mt-tdep.o
 	;;
 
-powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
+powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu | powerpc64-*-netbsd*)
 	# Target: NetBSD/powerpc
-	gdb_target_obs=rs6000-tdep.o ppc-sysv-tdep.o ppcnbsd-tdep.o \
-			corelow.o solib.o solib-svr4.o
+	gdb_target_obs=rs6000-tdep.o ppcnbsd-tdep.o ppc-sysv-tdep.o \
+			solib.o solib-svr4.o solib-spu.o spu-multiarch.o \
+			corelow.o symfile-mem.o nbsd-tdep.o
 	gdb_sim=../sim/ppc/libsim.a
 	;;
 powerpc-*-openbsd*)
@@ -459,7 +460,8 @@ sh*-*-linux*)
 	;;
 sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
 	# Target: NetBSD/sh
-	gdb_target_obs=sh-tdep.o shnbsd-tdep.o corelow.o solib.o solib-svr4.o
+	gdb_target_obs=sh-tdep.o sh64-tdep.o shnbsd-tdep.o \
+			nbsd-tdep.o corelow.o solib.o solib-svr4.o
 	gdb_sim=../sim/sh/libsim.a
 	;;
 sh*-*-openbsd*)



CVS commit: src/external/gpl3/gdb/bin/psim

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Oct 30 00:11:28 UTC 2011

Modified Files:
src/external/gpl3/gdb/bin/psim: Makefile

Log Message:
psim on ppc64 needs libz


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gdb/bin/psim/Makefile

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/bin/psim/Makefile
diff -u src/external/gpl3/gdb/bin/psim/Makefile:1.1 src/external/gpl3/gdb/bin/psim/Makefile:1.2
--- src/external/gpl3/gdb/bin/psim/Makefile:1.1	Sat Oct  8 21:59:31 2011
+++ src/external/gpl3/gdb/bin/psim/Makefile	Sat Oct 29 20:11:28 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.1 2011/10/09 01:59:31 christos Exp $
+#	$NetBSD: Makefile,v 1.2 2011/10/30 00:11:28 christos Exp $
 
 NOMAN=	# defined
 
@@ -44,8 +44,8 @@ LIBIBERTYDIR!=	cd ${.CURDIR}/../../lib/l
 LDADD+=		-L${LIBIBERTYDIR} -liberty
 DPADD+=		${LIBIBERTYDIR}/libiberty.a
 
-LDADD+=		-lintl
-DPADD+=		${LIBINTL}
+LDADD+=		-lintl -lz
+DPADD+=		${LIBINTL} ${LIBZ}
 
 CLEANFILES+=	version.c
 



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

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Oct 30 00:14:20 UTC 2011

Added Files:
src/external/gpl3/gdb/lib/libbfd/arch/armeb: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/powerpc64: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libdecnumber/arch/armeb: config.h defs.mk
gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/powerpc64: config.h defs.mk
gstdint.h
src/external/gpl3/gdb/lib/libgdb/arch/armeb: config.h defs.mk init.c
observer.h observer.inc version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64: config.h defs.mk
init.c observer.h observer.inc version.c xml-builtin.c
src/external/gpl3/gdb/lib/libiberty/arch/armeb: config.h defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/powerpc64: config.h defs.mk
src/external/gpl3/gdb/lib/libopcodes/arch/armeb: config.h defs.mk
src/external/gpl3/gdb/lib/libopcodes/arch/powerpc64: config.h defs.mk
src/external/gpl3/gdb/lib/libreadline/arch/armeb: config.h defs.mk
src/external/gpl3/gdb/lib/libreadline/arch/powerpc64: config.h defs.mk
src/external/gpl3/gdb/lib/libsim/arch/powerpc64: build-config.h
cconfig.h config.h

Log Message:
add ppc64 and armeb


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gdb/lib/libbfd/arch/armeb/bfd-in3.h \
src/external/gpl3/gdb/lib/libbfd/arch/armeb/bfd.h \
src/external/gpl3/gdb/lib/libbfd/arch/armeb/bfd_stdint.h \
src/external/gpl3/gdb/lib/libbfd/arch/armeb/bfdver.h \
src/external/gpl3/gdb/lib/libbfd/arch/armeb/config.h \
src/external/gpl3/gdb/lib/libbfd/arch/armeb/defs.mk \
src/external/gpl3/gdb/lib/libbfd/arch/armeb/targmatch.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libbfd/arch/powerpc64/bfd-in3.h \
src/external/gpl3/gdb/lib/libbfd/arch/powerpc64/bfd.h \
src/external/gpl3/gdb/lib/libbfd/arch/powerpc64/bfd_stdint.h \
src/external/gpl3/gdb/lib/libbfd/arch/powerpc64/bfdver.h \
src/external/gpl3/gdb/lib/libbfd/arch/powerpc64/config.h \
src/external/gpl3/gdb/lib/libbfd/arch/powerpc64/defs.mk \
src/external/gpl3/gdb/lib/libbfd/arch/powerpc64/targmatch.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libdecnumber/arch/armeb/config.h \
src/external/gpl3/gdb/lib/libdecnumber/arch/armeb/defs.mk \
src/external/gpl3/gdb/lib/libdecnumber/arch/armeb/gstdint.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libdecnumber/arch/powerpc64/config.h \
src/external/gpl3/gdb/lib/libdecnumber/arch/powerpc64/defs.mk \
src/external/gpl3/gdb/lib/libdecnumber/arch/powerpc64/gstdint.h
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gdb/lib/libgdb/arch/armeb/config.h \
src/external/gpl3/gdb/lib/libgdb/arch/armeb/defs.mk \
src/external/gpl3/gdb/lib/libgdb/arch/armeb/init.c \
src/external/gpl3/gdb/lib/libgdb/arch/armeb/observer.h \
src/external/gpl3/gdb/lib/libgdb/arch/armeb/observer.inc \
src/external/gpl3/gdb/lib/libgdb/arch/armeb/version.c \
src/external/gpl3/gdb/lib/libgdb/arch/armeb/xml-builtin.c
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64/config.h \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64/defs.mk \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64/init.c \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64/observer.h \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64/observer.inc \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64/version.c \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64/xml-builtin.c
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libiberty/arch/armeb/config.h \
src/external/gpl3/gdb/lib/libiberty/arch/armeb/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libiberty/arch/powerpc64/config.h \
src/external/gpl3/gdb/lib/libiberty/arch/powerpc64/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libopcodes/arch/armeb/config.h \
src/external/gpl3/gdb/lib/libopcodes/arch/armeb/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libopcodes/arch/powerpc64/config.h \
src/external/gpl3/gdb/lib/libopcodes/arch/powerpc64/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libreadline/arch/armeb/config.h \
src/external/gpl3/gdb/lib/libreadline/arch/armeb/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libreadline/arch/powerpc64/config.h \
src/external/gpl3/gdb/lib/libreadline/arch/powerpc64/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libsim/arch/powerpc64/build-config.h \
src/external/gpl3/gdb/lib/libsim/arch/powerpc64/cconfig.h \
src/external/gpl3/gdb/lib/libsim/arch/powerpc64/config.h

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

diffs are 

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

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Oct 30 00:15:24 UTC 2011

Added Files:
src/external/gpl3/gdb/dist/gdb/config/powerpc: ppc64-nbsd.mh

Log Message:
a copy of the ppc one.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/dist/gdb/config/powerpc/ppc64-nbsd.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/config/powerpc/ppc64-nbsd.mh
diff -u /dev/null src/external/gpl3/gdb/dist/gdb/config/powerpc/ppc64-nbsd.mh:1.1
--- /dev/null	Sat Oct 29 20:15:24 2011
+++ src/external/gpl3/gdb/dist/gdb/config/powerpc/ppc64-nbsd.mh	Sat Oct 29 20:15:24 2011
@@ -0,0 +1,4 @@
+# Host: NetBSD/powerpc64
+NATDEPFILES= fork-child.o inf-ptrace.o nbsd-nat.o ppcnbsd-nat.o bsd-kvm.o
+
+LOADLIBES= -lkvm



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

2011-10-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Oct 30 00:27:52 UTC 2011

Modified Files:
src/external/gpl3/gdb/lib/libgdb/arch/sh3eb: defs.mk
src/external/gpl3/gdb/lib/libgdb/arch/sh3el: defs.mk

Log Message:
regenerate after fixing link-time issues.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gdb/lib/libgdb/arch/sh3eb/defs.mk
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gdb/lib/libgdb/arch/sh3el/defs.mk

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

Modified files:

Index: src/external/gpl3/gdb/lib/libgdb/arch/sh3eb/defs.mk
diff -u src/external/gpl3/gdb/lib/libgdb/arch/sh3eb/defs.mk:1.1 src/external/gpl3/gdb/lib/libgdb/arch/sh3eb/defs.mk:1.2
--- src/external/gpl3/gdb/lib/libgdb/arch/sh3eb/defs.mk:1.1	Mon Oct 24 23:58:02 2011
+++ src/external/gpl3/gdb/lib/libgdb/arch/sh3eb/defs.mk	Sun Oct 30 00:27:52 2011
@@ -3,5 +3,5 @@
 # Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp 
 #
 G_INTERNAL_CFLAGS=-I. -I${GNUHOSTDIST}/gdb -I${GNUHOSTDIST}/gdb/common -I${GNUHOSTDIST}/gdb/config  -DLOCALEDIR=\/usr/share/locale\ -DHAVE_CONFIG_H -I${GNUHOSTDIST}/gdb/../include/opcode -I${GNUHOSTDIST}/gdb/../opcodes/.. -I${GNUHOSTDIST}/gdb/../readline/..  -I../bfd -I${GNUHOSTDIST}/gdb/../bfd -I${GNUHOSTDIST}/gdb/../include -I../libdecnumber -I${GNUHOSTDIST}/gdb/../libdecnumber  -I./../intl -I${GNUHOSTDIST}/gdb/gnulib -Ignulib  -DMI_OUT=1 -DTUI=1  -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts 
-G_LIBGDB_OBS=sh-tdep.o shnbsd-tdep.o corelow.o solib.o solib-svr4.o ser-base.o ser-unix.o ser-pipe.o ser-tcp.o inf-ptrace.o fork-child.o nbsd-nat.o shnbsd-nat.o  remote.o dcache.o tracepoint.o ax-general.o ax-gdb.o remote-fileio.o  cli-dump.o  cli-decode.o cli-script.o cli-cmds.o cli-setshow.o  cli-logging.o  cli-interp.o cli-utils.o mi-out.o mi-console.o  mi-cmds.o mi-cmd-env.o mi-cmd-var.o mi-cmd-break.o mi-cmd-stack.o  mi-cmd-file.o mi-cmd-disas.o mi-symbol-cmds.o mi-cmd-target.o  mi-interp.o  mi-main.o mi-parse.o mi-getopt.o tui-command.o  tui-data.o  tui-disasm.o  tui-file.o tui.o  tui-hooks.o  tui-interp.o  tui-io.o  tui-layout.o  tui-out.o  tui-main.o  tui-regs.o  tui-source.o  tui-stack.o  tui-win.o  tui-windata.o  tui-wingeneral.o  tui-winsource.o  tui.o python.o py-value.o py-prettyprint.o py-auto-load.o elfread.o posix-hdep.o c-exp.o  cp-name-parser.o  objc-exp.o  ada-exp.o  jv-exp.o  f-exp.o m2-exp.o p-exp.o  version.o  annotate.o  addrmap.o  auxv.o  bfd-target.o
  blockframe.o breakpoint.o findvar.o regcache.o  charset.o disasm.o dummy-frame.o dfp.o  source.o value.o eval.o valops.o valarith.o valprint.o printcmd.o  block.o symtab.o psymtab.o symfile.o symmisc.o linespec.o dictionary.o  infcall.o  infcmd.o infrun.o  expprint.o environ.o stack.o thread.o  exceptions.o  filesystem.o  inf-child.o  interps.o  main.o  macrotab.o macrocmd.o macroexp.o macroscope.o  mi-common.o  event-loop.o event-top.o inf-loop.o completer.o  gdbarch.o arch-utils.o gdbtypes.o osabi.o copying.o  memattr.o mem-break.o target.o parse.o language.o buildsym.o  findcmd.o  std-regs.o  signals.o  exec.o reverse.o  bcache.o objfiles.o observer.o minsyms.o maint.o demangle.o  dbxread.o coffread.o coff-pe-read.o  dwarf2read.o mipsread.o stabsread.o corefile.o  dwarf2expr.o dwarf2loc.o dwarf2-frame.o  ada-lang.o c-lang.o d-lang.o f-lang.o objc-lang.o  ada-tasks.o  ui-out.o cli-out.o  varobj.o vec.o wrapper.o  jv-lang.o jv-valprint.o jv-typeprint.o  m2-lang.o opencl-la
 ng.o p-lang.o p-typeprint.o p-valprint.o  sentinel-frame.o  complaints.o typeprint.o  ada-typeprint.o c-typeprint.o f-typeprint.o m2-typeprint.o  ada-valprint.o c-valprint.o cp-valprint.o d-valprint.o f-valprint.o  m2-valprint.o  serial.o mdebugread.o top.o utils.o  ui-file.o  user-regs.o  frame.o frame-unwind.o doublest.o  frame-base.o  inline-frame.o  gnu-v2-abi.o gnu-v3-abi.o cp-abi.o cp-support.o  cp-namespace.o  reggroups.o regset.o  trad-frame.o  tramp-frame.o  solib.o solib-target.o  prologue-value.o memory-map.o memrange.o xml-support.o xml-syscall.o  target-descriptions.o target-memory.o xml-tdesc.o xml-builtin.o  inferior.o osdata.o gdb_usleep.o record.o gcore.o  jit.o progspace.o inflow.oinit.o
+G_LIBGDB_OBS=sh-tdep.o sh64-tdep.o shnbsd-tdep.o nbsd-tdep.o corelow.o solib.o solib-svr4.o ser-base.o ser-unix.o ser-pipe.o ser-tcp.o inf-ptrace.o fork-child.o nbsd-nat.o shnbsd-nat.o  remote.o dcache.o tracepoint.o ax-general.o ax-gdb.o remote-fileio.o  cli-dump.o  cli-decode.o cli-script.o cli-cmds.o cli-setshow.o  cli-logging.o  cli-interp.o cli-utils.o mi-out.o mi-console.o  mi-cmds.o mi-cmd-env.o mi-cmd-var.o mi-cmd-break.o mi-cmd-stack.o  mi-cmd-file.o mi-cmd-disas.o mi-symbol-cmds.o mi-cmd-target.o  mi-interp.o  mi-main.o mi-parse.o mi-getopt.o tui-command.o  tui-data.o  tui-disasm.o  tui-file.o tui.o  

CVS commit: src/sys/lib/libz

2011-10-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Oct 30 00:28:57 UTC 2011

Modified Files:
src/sys/lib/libz: Makefile

Log Message:
use LIBISPRIVATE instead of home-grown.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/lib/libz/Makefile

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

Modified files:

Index: src/sys/lib/libz/Makefile
diff -u src/sys/lib/libz/Makefile:1.17 src/sys/lib/libz/Makefile:1.18
--- src/sys/lib/libz/Makefile:1.17	Sun Jul  3 15:29:35 2011
+++ src/sys/lib/libz/Makefile	Sun Oct 30 00:28:57 2011
@@ -1,8 +1,7 @@
-#	$NetBSD: Makefile,v 1.17 2011/07/03 15:29:35 mrg Exp $
+#	$NetBSD: Makefile,v 1.18 2011/10/30 00:28:57 mrg Exp $
 
 LIB=	z
-NOPIC=	# defined
-NOPROFILE=# defined
+LIBISPRIVATE=	yes
 
 ZDISTDIR:=${.PARSEDIR}/../../../common/dist/zlib
 
@@ -22,9 +21,6 @@ SRCS=	${LIBZSRCS} zalloc.c
 # Files to clean up
 CLEANFILES+= lib${LIB}.o
 
-# only needed during build
-libinstall::
-
 .undef DESTDIR
 .include bsd.lib.mk
 



CVS commit: src/distrib/utils/sysinst

2011-10-29 Thread Jonathan A. Kollasch
Module Name:src
Committed By:   jakllsch
Date:   Sun Oct 30 00:30:57 UTC 2011

Modified Files:
src/distrib/utils/sysinst: menus.mi

Log Message:
As both of the ns-wide.wide.ad.jp and light.imasy.or.jp IPv6 resolvers
now refuse my queries, replace them with google-public-dns-a.google.com
and google-public-dns-b.google.com.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/distrib/utils/sysinst/menus.mi

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

Modified files:

Index: src/distrib/utils/sysinst/menus.mi
diff -u src/distrib/utils/sysinst/menus.mi:1.42 src/distrib/utils/sysinst/menus.mi:1.43
--- src/distrib/utils/sysinst/menus.mi:1.42	Sun Apr 17 12:33:42 2011
+++ src/distrib/utils/sysinst/menus.mi	Sun Oct 30 00:30:56 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: menus.mi,v 1.42 2011/04/17 12:33:42 martin Exp $	*/
+/*	$NetBSD: menus.mi,v 1.43 2011/10/30 00:30:56 jakllsch Exp $	*/
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -344,19 +344,20 @@ menu localdirsource, y=-4, x=0, w=70, no
 		action { src_prompt(MSG_Set_dir, set_dir, 60); };
 
 menu namesrv6, title MSG_Select_IPv6_DNS_server;
-	option ns-wide.wide.ad.jp, exit, action
+	option google-public-dns-a.google.com, exit, action
 		{
 #ifdef INET6
-		  strlcpy(net_namesvr6, 2001:200:0:1::f, sizeof(net_namesvr6));
+		  strlcpy(net_namesvr6, 2001:4860:4860::,
+		  sizeof(net_namesvr6));
 		  yesno = 1;
 #else
 		  yesno = 0;
 #endif
 		}; 
-	option light.imasy.or.jp, exit, action
+	option google-public-dns-b.google.com, exit, action
 		{
 #ifdef INET6
-		  strlcpy(net_namesvr6, 2001:200:300:1:2a0:c9ff:fe61:6521,
+		  strlcpy(net_namesvr6, 2001:4860:4860::8844,
 		  sizeof(net_namesvr6));
 		  yesno = 1;
 #else



CVS commit: src/external/lgpl3/gmp

2011-10-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Oct 30 01:50:39 UTC 2011

Added Files:
src/external/lgpl3/gmp: Makefile.netbsd-gmp

Log Message:
makefile frontend to run gmp configure under nbmake-$MACHINE.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/lgpl3/gmp/Makefile.netbsd-gmp

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

Added files:

Index: src/external/lgpl3/gmp/Makefile.netbsd-gmp
diff -u /dev/null src/external/lgpl3/gmp/Makefile.netbsd-gmp:1.1
--- /dev/null	Sun Oct 30 01:50:39 2011
+++ src/external/lgpl3/gmp/Makefile.netbsd-gmp	Sun Oct 30 01:50:32 2011
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile.netbsd-gmp,v 1.1 2011/10/30 01:50:32 mrg Exp $
+
+# hack makefile to help build gmp ./configure
+
+.include bsd.own.mk
+
+CCADDFLAGS=	--sysroot=${DESTDIR} -L${DESTDIR}/lib -L${DESTDIR}/usr/lib -B${DESTDIR}/usr/lib/ -I${.OBJDIR}/.native/gcc/include
+
+TARGET=hppa-netbsd
+#TARGET=mips64el-netbsd
+ENV_ARGS=\
+			CC=${CC:Q}' '${CCADDFLAGS:Q} \
+			CPP=${CPP:Q}' '-I${DESTDIR}/usr/include \
+			AS=${AS:Q} AWK=${TOOL_AWK:Q} LD=${LD:Q} \
+			NM=${NM:Q} OBJDUMP=${OBJDUMP:Q} \
+			LIBS=-lintl
+
+all:
+	env ${ENV_ARGS} /usr/src3/external/lgpl3/gmp/dist/configure --host=${TARGET} --target=${TARGET}



CVS commit: src/sys/kern

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Oct 30 01:57:40 UTC 2011

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

Log Message:
Back out previous; this should not be done in statclock but when the
allocations change or getrusage(). Plus the += seems wrong, we cannot
keep adding to the stats.


To generate a diff of this commit:
cvs rdiff -u -r1.129 -r1.130 src/sys/kern/kern_clock.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_clock.c
diff -u src/sys/kern/kern_clock.c:1.129 src/sys/kern/kern_clock.c:1.130
--- src/sys/kern/kern_clock.c:1.129	Sat Oct 29 11:58:38 2011
+++ src/sys/kern/kern_clock.c	Sat Oct 29 21:57:40 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_clock.c,v 1.129 2011/10/29 15:58:38 christos Exp $	*/
+/*	$NetBSD: kern_clock.c,v 1.130 2011/10/30 01:57:40 christos Exp $	*/
 
 /*-
  * Copyright (c) 2000, 2004, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -69,7 +69,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: kern_clock.c,v 1.129 2011/10/29 15:58:38 christos Exp $);
+__KERNEL_RCSID(0, $NetBSD: kern_clock.c,v 1.130 2011/10/30 01:57:40 christos Exp $);
 
 #include opt_ntp.h
 #include opt_perfctrs.h
@@ -429,32 +429,7 @@ statclock(struct clockframe *frame)
 	}
 	spc-spc_pscnt = psdiv;
 
-/*
- * If the CPU is currently scheduled to a non-idle process, then charge
- * that process with the appropriate VM resource utilization for a tick.
- *
- * Assume that the current process has been running the entire last
- * tick, and account for VM use regardless of whether in user mode or
- * system mode (XXX or interrupt mode?).
- *
- * rusage VM stats are expressed in kilobytes * ticks-of-execution.
- */
-/* based on code from 4.3BSD kern_clock.c and from FreeBSD */
- 
 	if (p != NULL) {
-		struct vmspace *vm = p-p_vmspace;
-		struct rusage *ru = p-p_stats-p_ru;
-		long rss;
- 
-#define pg2kb(n)	(((n) * PAGE_SIZE) / 1024)
-		ru-ru_idrss += pg2kb(vm-vm_dsize); /* unshared data */
-		ru-ru_isrss += pg2kb(vm-vm_ssize); /* unshared stack */
-		ru-ru_ixrss += pg2kb(vm-vm_tsize); /* shared text? */
- 
-		rss = pg2kb(vm_resident_count(vm));
-		if (rss  ru-ru_maxrss)
-			ru-ru_maxrss = rss;
-
 		atomic_inc_uint(l-l_cpticks);
 		mutex_spin_exit(p-p_stmutex);
 	}



CVS commit: src/lib/libperfuse

2011-10-29 Thread Emmanuel Dreyfus
Module Name:src
Committed By:   manu
Date:   Sun Oct 30 05:11:37 UTC 2011

Modified Files:
src/lib/libperfuse: ops.c perfuse.c perfuse_if.h perfuse_priv.h subr.c

Log Message:
- Fix the confusion between fileno (opaque FUSE reference) and inode
  numbers. fileno must be used when exchanging FUSE messages.
- Do not use kernel name cache anymore, as it caused modification from
  other machines to be invisible.
- Honour name and attribute cache directive from FUSE filesystem


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/lib/libperfuse/ops.c
cvs rdiff -u -r1.22 -r1.23 src/lib/libperfuse/perfuse.c \
src/lib/libperfuse/perfuse_priv.h
cvs rdiff -u -r1.16 -r1.17 src/lib/libperfuse/perfuse_if.h
cvs rdiff -u -r1.13 -r1.14 src/lib/libperfuse/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/lib/libperfuse/ops.c
diff -u src/lib/libperfuse/ops.c:1.42 src/lib/libperfuse/ops.c:1.43
--- src/lib/libperfuse/ops.c:1.42	Sat Sep 10 10:06:10 2011
+++ src/lib/libperfuse/ops.c	Sun Oct 30 05:11:37 2011
@@ -1,4 +1,4 @@
-/*  $NetBSD: ops.c,v 1.42 2011/09/10 10:06:10 tron Exp $ */
+/*  $NetBSD: ops.c,v 1.43 2011/10/30 05:11:37 manu Exp $ */
 
 /*-
  *  Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved.
@@ -44,6 +44,10 @@
 
 extern int perfuse_diagflags;
 
+static void set_expire(puffs_cookie_t, struct fuse_entry_out *, 
+   struct fuse_attr_out *);
+static int attr_expired(puffs_cookie_t);
+static int entry_expired(puffs_cookie_t);
 static int xchg_msg(struct puffs_usermount *, puffs_cookie_t, 
 perfuse_msg_t *, size_t, enum perfuse_xchg_pb_reply); 
 static int mode_access(puffs_cookie_t, const struct puffs_cred *, mode_t);
@@ -153,8 +157,8 @@ perfuse_node_close_common(pu, opc, mode)
 
 #ifdef PERFUSE_DEBUG
 	if (perfuse_diagflags  PDF_FH)
-		DPRINTF(%s: opc = %p, ino = %PRId64, fh = 0x%PRIx64\n,
-			 __func__, (void *)opc, pnd-pnd_ino, fri-fh);
+		DPRINTF(%s: opc = %p, nodeid = 0x%PRIx64, fh = 0x%PRIx64\n,
+			 __func__, (void *)opc, pnd-pnd_nodeid, fri-fh);
 #endif
 
 	if ((error = xchg_msg(pu, opc, pm,
@@ -193,8 +197,9 @@ xchg_msg(pu, opc, pm, len, wait)
 
 #ifdef PERFUSE_DEBUG
 	if ((perfuse_diagflags  PDF_FILENAME)  (opc != 0))
-		DPRINTF(file = \%s\ flags = 0x%x\n, 
-			perfuse_node_path(opc),
+		DPRINTF(file = \%s\, ino = %PRIu64 flags = 0x%x\n, 
+			perfuse_node_path(opc), 
+			((struct puffs_node *)opc)-pn_va.va_fileid,
 			PERFUSE_NODE_DATA(opc)-pnd_flags);
 #endif
 	if (pnd)
@@ -309,6 +314,74 @@ fuse_attr_to_vap(ps, vap, fa)
 	return;
 }
 
+static void 
+set_expire(opc, feo, fao)
+	puffs_cookie_t opc;
+	struct fuse_entry_out *feo;
+	struct fuse_attr_out *fao;
+{
+	struct perfuse_node_data *pnd = PERFUSE_NODE_DATA(opc);
+	struct timespec entry_ts;
+	struct timespec attr_ts;
+	struct timespec now;
+
+	if ((feo == NULL)  (fao == NULL))
+		DERRX(EX_SOFTWARE, %s: feo and fao NULL, __func__);
+
+	if ((feo != NULL)  (fao != NULL))
+		DERRX(EX_SOFTWARE, %s: feo and fao != NULL, __func__);
+
+	if (clock_gettime(CLOCK_REALTIME, now) != 0)
+		DERR(EX_OSERR, clock_gettime failed);
+
+	if (feo != NULL) {
+		entry_ts.tv_sec = (time_t)feo-entry_valid;
+		entry_ts.tv_nsec = (long)feo-entry_valid_nsec;
+
+		timespecadd(now, entry_ts, pnd-pnd_entry_expire);
+
+		attr_ts.tv_sec = (time_t)feo-attr_valid;
+		attr_ts.tv_nsec = (long)feo-attr_valid_nsec;
+
+		timespecadd(now, attr_ts, pnd-pnd_attr_expire);
+	} 
+
+	if (fao != NULL) {
+		attr_ts.tv_sec = (time_t)fao-attr_valid;
+		attr_ts.tv_nsec = (long)fao-attr_valid_nsec;
+
+		timespecadd(now, attr_ts, pnd-pnd_attr_expire);
+	} 
+
+	return;
+}
+
+static int
+attr_expired(opc)
+	puffs_cookie_t opc;
+{
+	struct perfuse_node_data *pnd = PERFUSE_NODE_DATA(opc);
+	struct timespec now;
+
+	if (clock_gettime(CLOCK_REALTIME, now) != 0)
+		DERR(EX_OSERR, clock_gettime failed);
+
+	return timespeccmp(pnd-pnd_attr_expire, now, );
+}
+
+static int
+entry_expired(opc)
+	puffs_cookie_t opc;
+{
+	struct perfuse_node_data *pnd = PERFUSE_NODE_DATA(opc);
+	struct timespec now;
+
+	if (clock_gettime(CLOCK_REALTIME, now) != 0)
+		DERR(EX_OSERR, clock_gettime failed);
+
+	return timespeccmp(pnd-pnd_entry_expire, now, );
+}
+
 
 /* 
  * Lookup name in directory opc
@@ -323,12 +396,8 @@ node_lookup_dir_nodot(pu, opc, name, nam
 	size_t namelen;
 	struct puffs_node **pnp;
 {
-	char *path;
-	struct puffs_node *dpn = (struct puffs_node *)opc;
-	int error;
-
 	/*
-	 *  is easy as we already know it
+	 * dot is easy as we already know it
 	 */
 	if (strncmp(name, ., namelen) == 0) {
 		*pnp = (struct puffs_node *)opc;
@@ -336,22 +405,14 @@ node_lookup_dir_nodot(pu, opc, name, nam
 	}
 
 	/*
-	 * For .. we just forget the name part
+	 * dotdot is also known
 	 */
-	if (strncmp(name, .., namelen) == 0)
-		namelen = 0;
-
-	namelen = PNPLEN(dpn) + 1 + namelen + 1;
-	if ((path = malloc(namelen)) == NULL)
-		DERR(EX_OSERR, %s: malloc failed, __func__);
-	

CVS commit: src/usr.sbin/perfused

2011-10-29 Thread Emmanuel Dreyfus
Module Name:src
Committed By:   manu
Date:   Sun Oct 30 05:17:41 UTC 2011

Modified Files:
src/usr.sbin/perfused: msg.c

Log Message:
Fix the confusion between nodeid and inode numbers


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/usr.sbin/perfused/msg.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/perfused/msg.c
diff -u src/usr.sbin/perfused/msg.c:1.16 src/usr.sbin/perfused/msg.c:1.17
--- src/usr.sbin/perfused/msg.c:1.16	Tue Aug 30 20:17:01 2011
+++ src/usr.sbin/perfused/msg.c	Sun Oct 30 05:17:41 2011
@@ -1,4 +1,4 @@
-/*  $NetBSD: msg.c,v 1.16 2011/08/30 20:17:01 joerg Exp $ */
+/*  $NetBSD: msg.c,v 1.17 2011/10/30 05:17:41 manu Exp $ */
 
 /*-
  *  Copyright (c) 2010 Emmanuel Dreyfus. All rights reserved.
@@ -180,7 +180,10 @@ perfuse_new_pb (struct puffs_usermount *
 		DERR(EX_OSERR, puffs_framebuf_make failed);
 
 	len = payload_len + sizeof(*fih);
-	nodeid = (opc != 0) ? perfuse_get_ino(pu, opc) : PERFUSE_UNKNOWN_INO;
+	if (opc != 0)
+		nodeid = perfuse_get_nodeid(pu, opc);
+	else
+		nodeid = PERFUSE_UNKNOWN_NODEID;
 
 	if (puffs_framebuf_reserve_space(pb, len) != 0)
 		DERR(EX_OSERR, puffs_framebuf_reserve_space failed);



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64

2011-10-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Oct 29 09:16:54 UTC 2011

Added Files:
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64: Makefile.inc config.h
config.m4 gmp-mparam.h gmp.h mp.h

Log Message:
now that ppc64 sort of builds, i can generate at least gmp configury.
thanks christos!


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/Makefile.inc \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/gmp-mparam.h \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/gmp.h \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/mp.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/gcc

2011-10-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Oct 29 09:21:32 UTC 2011

Added Files:
src/external/gpl3/gcc/lib/crtstuff/arch: powerpc64.mk
src/external/gpl3/gcc/lib/libgcc/arch: powerpc64.mk
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/powerpc64: defs.mk
gcov-iov.h
src/external/gpl3/gcc/lib/libgomp/arch/powerpc64: config.h libgomp.spec
libgomp_f.h omp.h
src/external/gpl3/gcc/lib/libiberty/arch/powerpc64: config.h
src/external/gpl3/gcc/lib/libobjc/arch/powerpc64: config.h defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64: c++allocator.h
c++config.h config.h cxxabi_tweaks.h defs.mk gstdint.h
gthr-default.h gthr-posix.h gthr-single.h gthr-tpf.h gthr.h
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64: all-tree.def
auto-host.h bconfig.h bversion.h config.h configargs.h defs.mk
gthr-default.h gtyp-input.list multilib.h plugin-version.h tm.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/powerpc64: config.h
src/external/gpl3/gcc/usr.bin/libdecnumber/arch/powerpc64: config.h

Log Message:
mknative-gcc for powerpc64.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gcc/lib/crtstuff/arch/powerpc64.mk
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gcc/lib/libgcc/arch/powerpc64.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/powerpc64/defs.mk \
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/powerpc64/gcov-iov.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/lib/libgomp/arch/powerpc64/config.h \
src/external/gpl3/gcc/lib/libgomp/arch/powerpc64/libgomp.spec \
src/external/gpl3/gcc/lib/libgomp/arch/powerpc64/libgomp_f.h \
src/external/gpl3/gcc/lib/libgomp/arch/powerpc64/omp.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/lib/libiberty/arch/powerpc64/config.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/lib/libobjc/arch/powerpc64/config.h \
src/external/gpl3/gcc/lib/libobjc/arch/powerpc64/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/c++allocator.h \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/c++config.h \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/config.h \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/cxxabi_tweaks.h \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/defs.mk \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/gstdint.h \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/gthr-default.h \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/gthr-posix.h \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/gthr-single.h \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/gthr-tpf.h \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/gthr.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/all-tree.def \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/auto-host.h \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/bconfig.h \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/bversion.h \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/config.h \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/configargs.h \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/defs.mk \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/gthr-default.h \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/gtyp-input.list \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/multilib.h \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/plugin-version.h \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/tm.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/usr.bin/libcpp/arch/powerpc64/config.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/usr.bin/libdecnumber/arch/powerpc64/config.h

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

2011-10-29 Thread John Nemeth
Module Name:src
Committed By:   jnemeth
Date:   Sat Oct 29 09:58:24 UTC 2011

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

Log Message:
Don't run off the beginning of an array from Maurizio Lombardi.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 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/external/gpl3/binutils

2011-10-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Oct 29 11:05:46 UTC 2011

Modified Files:
src/external/gpl3/binutils/lib/libbfd/arch/powerpc64: bfd_stdint.h
config.h
src/external/gpl3/binutils/usr.bin/common/arch/powerpc64: config.h
defs.mk
src/external/gpl3/binutils/usr.bin/gas/arch/powerpc64: config.h defs.mk
src/external/gpl3/binutils/usr.bin/gprof/arch/powerpc64: defs.mk
gconfig.h
src/external/gpl3/binutils/usr.bin/ld/arch/powerpc64: config.h defs.mk

Log Message:
regenerate binutils for powerpc64.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/binutils/lib/libbfd/arch/powerpc64/bfd_stdint.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/binutils/lib/libbfd/arch/powerpc64/config.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/binutils/usr.bin/common/arch/powerpc64/config.h \
src/external/gpl3/binutils/usr.bin/common/arch/powerpc64/defs.mk
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/binutils/usr.bin/gas/arch/powerpc64/config.h \
src/external/gpl3/binutils/usr.bin/gas/arch/powerpc64/defs.mk
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/binutils/usr.bin/gprof/arch/powerpc64/defs.mk \
src/external/gpl3/binutils/usr.bin/gprof/arch/powerpc64/gconfig.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/binutils/usr.bin/ld/arch/powerpc64/config.h \
src/external/gpl3/binutils/usr.bin/ld/arch/powerpc64/defs.mk

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

2011-10-29 Thread Radoslaw Kujawa
Module Name:src
Committed By:   rkujawa
Date:   Sat Oct 29 11:16:19 UTC 2011

Modified Files:
src/sys/arch/amiga/dev: efa.c efareg.h

Log Message:
Fix style (pointed out by phx).


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

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



CVS commit: src/sys/kern

2011-10-29 Thread Jean-Yves Migeon
Module Name:src
Committed By:   jym
Date:   Sat Oct 29 11:41:32 UTC 2011

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

Log Message:
Fix comment.


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/kern/kern_cpu.c

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



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64

2011-10-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Oct 29 11:42:09 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64: config.m4

Log Message:
make sure to use powerpc64/elf.m4, not powerpc32/elf.m4 here!


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/config.m4

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



CVS commit: src/distrib/sets/lists/modules

2011-10-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Oct 29 11:52:15 UTC 2011

Modified Files:
src/distrib/sets/lists/modules: md.evbppc

Log Message:
mark all these modules with compatmodules as evbppc64 doesn't want them.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/distrib/sets/lists/modules/md.evbppc

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



CVS commit: src/doc

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 29 15:18:21 UTC 2011

Modified Files:
src/doc: HACKS

Log Message:
mention another ppc64 hack.


To generate a diff of this commit:
cvs rdiff -u -r1.118 -r1.119 src/doc/HACKS

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



CVS commit: src/sys/kern

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 29 15:58:38 UTC 2011

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

Log Message:
PR/45539: Greg A. Woods: add support for getrusage(2) memory size statistics


To generate a diff of this commit:
cvs rdiff -u -r1.128 -r1.129 src/sys/kern/kern_clock.c

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



CVS commit: src/lib/libc/arch/powerpc64/sys

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 29 16:03:04 UTC 2011

Modified Files:
src/lib/libc/arch/powerpc64/sys: cerror.S

Log Message:
Sync with other ports: in PIC mode make __cerror hidden; it is not supposed
to be used outside libc.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/arch/powerpc64/sys/cerror.S

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



CVS commit: src/lib/libc/arch/powerpc64/sys

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 29 16:03:34 UTC 2011

Modified Files:
src/lib/libc/arch/powerpc64/sys: brk.S getcontext.S

Log Message:
Everything else uses PIC branches to __cerror except those two...


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/powerpc64/sys/brk.S \
src/lib/libc/arch/powerpc64/sys/getcontext.S

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



CVS commit: src/sys/dev/iscsi

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 29 16:04:39 UTC 2011

Modified Files:
src/sys/dev/iscsi: iscsi.h iscsi_ioctl.h

Log Message:
make all bitfields unsigned int


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/iscsi/iscsi.h \
src/sys/dev/iscsi/iscsi_ioctl.h

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



CVS commit: src/sbin/iscsid

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 29 16:54:50 UTC 2011

Modified Files:
src/sbin/iscsid: iscsid.h iscsid_discover.c iscsid_driverif.c
iscsid_globals.h iscsid_lists.c iscsid_main.c iscsid_targets.c

Log Message:
cleanup some messy casts and type violations.
XXX: There is one piece of code I marked that does not make sense.
Someone should take a look at it.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sbin/iscsid/iscsid.h \
src/sbin/iscsid/iscsid_discover.c src/sbin/iscsid/iscsid_driverif.c \
src/sbin/iscsid/iscsid_globals.h src/sbin/iscsid/iscsid_lists.c \
src/sbin/iscsid/iscsid_main.c src/sbin/iscsid/iscsid_targets.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/gcc/lib/libgcc/libgcc_s

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 29 17:14:12 UTC 2011

Modified Files:
src/external/gpl3/gcc/lib/libgcc/libgcc_s: Makefile

Log Message:
Make the mips softloat special case the same as in the libgcc Makefile.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/lib/libgcc/libgcc_s/Makefile

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



CVS commit: src/sys/arch/m68k

2011-10-29 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Sat Oct 29 18:26:20 UTC 2011

Modified Files:
src/sys/arch/m68k/include: pmap_motorola.h
src/sys/arch/m68k/m68k: pmap_motorola.c

Log Message:
Use pool(9) for struct pv_entry allocations rather than
uvm_km_alloc(9)/uvm_km_free(9) and ancient homegrown pv_page_info structures.

Calling uvm_km_free(9) during pmap_remove(9) could cause rw_lock error
in uvm_unmap1() as noted in PR port-m68k/45519.

NetBSD/x68k (both real X68030 and XM6i emulator) still gets weird panic
(corrupted kernel stack pointer?) on some heavy load:
---
panic: MMU fault
Stopped in pid 363.1 (X68k) at  netbsd:cpu_Debugger+0x6:unlka6
db tr
cpu_Debugger(4012004,8,1cbb528,2a618e0,2a5b000) + 6
db
---
but it also occurs without this change so there might be some more bugs
in m68k pmap...


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/arch/m68k/include/pmap_motorola.h
cvs rdiff -u -r1.62 -r1.63 src/sys/arch/m68k/m68k/pmap_motorola.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/ata

2011-10-29 Thread Jonathan A. Kollasch
Module Name:src
Committed By:   jakllsch
Date:   Sat Oct 29 18:43:58 UTC 2011

Modified Files:
src/sys/dev/ata: atavar.h

Log Message:
Some comment improvements; spelling and grammar.


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 src/sys/dev/ata/atavar.h

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

2011-10-29 Thread Jonathan A. Kollasch
Module Name:src
Committed By:   jakllsch
Date:   Sat Oct 29 18:56:50 UTC 2011

Modified Files:
src/sys/arch/mips/include: cpuregs.h
src/sys/arch/mips/mips: mips_machdep.c

Log Message:
Add Broadcom BCM3302 CPU to the table.


To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 src/sys/arch/mips/include/cpuregs.h
cvs rdiff -u -r1.249 -r1.250 src/sys/arch/mips/mips/mips_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/amiga

2011-10-29 Thread Radoslaw Kujawa
Module Name:src
Committed By:   rkujawa
Date:   Sat Oct 29 19:25:20 UTC 2011

Modified Files:
src/sys/arch/amiga/amiga: amiga_bus_simple_4.c
src/sys/arch/amiga/dev: efa.c

Log Message:
Allow 32-bit transfers for drives which support it. Add missing bus_space 
methods needed for such transfers.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/amiga/amiga/amiga_bus_simple_4.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/amiga/dev/efa.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

2011-10-29 Thread Jean-Yves Migeon
Module Name:src
Committed By:   jym
Date:   Sat Oct 29 20:11:09 UTC 2011

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

Log Message:
Typo fix.


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sys/kern/kern_kthread.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/mips

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 29 20:55:36 UTC 2011

Modified Files:
src/sys/arch/mips/mips: mips_fpu.c

Log Message:
- make noat-at noreorder-reorder sequences consistent.
- add nop hack to fix assembler internal error.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/mips/mips/mips_fpu.c

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



CVS commit: src/doc

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 29 20:59:30 UTC 2011

Modified Files:
src/doc: HACKS

Log Message:
Another binutils workaround


To generate a diff of this commit:
cvs rdiff -u -r1.119 -r1.120 src/doc/HACKS

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

2011-10-29 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sat Oct 29 21:18:28 UTC 2011

Modified Files:
src/external/gpl3/gdb/dist/gdb: shnbsd-tdep.c

Log Message:
shnbsd_get_next_pc: declare displacement as LONGEST and use
regcache_cooked_read_signed() to fetch displacement for braf/bsrf.


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

2011-10-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Oct 29 23:42:45 UTC 2011

Modified Files:
src/external/gpl3/gdb/dist/gdb: configure.tgt

Log Message:
add support for powerpc64-netbsd.
fix support for sh*-netbsd.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/gdb/configure.tgt

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

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Oct 30 00:11:28 UTC 2011

Modified Files:
src/external/gpl3/gdb/bin/psim: Makefile

Log Message:
psim on ppc64 needs libz


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gdb/bin/psim/Makefile

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

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Oct 30 00:14:20 UTC 2011

Added Files:
src/external/gpl3/gdb/lib/libbfd/arch/armeb: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/powerpc64: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libdecnumber/arch/armeb: config.h defs.mk
gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/powerpc64: config.h defs.mk
gstdint.h
src/external/gpl3/gdb/lib/libgdb/arch/armeb: config.h defs.mk init.c
observer.h observer.inc version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64: config.h defs.mk
init.c observer.h observer.inc version.c xml-builtin.c
src/external/gpl3/gdb/lib/libiberty/arch/armeb: config.h defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/powerpc64: config.h defs.mk
src/external/gpl3/gdb/lib/libopcodes/arch/armeb: config.h defs.mk
src/external/gpl3/gdb/lib/libopcodes/arch/powerpc64: config.h defs.mk
src/external/gpl3/gdb/lib/libreadline/arch/armeb: config.h defs.mk
src/external/gpl3/gdb/lib/libreadline/arch/powerpc64: config.h defs.mk
src/external/gpl3/gdb/lib/libsim/arch/powerpc64: build-config.h
cconfig.h config.h

Log Message:
add ppc64 and armeb


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gdb/lib/libbfd/arch/armeb/bfd-in3.h \
src/external/gpl3/gdb/lib/libbfd/arch/armeb/bfd.h \
src/external/gpl3/gdb/lib/libbfd/arch/armeb/bfd_stdint.h \
src/external/gpl3/gdb/lib/libbfd/arch/armeb/bfdver.h \
src/external/gpl3/gdb/lib/libbfd/arch/armeb/config.h \
src/external/gpl3/gdb/lib/libbfd/arch/armeb/defs.mk \
src/external/gpl3/gdb/lib/libbfd/arch/armeb/targmatch.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libbfd/arch/powerpc64/bfd-in3.h \
src/external/gpl3/gdb/lib/libbfd/arch/powerpc64/bfd.h \
src/external/gpl3/gdb/lib/libbfd/arch/powerpc64/bfd_stdint.h \
src/external/gpl3/gdb/lib/libbfd/arch/powerpc64/bfdver.h \
src/external/gpl3/gdb/lib/libbfd/arch/powerpc64/config.h \
src/external/gpl3/gdb/lib/libbfd/arch/powerpc64/defs.mk \
src/external/gpl3/gdb/lib/libbfd/arch/powerpc64/targmatch.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libdecnumber/arch/armeb/config.h \
src/external/gpl3/gdb/lib/libdecnumber/arch/armeb/defs.mk \
src/external/gpl3/gdb/lib/libdecnumber/arch/armeb/gstdint.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libdecnumber/arch/powerpc64/config.h \
src/external/gpl3/gdb/lib/libdecnumber/arch/powerpc64/defs.mk \
src/external/gpl3/gdb/lib/libdecnumber/arch/powerpc64/gstdint.h
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gdb/lib/libgdb/arch/armeb/config.h \
src/external/gpl3/gdb/lib/libgdb/arch/armeb/defs.mk \
src/external/gpl3/gdb/lib/libgdb/arch/armeb/init.c \
src/external/gpl3/gdb/lib/libgdb/arch/armeb/observer.h \
src/external/gpl3/gdb/lib/libgdb/arch/armeb/observer.inc \
src/external/gpl3/gdb/lib/libgdb/arch/armeb/version.c \
src/external/gpl3/gdb/lib/libgdb/arch/armeb/xml-builtin.c
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64/config.h \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64/defs.mk \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64/init.c \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64/observer.h \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64/observer.inc \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64/version.c \
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64/xml-builtin.c
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libiberty/arch/armeb/config.h \
src/external/gpl3/gdb/lib/libiberty/arch/armeb/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libiberty/arch/powerpc64/config.h \
src/external/gpl3/gdb/lib/libiberty/arch/powerpc64/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libopcodes/arch/armeb/config.h \
src/external/gpl3/gdb/lib/libopcodes/arch/armeb/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libopcodes/arch/powerpc64/config.h \
src/external/gpl3/gdb/lib/libopcodes/arch/powerpc64/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libreadline/arch/armeb/config.h \
src/external/gpl3/gdb/lib/libreadline/arch/armeb/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libreadline/arch/powerpc64/config.h \
src/external/gpl3/gdb/lib/libreadline/arch/powerpc64/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libsim/arch/powerpc64/build-config.h \
src/external/gpl3/gdb/lib/libsim/arch/powerpc64/cconfig.h \
src/external/gpl3/gdb/lib/libsim/arch/powerpc64/config.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/config/powerpc

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Oct 30 00:15:24 UTC 2011

Added Files:
src/external/gpl3/gdb/dist/gdb/config/powerpc: ppc64-nbsd.mh

Log Message:
a copy of the ppc one.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/dist/gdb/config/powerpc/ppc64-nbsd.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/lib/libgdb/arch

2011-10-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Oct 30 00:27:52 UTC 2011

Modified Files:
src/external/gpl3/gdb/lib/libgdb/arch/sh3eb: defs.mk
src/external/gpl3/gdb/lib/libgdb/arch/sh3el: defs.mk

Log Message:
regenerate after fixing link-time issues.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gdb/lib/libgdb/arch/sh3eb/defs.mk
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gdb/lib/libgdb/arch/sh3el/defs.mk

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



CVS commit: src/external/gpl3/gcc/dist/gcc/config/rs6000

2011-10-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Oct 30 00:28:26 UTC 2011

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/rs6000: rs6000.c

Log Message:
expand the POWERPC_LINUX checks to also apply to POWERPC_NETBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c

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



CVS commit: src/sys/lib/libz

2011-10-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Oct 30 00:28:57 UTC 2011

Modified Files:
src/sys/lib/libz: Makefile

Log Message:
use LIBISPRIVATE instead of home-grown.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/lib/libz/Makefile

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



CVS commit: src/distrib/utils/sysinst

2011-10-29 Thread Jonathan A. Kollasch
Module Name:src
Committed By:   jakllsch
Date:   Sun Oct 30 00:30:57 UTC 2011

Modified Files:
src/distrib/utils/sysinst: menus.mi

Log Message:
As both of the ns-wide.wide.ad.jp and light.imasy.or.jp IPv6 resolvers
now refuse my queries, replace them with google-public-dns-a.google.com
and google-public-dns-b.google.com.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/distrib/utils/sysinst/menus.mi

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

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Oct 30 01:06:44 UTC 2011

Added Files:
src/external/gpl3/gdb/lib/libbfd/arch/mips64el: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libdecnumber/arch/mips64el: config.h defs.mk
gstdint.h
src/external/gpl3/gdb/lib/libgdb/arch/mips64el: config.h defs.mk init.c
observer.h observer.inc version.c xml-builtin.c
src/external/gpl3/gdb/lib/libiberty/arch/mips64el: config.h defs.mk
src/external/gpl3/gdb/lib/libopcodes/arch/mips64el: config.h defs.mk
src/external/gpl3/gdb/lib/libreadline/arch/mips64el: config.h defs.mk

Log Message:
add mips64el, the last one


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libbfd/arch/mips64el/bfd-in3.h \
src/external/gpl3/gdb/lib/libbfd/arch/mips64el/bfd.h \
src/external/gpl3/gdb/lib/libbfd/arch/mips64el/bfd_stdint.h \
src/external/gpl3/gdb/lib/libbfd/arch/mips64el/bfdver.h \
src/external/gpl3/gdb/lib/libbfd/arch/mips64el/config.h \
src/external/gpl3/gdb/lib/libbfd/arch/mips64el/defs.mk \
src/external/gpl3/gdb/lib/libbfd/arch/mips64el/targmatch.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libdecnumber/arch/mips64el/config.h \
src/external/gpl3/gdb/lib/libdecnumber/arch/mips64el/defs.mk \
src/external/gpl3/gdb/lib/libdecnumber/arch/mips64el/gstdint.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libgdb/arch/mips64el/config.h \
src/external/gpl3/gdb/lib/libgdb/arch/mips64el/defs.mk \
src/external/gpl3/gdb/lib/libgdb/arch/mips64el/init.c \
src/external/gpl3/gdb/lib/libgdb/arch/mips64el/observer.h \
src/external/gpl3/gdb/lib/libgdb/arch/mips64el/observer.inc \
src/external/gpl3/gdb/lib/libgdb/arch/mips64el/version.c \
src/external/gpl3/gdb/lib/libgdb/arch/mips64el/xml-builtin.c
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libiberty/arch/mips64el/config.h \
src/external/gpl3/gdb/lib/libiberty/arch/mips64el/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libopcodes/arch/mips64el/config.h \
src/external/gpl3/gdb/lib/libopcodes/arch/mips64el/defs.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libreadline/arch/mips64el/config.h \
src/external/gpl3/gdb/lib/libreadline/arch/mips64el/defs.mk

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



CVS commit: src/external/lgpl3/gmp

2011-10-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Oct 30 01:50:39 UTC 2011

Added Files:
src/external/lgpl3/gmp: Makefile.netbsd-gmp

Log Message:
makefile frontend to run gmp configure under nbmake-$MACHINE.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/lgpl3/gmp/Makefile.netbsd-gmp

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



CVS commit: src/sys/kern

2011-10-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Oct 30 01:57:40 UTC 2011

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

Log Message:
Back out previous; this should not be done in statclock but when the
allocations change or getrusage(). Plus the += seems wrong, we cannot
keep adding to the stats.


To generate a diff of this commit:
cvs rdiff -u -r1.129 -r1.130 src/sys/kern/kern_clock.c

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



CVS commit: src/lib/libperfuse

2011-10-29 Thread Emmanuel Dreyfus
Module Name:src
Committed By:   manu
Date:   Sun Oct 30 05:11:37 UTC 2011

Modified Files:
src/lib/libperfuse: ops.c perfuse.c perfuse_if.h perfuse_priv.h subr.c

Log Message:
- Fix the confusion between fileno (opaque FUSE reference) and inode
  numbers. fileno must be used when exchanging FUSE messages.
- Do not use kernel name cache anymore, as it caused modification from
  other machines to be invisible.
- Honour name and attribute cache directive from FUSE filesystem


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/lib/libperfuse/ops.c
cvs rdiff -u -r1.22 -r1.23 src/lib/libperfuse/perfuse.c \
src/lib/libperfuse/perfuse_priv.h
cvs rdiff -u -r1.16 -r1.17 src/lib/libperfuse/perfuse_if.h
cvs rdiff -u -r1.13 -r1.14 src/lib/libperfuse/subr.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/perfused

2011-10-29 Thread Emmanuel Dreyfus
Module Name:src
Committed By:   manu
Date:   Sun Oct 30 05:17:41 UTC 2011

Modified Files:
src/usr.sbin/perfused: msg.c

Log Message:
Fix the confusion between nodeid and inode numbers


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/usr.sbin/perfused/msg.c

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