CVS commit: [matt-nb5-mips64] src/sys/arch/mips/mips

2010-01-22 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri Jan 22 08:35:59 UTC 2010

Modified Files:
src/sys/arch/mips/mips [matt-nb5-mips64]: mips_emul.c

Log Message:
Use ufetch/ustore for all user access


To generate a diff of this commit:
cvs rdiff -u -r1.14.78.6 -r1.14.78.7 src/sys/arch/mips/mips/mips_emul.c

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

Modified files:

Index: src/sys/arch/mips/mips/mips_emul.c
diff -u src/sys/arch/mips/mips/mips_emul.c:1.14.78.6 src/sys/arch/mips/mips/mips_emul.c:1.14.78.7
--- src/sys/arch/mips/mips/mips_emul.c:1.14.78.6	Fri Jan 22 07:05:28 2010
+++ src/sys/arch/mips/mips/mips_emul.c	Fri Jan 22 08:35:59 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: mips_emul.c,v 1.14.78.6 2010/01/22 07:05:28 matt Exp $ */
+/*	$NetBSD: mips_emul.c,v 1.14.78.7 2010/01/22 08:35:59 matt Exp $ */
 
 /*
  * Copyright (c) 1999 Shuichiro URATA.  All rights reserved.
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: mips_emul.c,v 1.14.78.6 2010/01/22 07:05:28 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_emul.c,v 1.14.78.7 2010/01/22 08:35:59 matt Exp $");
 
 #include 
 #include 
@@ -104,7 +104,7 @@
 	vaddr_t nextpc;
 
 	if (instpc < MIPS_KSEG0_START)
-		inst.word = fuiword((void *)instpc);
+		inst.word = ufetch_uint32((void *)instpc);
 	else
 		inst.word = *(unsigned *)instpc;
 
@@ -452,7 +452,7 @@
 			return;
 
 		vaddr = frame->f_regs[_R_PC];	/* XXX truncates to 32 bits */
-		inst = fuiword((uint32_t *)vaddr);
+		inst = ufetch_uint32((uint32_t *)vaddr);
 		if (((InstFmt)inst).FRType.op != OP_LWC1)
 			return;
 
@@ -542,7 +542,7 @@
 			return;
 
 		vaddr = frame->f_regs[_R_PC];	/* XXX truncates to 32 bits */
-		inst = fuiword((uint32_t *)vaddr);
+		inst = ufetch_uint32((uint32_t *)vaddr);
 		if (((InstFmt)inst).FRType.op != OP_SWC1)
 			return;
 
@@ -896,7 +896,7 @@
 		return;
 	}
 
-	if (subyte((void *)vaddr, frame->f_regs[(inst>>16)&0x1F]) < 0) {
+	if (ustore_uint8((void *)vaddr, frame->f_regs[(inst>>16)&0x1F]) < 0) {
 		send_sigsegv(vaddr, T_TLB_ST_MISS, frame, cause);
 		return;
 	}
@@ -919,7 +919,7 @@
 		return;
 	}
 
-	if (susword((void *)vaddr, frame->f_regs[(inst>>16)&0x1F]) < 0) {
+	if (ustore_uint16((void *)vaddr, frame->f_regs[(inst>>16)&0x1F]) < 0) {
 		send_sigsegv(vaddr, T_TLB_ST_MISS, frame, cause);
 		return;
 	}



CVS commit: src/sys/kern

2010-01-22 Thread Hubert Feyrer
Module Name:src
Committed By:   hubertf
Date:   Fri Jan 22 08:32:05 UTC 2010

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

Log Message:
Let kernel build when MALLOCLOG is defined but DIAGNOSTIC is not.
Else, hitmlog() is defined but not used, which triggers a warning.


To generate a diff of this commit:
cvs rdiff -u -r1.127 -r1.128 src/sys/kern/kern_malloc.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_malloc.c
diff -u src/sys/kern/kern_malloc.c:1.127 src/sys/kern/kern_malloc.c:1.128
--- src/sys/kern/kern_malloc.c:1.127	Sun Sep 13 18:45:11 2009
+++ src/sys/kern/kern_malloc.c	Fri Jan 22 08:32:05 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_malloc.c,v 1.127 2009/09/13 18:45:11 pooka Exp $	*/
+/*	$NetBSD: kern_malloc.c,v 1.128 2010/01/22 08:32:05 hubertf Exp $	*/
 
 /*
  * Copyright (c) 1987, 1991, 1993
@@ -66,7 +66,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: kern_malloc.c,v 1.127 2009/09/13 18:45:11 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_malloc.c,v 1.128 2010/01/22 08:32:05 hubertf Exp $");
 
 #include 
 #include 
@@ -215,6 +215,7 @@
 		malloclogptr = 0;
 }
 
+#ifdef DIAGNOSTIC
 static void
 hitmlog(void *a)
 {
@@ -271,6 +272,7 @@
 
 #undef PRT
 }
+#endif /* DIAGNOSTIC */
 #endif /* MALLOCLOG */
 
 #ifdef DIAGNOSTIC



CVS commit: [matt-nb5-mips64] src/sys/arch/mips/mips

2010-01-22 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri Jan 22 08:37:08 UTC 2010

Modified Files:
src/sys/arch/mips/mips [matt-nb5-mips64]: fp.S

Log Message:
In N32/N64, deal with the FP load/store as a 64bit quantity


To generate a diff of this commit:
cvs rdiff -u -r1.33.38.6 -r1.33.38.7 src/sys/arch/mips/mips/fp.S

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/fp.S
diff -u src/sys/arch/mips/mips/fp.S:1.33.38.6 src/sys/arch/mips/mips/fp.S:1.33.38.7
--- src/sys/arch/mips/mips/fp.S:1.33.38.6	Sat Sep  5 03:24:21 2009
+++ src/sys/arch/mips/mips/fp.S	Fri Jan 22 08:37:08 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: fp.S,v 1.33.38.6 2009/09/05 03:24:21 matt Exp $	*/
+/*	$NetBSD: fp.S,v 1.33.38.7 2010/01/22 08:37:08 matt Exp $	*/
 
 /*
  * Copyright (c) 1992, 1993
@@ -3218,8 +3218,14 @@
 	andi	ta3, ta3, FPX_REGEVENMASK	# Even regs only
 	PTR_ADDU ta0, ta3
 
+#if defined(__mips_n32) || defined(__mips_n64)
+	FPX_L	ta3, U_PCB_FPREGS+FRAME_FP0(ta0)
+	dsrl	ta0, ta3, 32
+	srl	ta3, ta3, 0
+#else
 	lw	ta3, U_PCB_FPREGS+FRAME_FP0(ta0)
 	lw	ta0, U_PCB_FPREGS+FRAME_FP0+SZFPREG(ta0)
+#endif
 
 	srl	ta1, ta0, 20			# get exponent
 	and	ta1, ta1, 0x7FF
@@ -3353,8 +3359,14 @@
 	andi	t3, t3, FPX_REGEVENMASK		# Even regs only
 	PTR_ADDU t0, t3
 
+#if defined(__mips_n32) || defined(__mips_n64)
+	FPX_L	t3, U_PCB_FPREGS+FRAME_FP0(t0)
+	dsrl	t0, t3, 32
+	srl	t3, t3, 0
+#else
 	lw	t3, U_PCB_FPREGS+FRAME_FP0(t0)
 	lw	t0, U_PCB_FPREGS+FRAME_FP0+SZFPREG(t0)
+#endif
 
 	srl	t1, t0, 20			# get exponent
 	and	t1, t1, 0x7FF
@@ -3695,8 +3707,14 @@
 	andi	t1, t1, FPX_REGEVENMASK			# Even regs only
 	PTR_ADDU t0, ta2, t1
 
+#if defined(__mips_n32) || defined(__mips_n64)
+	FPX_L	t3, U_PCB_FPREGS+FRAME_FP0(t0)
+	dsrl	t0, t3, 32
+	srl	t3, t3, 0
+#else
 	FPX_L	t3, U_PCB_FPREGS+FRAME_FP0(t0)
 	FPX_L	t0, U_PCB_FPREGS+FRAME_FP0+SZFPREG(t0)
+#endif
 
 	srl	t1, t0, 20			# get exponent
 	and	t1, t1, 0x7FF
@@ -3707,8 +3725,14 @@
 	andi	ta0, ta0, FPX_REGEVENMASK		# Even regs only
 	PTR_ADDU ta2, ta2, ta0
 
+#if defined(__mips_n32) || defined(__mips_n64)
+	FPX_L	ta3, U_PCB_FPREGS+FRAME_FP0(ta2)
+	dsrl	ta0, ta3, 32
+	srl	ta3, ta3, 0
+#else
 	lw	ta3, U_PCB_FPREGS+FRAME_FP0(ta2)
 	lw	ta0, U_PCB_FPREGS+FRAME_FP0+SZFPREG(ta2)
+#endif
 
 	srl	ta1, ta0, 20			# get exponent
 	and	ta1, ta1, 0x7FF
@@ -4048,8 +4072,14 @@
 
 	andi	t1, t1, FPX_REGEVENMASK
 	PTR_ADDU t2, t2, t1
+#if defined(__mips_n32) || defined(__mips_n64)
+	dsll	t0, t0, 32
+	or	t0, t0, t3
+	FPX_S	t0, U_PCB_FPREGS+FRAME_FP0(t2)
+#else
 	FPX_S	t3, U_PCB_FPREGS+FRAME_FP0(t2)
 	FPX_S	t0, U_PCB_FPREGS+FRAME_FP0+4(t2)
+#endif
 	j	ra
 #else
 	sll	t0, t0, 31			# set sign



CVS commit: [matt-nb5-mips64] src/sys/uvm

2010-01-22 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri Jan 22 08:54:41 UTC 2010

Modified Files:
src/sys/uvm [matt-nb5-mips64]: uvm_pglist.c

Log Message:
Remove some optimizations since they actually don't do the right thing.
We never want to test the starting page first since it doesn't really give
use any good information that we can use for the next pass.


To generate a diff of this commit:
cvs rdiff -u -r1.42.16.2 -r1.42.16.3 src/sys/uvm/uvm_pglist.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/uvm/uvm_pglist.c
diff -u src/sys/uvm/uvm_pglist.c:1.42.16.2 src/sys/uvm/uvm_pglist.c:1.42.16.3
--- src/sys/uvm/uvm_pglist.c:1.42.16.2	Fri Jan 22 06:05:16 2010
+++ src/sys/uvm/uvm_pglist.c	Fri Jan 22 08:54:41 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_pglist.c,v 1.42.16.2 2010/01/22 06:05:16 snj Exp $	*/
+/*	$NetBSD: uvm_pglist.c,v 1.42.16.3 2010/01/22 08:54:41 matt Exp $	*/
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: uvm_pglist.c,v 1.42.16.2 2010/01/22 06:05:16 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_pglist.c,v 1.42.16.3 2010/01/22 08:54:41 matt Exp $");
 
 #include 
 #include 
@@ -187,41 +187,22 @@
 		__func__, ps, tryidx, end, skip, align);
 #endif
 		/*
-		 * Test both the ending and starting pages to see if they are
-		 * both free.  If the ending and starting pages are same page,
-		 * we only test one of them.  If the pages aren't free, there
-		 * is no reason to continue this iteration so advance to the
-		 * next address and try again.
-		 */
-		if (VM_PAGE_IS_FREE(&pgs[end - 1]) == 0
-		|| end - 1 == tryidx + skip
-		|| VM_PAGE_IS_FREE(&pgs[tryidx + skip]) == 0) {
-			try += roundup(num, align);
-			skip = 0;
-			continue;
-		}
-
-		/*
-		 * We start at the end since if we find a non-free page, it
-		 * makes no sense to ever test any pages before it since the
-		 * conditions for this allocation could never be satisified.
-		 *
-		 * Also since we have "vetted" these free pages, if this
-		 * iteration fails, we may be able to skip testing those pages
-		 * in the next iteration.
+		 * We start at the end and work backwards since if we find a
+		 * non-free page, it makes no sense to continue.
 		 *
-		 * The loop condition will never be satisfied if we've already
-		 * found enough pages (either one or two).
+		 * But on the plus size we have "vetted" some number of free
+		 * pages.  If this iteration fails, we may be able to skip
+		 * testing most of those pages again in the next pass.
 		 */
-		for (idx = end - 2; idx >= tryidx + skip + 1; idx--) {
+		for (idx = end - 1; idx >= tryidx + skip; idx--) {
 			if (VM_PAGE_IS_FREE(&pgs[idx]) == 0) {
 ok = false;
 break;
 			}
 
 #ifdef DEBUG
-			idxpa = VM_PAGE_TO_PHYS(&pgs[idx]);
 			if (idx > tryidx) {
+idxpa = VM_PAGE_TO_PHYS(&pgs[idx]);
 lastidxpa = VM_PAGE_TO_PHYS(&pgs[idx - 1]);
 if ((lastidxpa + PAGE_SIZE) != idxpa) {
 	/*



CVS commit: src/sys

2010-01-22 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Jan 22 08:56:06 UTC 2010

Modified Files:
src/sys/arch/algor/algor: autoconf.c
src/sys/arch/arm/at91: at91emac.c
src/sys/arch/arm/ep93xx: epe.c
src/sys/arch/evbarm/armadillo: armadillo9_machdep.c
src/sys/arch/evbarm/mpcsa: mpcsa_machdep.c
src/sys/arch/evbmips/adm5120: autoconf.c machdep.c
src/sys/arch/evbmips/alchemy: autoconf.c
src/sys/arch/iyonix/iyonix: autoconf.c
src/sys/arch/mips/adm5120/dev: if_admsw.c
src/sys/arch/mips/alchemy/dev: if_aumac.c
src/sys/arch/mips/atheros: ar5312.c ar5315.c
src/sys/arch/mips/atheros/dev: if_ae.c
src/sys/arch/powerpc/ibm4xx: ibm4xx_autoconf.c
src/sys/arch/powerpc/ibm4xx/dev: if_emac.c
src/sys/dev/pci: if_wm.c

Log Message:
Unify the name of the device property to hold a MAC address - there was
no clear majority for either "mac-addr" vs. "mac-address", but a quick
gallup poll among developers selected the latter.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/algor/algor/autoconf.c
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/at91/at91emac.c
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/arm/ep93xx/epe.c
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/evbarm/armadillo/armadillo9_machdep.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/evbarm/mpcsa/mpcsa_machdep.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/evbmips/adm5120/autoconf.c
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/evbmips/adm5120/machdep.c
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/evbmips/alchemy/autoconf.c
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/iyonix/iyonix/autoconf.c
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/mips/adm5120/dev/if_admsw.c
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/mips/alchemy/dev/if_aumac.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/mips/atheros/ar5312.c
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/mips/atheros/ar5315.c
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/mips/atheros/dev/if_ae.c
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/powerpc/ibm4xx/ibm4xx_autoconf.c
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/powerpc/ibm4xx/dev/if_emac.c
cvs rdiff -u -r1.194 -r1.195 src/sys/dev/pci/if_wm.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/algor/algor/autoconf.c
diff -u src/sys/arch/algor/algor/autoconf.c:1.17 src/sys/arch/algor/algor/autoconf.c:1.18
--- src/sys/arch/algor/algor/autoconf.c:1.17	Mon Apr 28 20:23:10 2008
+++ src/sys/arch/algor/algor/autoconf.c	Fri Jan 22 08:56:04 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: autoconf.c,v 1.17 2008/04/28 20:23:10 martin Exp $	*/
+/*	$NetBSD: autoconf.c,v 1.18 2010/01/22 08:56:04 martin Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.17 2008/04/28 20:23:10 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.18 2010/01/22 08:56:04 martin Exp $");
 
 #include "opt_algor_p4032.h"
 #include "opt_algor_p5064.h"
@@ -115,7 +115,7 @@
 			algor_ethaddr, ETHER_ADDR_LEN);
 			KASSERT(pd != NULL);
 			if (prop_dictionary_set(device_properties(dev),
-		"mac-addr", pd) == false) {
+		"mac-address", pd) == false) {
 printf("WARNING: unable to set mac-addr "
 "property for %s\n", dev->dv_xname);
 			}

Index: src/sys/arch/arm/at91/at91emac.c
diff -u src/sys/arch/arm/at91/at91emac.c:1.7 src/sys/arch/arm/at91/at91emac.c:1.8
--- src/sys/arch/arm/at91/at91emac.c:1.7	Tue Jan 19 22:06:19 2010
+++ src/sys/arch/arm/at91/at91emac.c	Fri Jan 22 08:56:04 2010
@@ -1,5 +1,5 @@
-/*	$Id: at91emac.c,v 1.7 2010/01/19 22:06:19 pooka Exp $	*/
-/*	$NetBSD: at91emac.c,v 1.7 2010/01/19 22:06:19 pooka Exp $	*/
+/*	$Id: at91emac.c,v 1.8 2010/01/22 08:56:04 martin Exp $	*/
+/*	$NetBSD: at91emac.c,v 1.8 2010/01/22 08:56:04 martin Exp $	*/
 
 /*
  * Copyright (c) 2007 Embedtronics Oy
@@ -33,7 +33,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: at91emac.c,v 1.7 2010/01/19 22:06:19 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: at91emac.c,v 1.8 2010/01/22 08:56:04 martin Exp $");
 
 #include 
 #include 
@@ -171,7 +171,7 @@
 	EMAC_WRITE(ETH_RSR, (u & (ETH_RSR_OVR|ETH_RSR_REC|ETH_RSR_BNA)));
 
 	/* Fetch the Ethernet address from property if set. */
-	enaddr = prop_dictionary_get(device_properties(self), "mac-addr");
+	enaddr = prop_dictionary_get(device_properties(self), "mac-address");
 
 	if (enaddr != NULL) {
 		KASSERT(prop_object_type(enaddr) == PROP_TYPE_DATA);

Index: src/sys/arch/arm/ep93xx/epe.c
diff -u src/sys/arch/arm/ep93xx/epe.c:1.23 src/sys/arch/arm/ep93xx/epe.c:1.24
--- src/sys/arch/arm/ep93xx/epe.c:1.23	Tue Jan 19 22:06:19 2010
+++ src/sys/arch/arm/ep93xx/epe.c	Fri Jan 22 08:56:04 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: epe.c,v 1.23 2010/01/19 22:06:19 pooka Exp $	*/
+/*	$NetBSD: epe.c,v 1.24 2010/01/22 08:56:04 martin Exp $	*/
 
 /*
  * Copyright (c) 2004 Jesse Off
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD:

CVS commit: src/share/man/man9

2010-01-22 Thread Hubert Feyrer
Module Name:src
Committed By:   hubertf
Date:   Fri Jan 22 09:18:07 UTC 2010

Modified Files:
src/share/man/man9: opencrypto.9

Log Message:
Document sysctls


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/share/man/man9/opencrypto.9

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

Modified files:

Index: src/share/man/man9/opencrypto.9
diff -u src/share/man/man9/opencrypto.9:1.8 src/share/man/man9/opencrypto.9:1.9
--- src/share/man/man9/opencrypto.9:1.8	Tue Dec  8 09:23:06 2009
+++ src/share/man/man9/opencrypto.9	Fri Jan 22 09:18:07 2010
@@ -1,5 +1,5 @@
 .\"	$OpenBSD: crypto.9,v 1.25 2003/07/11 13:47:41 jmc Exp $
-.\"	$NetBSD: opencrypto.9,v 1.8 2009/12/08 09:23:06 mbalmer Exp $
+.\"	$NetBSD: opencrypto.9,v 1.9 2010/01/22 09:18:07 hubertf Exp $
 .\"
 .\" The author of this man page is Angelos D. Keromytis (ange...@cis.upenn.edu)
 .\"
@@ -16,7 +16,7 @@
 .\" MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR
 .\" PURPOSE.
 .\"
-.Dd December 20, 2003
+.Dd January 1, 2010
 .Dt OPENCRYPTO 9
 .Os
 .Sh NAME
@@ -324,7 +324,8 @@
 For MAC algorithms, this is where the result of the keyed hash will be
 inserted.
 .It Fa crd_flags
-The following flags are defined:
+For adjusting general operation from userland,
+the following flags are defined:
 .Bl -tag -width CRD_F_IV_EXPLICIT
 .It Dv CRD_F_ENCRYPT
 For encryption algorithms, this bit is set when encryption is required
@@ -429,6 +430,28 @@
 .It Fa krp_callback
 Callback called on completion of a keying operation.
 .El
+.Pp
+The following sysctl entries exist to adjust 
+the behaviour of the system from userland:
+.Bl -tag -width kern.cryptodevallowsoft
+.It kern.usercrypto
+Allow (1) or forbid (0) userland acces to 
+.Pa /dev/crypto .
+.It kern.userasymcrypto
+Allow (1) or forbid (0) userland acces to 
+do asymmetric crypto requests.
+.It kern.cryptodevallowsoft
+Enable/disable access to hardware versus software operations:
+.Bl -tag -width xxx
+.It < 0
+Force userlevel requests to use software operations, always.
+.It = 0
+Use hardware if present, grant userlevel requests for non-accelerated
+operations (handling the latter in software).
+.It > 0
+Allow user requests only for operations which are hardware-accelerated.
+.El
+.El
 .Sh DRIVER-SIDE API
 The
 .Fn crypto_get_driverid ,
@@ -559,9 +582,11 @@
 .Fa crp_etype
 field.
 .Sh FILES
-.Bl -tag -width sys/crypto/crypto.c
-.It Pa sys/crypto/crypto.c
+.Bl -tag -width sys/opencrypto/crypto.c
+.It Pa sys/opencrypto/crypto.c
 most of the framework code
+.It Pa sys/crypto
+crypto algorithm implementations
 .El
 .Sh SEE ALSO
 .Xr ipsec 4 ,



CVS commit: src/share/man/man9

2010-01-22 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Fri Jan 22 10:28:08 UTC 2010

Modified Files:
src/share/man/man9: opencrypto.9

Log Message:
Fix typo. Make HTML-ready. Remove trailing whitespace. Add dot in
abbreviation.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/share/man/man9/opencrypto.9

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

Modified files:

Index: src/share/man/man9/opencrypto.9
diff -u src/share/man/man9/opencrypto.9:1.9 src/share/man/man9/opencrypto.9:1.10
--- src/share/man/man9/opencrypto.9:1.9	Fri Jan 22 09:18:07 2010
+++ src/share/man/man9/opencrypto.9	Fri Jan 22 10:28:08 2010
@@ -1,5 +1,5 @@
 .\"	$OpenBSD: crypto.9,v 1.25 2003/07/11 13:47:41 jmc Exp $
-.\"	$NetBSD: opencrypto.9,v 1.9 2010/01/22 09:18:07 hubertf Exp $
+.\"	$NetBSD: opencrypto.9,v 1.10 2010/01/22 10:28:08 wiz Exp $
 .\"
 .\" The author of this man page is Angelos D. Keromytis (ange...@cis.upenn.edu)
 .\"
@@ -105,7 +105,7 @@
 
 struct cryptkop {
 	TAILQ_ENTRY(cryptkop) krp_next;
-u_int  krp_op; /* ie. CRK_MOD_EXP or other */
+u_int  krp_op; /* i.e. CRK_MOD_EXP or other */
 u_int  krp_status; /* return status */
 u_shortkrp_iparams;/* # of input parameters */
 u_shortkrp_oparams;/* # of output parameters */
@@ -431,24 +431,24 @@
 Callback called on completion of a keying operation.
 .El
 .Pp
-The following sysctl entries exist to adjust 
+The following sysctl entries exist to adjust
 the behaviour of the system from userland:
 .Bl -tag -width kern.cryptodevallowsoft
 .It kern.usercrypto
-Allow (1) or forbid (0) userland acces to 
+Allow (1) or forbid (0) userland access to
 .Pa /dev/crypto .
 .It kern.userasymcrypto
-Allow (1) or forbid (0) userland acces to 
+Allow (1) or forbid (0) userland access to
 do asymmetric crypto requests.
 .It kern.cryptodevallowsoft
 Enable/disable access to hardware versus software operations:
 .Bl -tag -width xxx
-.It < 0
+.It \*[Lt] 0
 Force userlevel requests to use software operations, always.
 .It = 0
 Use hardware if present, grant userlevel requests for non-accelerated
 operations (handling the latter in software).
-.It > 0
+.It \*[Gt] 0
 Allow user requests only for operations which are hardware-accelerated.
 .El
 .El



CVS commit: src/external/bsd/pcc/dist/pcc

2010-01-22 Thread Iain Hibbert
Module Name:src
Committed By:   plunky
Date:   Fri Jan 22 11:08:40 UTC 2010

Modified Files:
src/external/bsd/pcc/dist/pcc/cc: Makefile.in
src/external/bsd/pcc/dist/pcc/f77: Makefile.in

Log Message:
execute lists of commands in sub-shells so that the cwd doesn't get
not changed between commands

(nbmake will execute all commands in the same context when given -j)

this allows HAVE_PCC=yes tools build to install the pcc files


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/bsd/pcc/dist/pcc/cc/Makefile.in
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/bsd/pcc/dist/pcc/f77/Makefile.in

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

Modified files:

Index: src/external/bsd/pcc/dist/pcc/cc/Makefile.in
diff -u src/external/bsd/pcc/dist/pcc/cc/Makefile.in:1.1.1.1 src/external/bsd/pcc/dist/pcc/cc/Makefile.in:1.2
--- src/external/bsd/pcc/dist/pcc/cc/Makefile.in:1.1.1.1	Sun Aug 24 05:33:01 2008
+++ src/external/bsd/pcc/dist/pcc/cc/Makefile.in	Fri Jan 22 11:08:40 2010
@@ -1,4 +1,4 @@
-#	$Id: Makefile.in,v 1.1.1.1 2008/08/24 05:33:01 gmcgarry Exp $
+#	$Id: Makefile.in,v 1.2 2010/01/22 11:08:40 plunky Exp $
 #
 # Makefile.in for top-level of pcc.
 #
@@ -17,19 +17,19 @@
 all: ${SUBDIR}
 
 install:
-	cd cc && ${MAKE} install
-	cd cpp && ${MAKE} install
-	cd ccom && ${MAKE} install
+	(cd cc && ${MAKE} install)
+	(cd cpp && ${MAKE} install)
+	(cd ccom && ${MAKE} install)
 
 clean:
-	cd cc && ${MAKE} clean
-	cd cpp && ${MAKE} clean
-	cd ccom && ${MAKE} clean
+	(cd cc && ${MAKE} clean)
+	(cd cpp && ${MAKE} clean)
+	(cd ccom && ${MAKE} clean)
 
 distclean:
-	cd cc && ${MAKE} distclean
-	cd cpp && ${MAKE} distclean
-	cd ccom && ${MAKE} distclean
+	(cd cc && ${MAKE} distclean)
+	(cd cpp && ${MAKE} distclean)
+	(cd ccom && ${MAKE} distclean)
 	/bin/rm -rf Makefile config.log stamp-h1 config.status \
 	configure.lineno config.h autom4te.cache
 

Index: src/external/bsd/pcc/dist/pcc/f77/Makefile.in
diff -u src/external/bsd/pcc/dist/pcc/f77/Makefile.in:1.1.1.1 src/external/bsd/pcc/dist/pcc/f77/Makefile.in:1.2
--- src/external/bsd/pcc/dist/pcc/f77/Makefile.in:1.1.1.1	Sun Aug 24 05:33:05 2008
+++ src/external/bsd/pcc/dist/pcc/f77/Makefile.in	Fri Jan 22 11:08:40 2010
@@ -1,4 +1,4 @@
-#	$Id: Makefile.in,v 1.1.1.1 2008/08/24 05:33:05 gmcgarry Exp $
+#	$Id: Makefile.in,v 1.2 2010/01/22 11:08:40 plunky Exp $
 #
 # Makefile.in for top-level of pcc.
 #
@@ -16,16 +16,16 @@
 all: ${SUBDIR}
 
 install:
-	cd f77 && ${MAKE} install
-	cd fcom && ${MAKE} install
+	(cd f77 && ${MAKE} install)
+	(cd fcom && ${MAKE} install)
 
 clean:
-	cd f77 && ${MAKE} clean
-	cd fcom && ${MAKE} clean
+	(cd f77 && ${MAKE} clean)
+	(cd fcom && ${MAKE} clean)
 
 distclean:
-	cd f77 && ${MAKE} distclean
-	cd fcom && ${MAKE} distclean
+	(cd f77 && ${MAKE} distclean)
+	(cd fcom && ${MAKE} distclean)
 	/bin/rm -rf Makefile config.log stamp-h1 config.status \
 	configure.lineno config.h autom4te.cache
 



CVS commit: src/sys/dev/pci

2010-01-22 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Fri Jan 22 14:34:34 UTC 2010

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

Log Message:
Remove port-specific code for determining MAC address, and use device
properties instead (c.f. gem(4) and hme(4)).


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/pci/if_cas.c

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

Modified files:

Index: src/sys/dev/pci/if_cas.c
diff -u src/sys/dev/pci/if_cas.c:1.4 src/sys/dev/pci/if_cas.c:1.5
--- src/sys/dev/pci/if_cas.c:1.4	Tue Jan 19 22:07:00 2010
+++ src/sys/dev/pci/if_cas.c	Fri Jan 22 14:34:34 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_cas.c,v 1.4 2010/01/19 22:07:00 pooka Exp $	*/
+/*	$NetBSD: if_cas.c,v 1.5 2010/01/22 14:34:34 jdc Exp $	*/
 /*	$OpenBSD: if_cas.c,v 1.29 2009/11/29 16:19:38 kettenis Exp $	*/
 
 /*
@@ -44,7 +44,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_cas.c,v 1.4 2010/01/19 22:07:00 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_cas.c,v 1.5 2010/01/22 14:34:34 jdc Exp $");
 
 #include "opt_inet.h"
 
@@ -90,26 +90,11 @@
 #include 
 #include 
 #include 
+#include 
 
 #include 
 #include 
 
-/* XXX Should use Properties when that's fleshed out. */
-#ifdef macppc
-#include 
-#endif /* macppc */
-#ifdef __sparc__
-#include 
-#endif
-
-#ifndef CAS_USE_LOCAL_MAC_ADDRESS
-#if defined (macppc) || defined (__sparc__)
-#define CAS_USE_LOCAL_MAC_ADDRESS	0	/* use system-wide address */
-#else
-#define CAS_USE_LOCAL_MAC_ADDRESS	1
-#endif
-#endif
-
 #define TRIES	1
 
 static bool	cas_estintr(struct cas_softc *sc, int);
@@ -127,9 +112,7 @@
 cas_match, cas_attach, cas_detach, NULL, NULL, NULL,
 DVF_DETACH_SHUTDOWN);
 
-#if CAS_USE_LOCAL_MAC_ADDRESS
 int	cas_pci_enaddr(struct cas_softc *, struct pci_attach_args *, uint8_t *);
-#endif
 
 void		cas_config(struct cas_softc *, const uint8_t *);
 void		cas_start(struct ifnet *);
@@ -194,7 +177,6 @@
 	return 0;
 }
 
-#if CAS_USE_LOCAL_MAC_ADDRESS
 #define	PROMHDR_PTR_DATA	0x18
 #define	PROMDATA_PTR_VPD	0x08
 #define	PROMDATA_DATA2		0x0a
@@ -307,7 +289,7 @@
 continue;
 			desc += strlen("local-mac-address") + 1;
 	
-			memcpy(enaddr, enp, ETHER_ADDR_LEN);
+			memcpy(enaddr, desc, ETHER_ADDR_LEN);
 			rv = 0;
 		}
 		break;
@@ -326,7 +308,6 @@
 
 	return (rv);
 }
-#endif /* CAS_USE_LOCAL_MAC_ADDRESS */
 
 void
 cas_attach(device_t parent, device_t self, void *aux)
@@ -334,6 +315,7 @@
 	struct pci_attach_args *pa = aux;
 	struct cas_softc *sc = device_private(self);
 	char devinfo[256];
+	prop_data_t data;
 	uint8_t enaddr[ETHER_ADDR_LEN];
 
 	sc->sc_dev = self;
@@ -350,27 +332,11 @@
 		return;
 	}
 
-#if CAS_USE_LOCAL_MAC_ADDRESS
-	if (cas_pci_enaddr(sc, pa, enaddr) != 0)
+	if ((data = prop_dictionary_get(device_properties(sc->sc_dev),
+	"mac-address")) != NULL)
+		memcpy(enaddr, prop_data_data_nocopy(data), ETHER_ADDR_LEN);
+	else if (cas_pci_enaddr(sc, pa, enaddr) != 0)
 		aprint_error_dev(sc->sc_dev, "no Ethernet address found\n");
-#endif
-#ifdef __sparc64__
-	prom_getether(PCITAG_NODE(pa->pa_tag), enaddr);
-#else
-#ifdef macppc
-	{
-		int node;
-
-		node = pcidev_to_ofdev(pa->pa_pc, pa->pa_tag);
-		if (node == 0) {
-			aprint_error_dev(sc->sc_dev, "unable to locate OpenFirmware node\n");
-			return;
-		}
-
-		OF_getprop(node, "local-mac-address", enaddr, sizeof(enaddr));
-	}
-#endif /* macppc */
-#endif /* __sparc__ */
 
 	sc->sc_burst = 16;	/* XXX */
 



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

2010-01-22 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Jan 22 16:11:26 UTC 2010

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

Log Message:
Recognize ie @ vme as a network device.


To generate a diff of this commit:
cvs rdiff -u -r1.238 -r1.239 src/sys/arch/sparc/sparc/autoconf.c

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

Modified files:

Index: src/sys/arch/sparc/sparc/autoconf.c
diff -u src/sys/arch/sparc/sparc/autoconf.c:1.238 src/sys/arch/sparc/sparc/autoconf.c:1.239
--- src/sys/arch/sparc/sparc/autoconf.c:1.238	Wed Jan 20 22:54:22 2010
+++ src/sys/arch/sparc/sparc/autoconf.c	Fri Jan 22 16:11:26 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: autoconf.c,v 1.238 2010/01/20 22:54:22 martin Exp $ */
+/*	$NetBSD: autoconf.c,v 1.239 2010/01/22 16:11:26 martin Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -48,7 +48,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.238 2010/01/20 22:54:22 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.239 2010/01/22 16:11:26 martin Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -1600,7 +1600,6 @@
 		ofnode = PCITAG_NODE(pa->pa_tag);
 		break;
 	}
-	if (!ofnode) return;
 
 	prom_getether(ofnode, eaddr);
 	dict = device_properties(dev);
@@ -1783,7 +1782,8 @@
 		}
 	} else if (device_is_a(dev, "le") ||
 		   device_is_a(dev, "hme") ||
-		   device_is_a(dev, "be")) {
+		   device_is_a(dev, "be") ||
+		   device_is_a(dev, "ie")) {
 
 		set_network_props(dev, aux);
 



CVS commit: src/sys/dev/vme

2010-01-22 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Jan 22 16:12:41 UTC 2010

Modified Files:
src/sys/dev/vme: if_ie_vme.c

Log Message:
Remove sparc specific code, use device properties instead.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/vme/if_ie_vme.c

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

Modified files:

Index: src/sys/dev/vme/if_ie_vme.c
diff -u src/sys/dev/vme/if_ie_vme.c:1.27 src/sys/dev/vme/if_ie_vme.c:1.28
--- src/sys/dev/vme/if_ie_vme.c:1.27	Tue May 12 14:47:27 2009
+++ src/sys/dev/vme/if_ie_vme.c	Fri Jan 22 16:12:41 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_ie_vme.c,v 1.27 2009/05/12 14:47:27 cegger Exp $	*/
+/*	$NetBSD: if_ie_vme.c,v 1.28 2010/01/22 16:12:41 martin Exp $	*/
 
 /*-
  * Copyright (c) 1995 Charles D. Cranor
@@ -145,7 +145,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_ie_vme.c,v 1.27 2009/05/12 14:47:27 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ie_vme.c,v 1.28 2010/01/22 16:12:41 martin Exp $");
 
 #include 
 #include 
@@ -162,9 +162,6 @@
 
 #include 
 #include 
-#ifdef __sparc__
-#include 
-#endif
 #include 
 
 #include 
@@ -476,7 +473,7 @@
 	vme_size_t memsize;
 	vme_mapresc_t resc;
 	int lcv;
-
+	prop_data_t eaddrprop;
 	vme_am_t mod;
 
 	/*
@@ -567,9 +564,11 @@
 
 	printf("\n%s:", device_xname(self));
 
-#ifdef __sparc__
-	prom_getether(0, myaddr);
-#endif
+	eaddrprop = prop_dictionary_get(device_properties(self), "mac-address");
+	if (eaddrprop != NULL && prop_data_size(eaddrprop) == ETHER_ADDR_LEN)
+		memcpy(myaddr, prop_data_data_nocopy(eaddrprop),
+			ETHER_ADDR_LEN);
+
 	i82586_attach(sc, "multibus/vme", myaddr, media, NMEDIA, media[0]);
 
 	vme_intr_map(ct, va->ilevel, va->ivector, &ih);



CVS commit: src/usr.sbin/wpa/wpa_supplicant

2010-01-22 Thread Stephen Borrill
Module Name:src
Committed By:   sborrill
Date:   Fri Jan 22 16:41:57 UTC 2010

Modified Files:
src/usr.sbin/wpa/wpa_supplicant: Makefile wpa_supplicant.8

Log Message:
Enable CONFIG_DEBUG_FILE option to allow debug messages to be sent to
a file instead of stdout.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/usr.sbin/wpa/wpa_supplicant/Makefile
cvs rdiff -u -r1.5 -r1.6 src/usr.sbin/wpa/wpa_supplicant/wpa_supplicant.8

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/wpa/wpa_supplicant/Makefile
diff -u src/usr.sbin/wpa/wpa_supplicant/Makefile:1.11 src/usr.sbin/wpa/wpa_supplicant/Makefile:1.12
--- src/usr.sbin/wpa/wpa_supplicant/Makefile:1.11	Fri Dec 12 21:41:04 2008
+++ src/usr.sbin/wpa/wpa_supplicant/Makefile	Fri Jan 22 16:41:57 2010
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2008/12/12 21:41:04 christos Exp $
+# $NetBSD: Makefile,v 1.12 2010/01/22 16:41:57 sborrill Exp $
 
 .include "${.CURDIR}/../Makefile.inc"
 
@@ -25,6 +25,7 @@
 
 CPPFLAGS+= -DCONFIG_DRIVER_BSD
 CPPFLAGS+= -DCONFIG_CTRL_IFACE
+CPPFLAGS+= -DCONFIG_DEBUG_FILE
 DPADD+=	${LIBPCAP}
 LDADD+=	-lpcap
 

Index: src/usr.sbin/wpa/wpa_supplicant/wpa_supplicant.8
diff -u src/usr.sbin/wpa/wpa_supplicant/wpa_supplicant.8:1.5 src/usr.sbin/wpa/wpa_supplicant/wpa_supplicant.8:1.6
--- src/usr.sbin/wpa/wpa_supplicant/wpa_supplicant.8:1.5	Wed Jun 28 15:06:59 2006
+++ src/usr.sbin/wpa/wpa_supplicant/wpa_supplicant.8	Fri Jan 22 16:41:57 2010
@@ -1,4 +1,4 @@
-.\" $NetBSD: wpa_supplicant.8,v 1.5 2006/06/28 15:06:59 drochner Exp $
+.\" $NetBSD: wpa_supplicant.8,v 1.6 2010/01/22 16:41:57 sborrill Exp $
 .\"
 .\" Copyright (c) 2005 Sam Leffler 
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" Based on:
 .\" $FreeBSD: /repoman/r/ncvs/src/usr.sbin/wpa/wpa_supplicant/wpa_supplicant.8,v 1.2 2005/06/27 06:40:43 ru Exp $
 .\"
-.Dd October 1, 2005
+.Dd January 22, 2010
 .Dt WPA_SUPPLICANT 8
 .Os
 .Sh NAME
@@ -37,6 +37,7 @@
 .Nm
 .Op Fl BdehLqvw
 .Fl i Ar ifname
+.Fl f Ar debug-file
 .Fl c Ar config-file
 .Op Fl N i Ar ifname Fl c Ar config-file ...
 .Sh DESCRIPTION
@@ -99,10 +100,18 @@
 .It Fl d
 Enable debugging messages.
 If this option is supplied twice, more verbose messages are displayed.
+Messages are sent to stdout by default, even when daemonised.
+This can be changed with the
+.Fl f
+flag.
 .It Fl e
 Use an external IEEE 802.1X Supplicant program and disable the
 internal Supplicant.
 This option is not normally used.
+.It Fl f
+Specifies a file to send debug messages to when enabled with the
+.Fl d
+flag.
 .It Fl h
 Show help text.
 .It Fl K



CVS commit: src/share/man/man9

2010-01-22 Thread David Young
Module Name:src
Committed By:   dyoung
Date:   Fri Jan 22 20:11:16 UTC 2010

Added Files:
src/share/man/man9: percpu.9

Log Message:
Add a manual page for per-CPU storage.  Somebody should read this to
make sure I've described it correctly and intelligibly.

TBD: hook this up in the Makefile and in the set lists.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/share/man/man9/percpu.9

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

Added files:

Index: src/share/man/man9/percpu.9
diff -u /dev/null src/share/man/man9/percpu.9:1.1
--- /dev/null	Fri Jan 22 20:11:16 2010
+++ src/share/man/man9/percpu.9	Fri Jan 22 20:11:16 2010
@@ -0,0 +1,180 @@
+.\" $NetBSD: percpu.9,v 1.1 2010/01/22 20:11:16 dyoung Exp $
+.\"
+.\" Copyright (c) 2010 The NetBSD Foundation, Inc.
+.\" All rights reserved.
+.\"
+.\" This code is derived from software contributed to The NetBSD Foundation
+.\" by David Young.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"notice, this list of conditions and the following disclaimer in the
+.\"documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+.\" POSSIBILITY OF SUCH DAMAGE.
+.\"
+.Dd January 22, 2010
+.Dt PERCPU 9
+.Os
+.Sh NAME
+.Nm percpu
+.Nd Per-CPU storage
+.Sh SYNOPSIS
+.In sys/percpu.h
+.Vt typedef void (*percpu_callback_t)(void *, void *, struct cpu_info *);
+.Ft void
+.Fn percpu_init "void"
+.Ft void
+.Fn percpu_init_cpu "struct cpu_info *ci"
+.Ft percpu_t *
+.Fn percpu_alloc "size_t size"
+.Ft void
+.Fn percpu_free "percpu_t *pc" "size_t size"
+.Ft void *
+.Fn percpu_getref "percpu_t *pc"
+.Ft void
+.Fn percpu_putref "percpu_t *pc"
+.Ft void
+.Fn percpu_foreach "percpu_t *pc" "percpu_callback_t cb" "void *arg"
+.Sh DESCRIPTION
+The machine-independent
+.Nm
+interface provides per-CPU, CPU-local memory reservations to kernel
+subsystems.
+.Fo percpu_alloc
+.Fa size 
+.Fc
+reserves on each CPU an independent memory region of
+.Fa size
+bytes that is local to that CPU, returning a handle
+.Po
+.Vt percpu_t
+.Pc
+to those regions.
+A thread may subsequently ask for a pointer,
+.Fa p ,
+to the region held by the
+.Vt percpu_t
+on the thread's current CPU.
+Until the thread relinquishes the pointer, or voluntarily sleeps,
+the thread may read or write the region at
+.Fa p
+without causing interprocessor memory synchronization.
+.Sh FUNCTIONS
+.Bl -tag -width compact
+.It Fn percpu_init "void"
+Initialize the per-CPU storage subsystem.  This is
+called just once, in
+.Fn main .
+.It Fn percpu_init_cpu "ci"
+Initialize per-CPU storage on the CPU given by
+.Fa ci .
+The kernel must call this before the CPU appears on the
+global CPUs list for
+.Dv CPU_INFO_FOREACH .
+.It Fn percpu_alloc "size"
+Call this in thread context to allocate
+.Fa size
+bytes of local storage on each CPU.
+The storage is initialized with zeroes.
+Treat this as an expensive operation.
+.Fn percpu_alloc
+returns
+.Dv NULL
+on failure, and a handle for the per-CPU storage on success.
+.It Fn percpu_free "pc" "size"
+Call this in thread context to
+return to the system the per-CPU storage held by
+.Fa pc .
+.Fa size
+should match the
+.Fa size
+passed to
+.Fn percpu_alloc .
+When
+.Fn percpu_free
+returns,
+.Fa pc
+is undefined.
+Treat this as an expensive operation.
+.It Fn percpu_getref "pc"
+Disable preemption and return a pointer to the storage held by
+.Fa pc
+on the local CPU.
+Use
+.Fn percpu_getref
+in either thread or interrupt context.
+Follow each
+.Fn percpu_getref
+call with a matching call to
+.Fn percpu_putref .
+.It Fn percpu_putref "pc"
+Indicate that the thread is finished
+with the pointer returned by the matching
+call to
+.Fn percpu_getref .
+Re-enables preemption.
+.It Fn percpu_foreach "pc" "cb" "arg"
+On each CPU, for
+.Fa ci
+the corresponding
+.Vt "struct cpu_info *"
+and
+

CVS commit: src/share/man/man9

2010-01-22 Thread David Young
Module Name:src
Committed By:   dyoung
Date:   Fri Jan 22 20:18:46 UTC 2010

Modified Files:
src/share/man/man9: percpu.9

Log Message:
Mention all of the API routines in the NAME section, and capitalize
'percpu'.  Also in the NAME section, call it a "Per-CPU storage
allocator."


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/share/man/man9/percpu.9

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

Modified files:

Index: src/share/man/man9/percpu.9
diff -u src/share/man/man9/percpu.9:1.1 src/share/man/man9/percpu.9:1.2
--- src/share/man/man9/percpu.9:1.1	Fri Jan 22 20:11:16 2010
+++ src/share/man/man9/percpu.9	Fri Jan 22 20:18:46 2010
@@ -1,4 +1,4 @@
-.\" $NetBSD: percpu.9,v 1.1 2010/01/22 20:11:16 dyoung Exp $
+.\" $NetBSD: percpu.9,v 1.2 2010/01/22 20:18:46 dyoung Exp $
 .\"
 .\" Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -31,8 +31,15 @@
 .Dt PERCPU 9
 .Os
 .Sh NAME
-.Nm percpu
-.Nd Per-CPU storage
+.Nm PERCPU ,
+.Nm percpu_init ,
+.Nm percpu_init_cpu ,
+.Nm percpu_alloc ,
+.Nm percpu_free ,
+.Nm percpu_getref ,
+.Nm percpu_putref ,
+.Nm percpu_foreach
+.Nd Per-CPU storage allocator
 .Sh SYNOPSIS
 .In sys/percpu.h
 .Vt typedef void (*percpu_callback_t)(void *, void *, struct cpu_info *);



CVS commit: src/share/man/man9

2010-01-22 Thread David Young
Module Name:src
Committed By:   dyoung
Date:   Fri Jan 22 20:27:57 UTC 2010

Modified Files:
src/share/man/man9: percpu.9

Log Message:
Move a start of sentence to the first column.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/share/man/man9/percpu.9

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

Modified files:

Index: src/share/man/man9/percpu.9
diff -u src/share/man/man9/percpu.9:1.2 src/share/man/man9/percpu.9:1.3
--- src/share/man/man9/percpu.9:1.2	Fri Jan 22 20:18:46 2010
+++ src/share/man/man9/percpu.9	Fri Jan 22 20:27:57 2010
@@ -1,4 +1,4 @@
-.\" $NetBSD: percpu.9,v 1.2 2010/01/22 20:18:46 dyoung Exp $
+.\" $NetBSD: percpu.9,v 1.3 2010/01/22 20:27:57 dyoung Exp $
 .\"
 .\" Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -84,8 +84,8 @@
 .Sh FUNCTIONS
 .Bl -tag -width compact
 .It Fn percpu_init "void"
-Initialize the per-CPU storage subsystem.  This is
-called just once, in
+Initialize the per-CPU storage subsystem.
+This is called just once, in
 .Fn main .
 .It Fn percpu_init_cpu "ci"
 Initialize per-CPU storage on the CPU given by



CVS commit: src/doc

2010-01-22 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Fri Jan 22 20:33:19 UTC 2010

Modified Files:
src/doc: 3RDPARTY

Log Message:
The current version of OpenLDAP is 2.4.21.


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

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

Modified files:

Index: src/doc/3RDPARTY
diff -u src/doc/3RDPARTY:1.744 src/doc/3RDPARTY:1.745
--- src/doc/3RDPARTY:1.744	Sun Jan 10 07:37:09 2010
+++ src/doc/3RDPARTY	Fri Jan 22 20:33:18 2010
@@ -1,4 +1,4 @@
-#	$NetBSD: 3RDPARTY,v 1.744 2010/01/10 07:37:09 mlelstv Exp $
+#	$NetBSD: 3RDPARTY,v 1.745 2010/01/22 20:33:18 snj Exp $
 #
 # This file contains a list of the software that has been integrated into
 # NetBSD where we are not the primary maintainer.
@@ -718,7 +718,7 @@
 
 Package:	OpenLDAP
 Version:	2.4.11
-Current Vers:	2.4.16
+Current Vers:	2.4.21
 Maintainer:	OpenLDAP Foundation
 Archive Site:	http://www.openldap.org/
 Home Page:	http://www.openldap.org/



CVS commit: src/share/man/man9

2010-01-22 Thread David Young
Module Name:src
Committed By:   dyoung
Date:   Fri Jan 22 20:40:36 UTC 2010

Modified Files:
src/share/man/man9: percpu.9

Log Message:
Add missing .El.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/share/man/man9/percpu.9

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

Modified files:

Index: src/share/man/man9/percpu.9
diff -u src/share/man/man9/percpu.9:1.3 src/share/man/man9/percpu.9:1.4
--- src/share/man/man9/percpu.9:1.3	Fri Jan 22 20:27:57 2010
+++ src/share/man/man9/percpu.9	Fri Jan 22 20:40:36 2010
@@ -1,4 +1,4 @@
-.\" $NetBSD: percpu.9,v 1.3 2010/01/22 20:27:57 dyoung Exp $
+.\" $NetBSD: percpu.9,v 1.4 2010/01/22 20:40:36 dyoung Exp $
 .\"
 .\" Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -156,6 +156,7 @@
 Do not rely on
 .Fa cb
 to be run on the CPUs in any particular order.
+.El
 .Sh CODE REFERENCES
 This section describes places within the
 .Nx



CVS commit: src/share/man/man9

2010-01-22 Thread David Young
Module Name:src
Committed By:   dyoung
Date:   Fri Jan 22 20:41:50 UTC 2010

Modified Files:
src/share/man/man9: percpu.9

Log Message:
Cross-reference xc(9) instead of queue(9).


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man9/percpu.9

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

Modified files:

Index: src/share/man/man9/percpu.9
diff -u src/share/man/man9/percpu.9:1.4 src/share/man/man9/percpu.9:1.5
--- src/share/man/man9/percpu.9:1.4	Fri Jan 22 20:40:36 2010
+++ src/share/man/man9/percpu.9	Fri Jan 22 20:41:50 2010
@@ -1,4 +1,4 @@
-.\" $NetBSD: percpu.9,v 1.4 2010/01/22 20:40:36 dyoung Exp $
+.\" $NetBSD: percpu.9,v 1.5 2010/01/22 20:41:50 dyoung Exp $
 .\"
 .\" Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -175,7 +175,7 @@
 .Sh SEE ALSO
 .Xr atomic_ops 3 ,
 .Xr pcq 9 ,
-.Xr queue 9
+.Xr xc 9
 .Sh HISTORY
 The
 .Nm



CVS commit: src/share/man/man9

2010-01-22 Thread David Young
Module Name:src
Committed By:   dyoung
Date:   Fri Jan 22 20:43:48 UTC 2010

Added Files:
src/share/man/man9: xc.9

Log Message:
Add a manual page for cross-calls.  Somebody should read this to
make sure I've described it correctly and intelligibly.

TBD: hook this up in the Makefile and in the set lists.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/share/man/man9/xc.9

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

Added files:

Index: src/share/man/man9/xc.9
diff -u /dev/null src/share/man/man9/xc.9:1.1
--- /dev/null	Fri Jan 22 20:43:48 2010
+++ src/share/man/man9/xc.9	Fri Jan 22 20:43:48 2010
@@ -0,0 +1,146 @@
+.\" $NetBSD: xc.9,v 1.1 2010/01/22 20:43:48 dyoung Exp $
+.\"
+.\" Copyright (c) 2010 The NetBSD Foundation, Inc.
+.\" All rights reserved.
+.\"
+.\" This code is derived from software contributed to The NetBSD Foundation
+.\" by Andrew Doran.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"notice, this list of conditions and the following disclaimer in the
+.\"documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+.\" POSSIBILITY OF SUCH DAMAGE.
+.\"
+.Dd January 22, 2010
+.Dt XC 9
+.Os
+.Sh NAME
+.Nm XC ,
+.Nm xc_init_cpu ,
+.Nm xc_broadcast ,
+.Nm xc_unicast ,
+.Nm xc_wait
+.Nd Cross-call interface
+.Sh SYNOPSIS
+.In sys/xcall.h
+.Vt typedef void (*xcfunc_t)(void *, void *);
+.Ft void
+.Fn xc_init_cpu "struct cpu_info *ci"
+.Ft uint64_t
+.Fn xc_broadcast "u_int flags" "xcfunc_t func" "void *arg1" "void *arg2"
+.Ft uint64_t
+.Fn xc_unicast "u_int flags" "xcfunc_t func" "void *arg1" "void *arg2" "struct cpu_info *ci"
+.Ft void
+.Fn xc_wait "uint64_t where"
+.Sh DESCRIPTION
+The machine-independent
+.Nm
+interface allows any CPU in the system to request that an arbitrary
+function be executed on any other CPU.
+.Pp
+Sometimes it is necessary to modify hardware state that is tied
+directly to individual CPUs
+.Po
+such as a CPU's local timer
+.Pc ,
+and these updates can not be done remotely by another CPU.
+The LWP requesting the update may be unable to guarantee that it
+will be running on the CPU where the update must occur, when the
+update occurs.
+.Pp
+Additionally, it's sometimes necessary to modify per-CPU software
+state from a remote CPU.
+Where these update operations are so rare or the access to the
+per-CPU data so frequent that the cost of using locking or atomic
+operations to provide coherency is prohibitive, another way must
+be found.
+.Pp
+Cross calls help to solve these types of problem.
+.Sh FUNCTIONS
+.Bl -tag -width compact
+.It Fn xc_init_cpu "ci"
+Initialize the cross-call subsystem.
+Called once for each CPU in the system as it is attached.
+.It Fn xc_broadcast "flags" "func" "arg1" "arg2"
+Call
+.Fo "(*func)"
+.Fa "arg1"
+.Fa "arg2"
+.Fc
+on all CPUs in the system.
+Return a
+.Vt uint64_t
+.Dq ticket
+to
+.Fn xc_wait
+on for the cross-call to complete.
+Always call
+.Fn xc_broadcast
+from thread context.
+Treat this as an expensive operation.
+.It Fn xc_unicast "flags" "func" "arg1" "arg2" "ci"
+Like
+.Fn xc_broadcast ,
+but call
+.Fn "(*func)" 
+on only the CPU indicated by
+.Fa ci .
+.Fn xc_unicast
+also returns a
+.Dq ticket .
+.It Fn xc_wait "where"
+Wait on the
+.Dq ticket
+returned by a prior
+.Fn xc_broadcast
+or
+.Fn xc_unicast
+for the corresponding cross-call to complete.
+.El
+.Sh CODE REFERENCES
+This section describes places within the
+.Nx
+source tree where actual code implementing the
+.Nm
+interface
+can be found.
+All pathnames are relative to
+.Pa /usr/src .
+.Pp
+The
+.Nm
+interface is implemented within the file
+.Pa sys/kern/subr_xcall.c .
+.\" .Sh EXAMPLES
+.Sh SEE ALSO
+.Xr percpu 9
+.Sh HISTORY
+The
+.Nm
+interface first appeared in
+.Nx 5.0 .
+.Sh AUTHORS
+.An Andrew Doran Aq a...@netbsd.org
+.Sh CAVEATS
+Cross calls m

CVS commit: [netbsd-5] src

2010-01-22 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Fri Jan 22 21:05:07 UTC 2010

Modified Files:
src/dist/bind [netbsd-5]: CHANGES FAQ FAQ.xml version
src/dist/bind/bin/named [netbsd-5]: query.c
src/dist/bind/bin/tests/system [netbsd-5]: conf.sh.in
src/dist/bind/bin/tests/system/dnssec [netbsd-5]: tests.sh
src/dist/bind/bin/tests/system/dnssec/ns1 [netbsd-5]: sign.sh
src/dist/bind/bin/tests/system/dnssec/ns2 [netbsd-5]: example.db.in
sign.sh
src/dist/bind/doc/arm [netbsd-5]: Bv9ARM.pdf
src/dist/bind/doc/rfc [netbsd-5]: index
src/dist/bind/lib/dns [netbsd-5]: rbtdb.c resolver.c validator.c
src/dist/bind/lib/dns/include/dns [netbsd-5]: db.h types.h
src/dist/bind/lib/lwres/man [netbsd-5]: lwres.html lwres_buffer.html
lwres_config.html lwres_context.html lwres_gabn.html
lwres_gai_strerror.html lwres_getaddrinfo.html
lwres_gethostent.html lwres_getipnode.html lwres_getnameinfo.html
lwres_getrrsetbyname.html lwres_gnba.html lwres_hstrerror.html
lwres_inetntop.html lwres_noop.html lwres_packet.html
lwres_resutil.html
src/distrib/sets/lists/base [netbsd-5]: md.amd64 md.sparc64 shl.mi
src/doc [netbsd-5]: 3RDPARTY
src/lib/libdns [netbsd-5]: shlib_version
Added Files:
src/dist/bind/bin/tests/system/pending [netbsd-5]: clean.sh prereq.sh
setup.sh tests.sh
src/dist/bind/bin/tests/system/pending/ns1 [netbsd-5]: named.conf
root.db.in sign.sh
src/dist/bind/bin/tests/system/pending/ns2 [netbsd-5]:
example.com.db.in example.db.in forgery.db named.conf sign.sh
src/dist/bind/bin/tests/system/pending/ns3 [netbsd-5]: hostile.db
mail.example.db named.conf
src/dist/bind/bin/tests/system/pending/ns4 [netbsd-5]: named.conf
src/dist/bind/doc/draft [netbsd-5]:
draft-ietf-6man-text-addr-representation-01.txt
draft-ietf-behave-dns64-01.txt
draft-ietf-dnsext-axfr-clarify-12.txt
draft-ietf-dnsext-dns-tcp-requirements-01.txt
draft-ietf-dnsext-dnssec-bis-updates-09.txt
draft-ietf-dnsext-dnssec-gost-05.txt
draft-ietf-dnsext-rfc2671bis-edns0-02.txt
draft-ietf-dnsext-rfc2672bis-dname-18.txt
draft-ietf-dnsext-rfc3597-bis-00.txt
draft-ietf-dnsext-tsig-md5-deprecated-03.txt
draft-ietf-dnsop-default-local-zones-09.txt
draft-ietf-dnsop-name-server-management-reqs-02.txt
src/dist/bind/doc/rfc [netbsd-5]: rfc1912.txt rfc3755.txt rfc4294.txt
rfc4339.txt rfc4471.txt rfc4472.txt rfc4697.txt rfc4955.txt
rfc4956.txt rfc5001.txt rfc5011.txt rfc5452.txt rfc5625.txt
rfc5702.txt
Removed Files:
src/dist/bind/doc/draft [netbsd-5]: draft-baba-dnsext-acl-reqts-01.txt
draft-daigle-napstr-04.txt draft-danisch-dns-rr-smtp-03.txt
draft-dnsext-opcode-discover-02.txt
draft-durand-dnsop-dynreverse-00.txt
draft-ietf-dnsext-2929bis-01.txt
draft-ietf-dnsext-axfr-clarify-05.txt
draft-ietf-dnsext-dns-name-p-s-00.txt
draft-ietf-dnsext-dnssec-2535typecode-change-06.txt
draft-ietf-dnsext-dnssec-bis-updates-01.txt
draft-ietf-dnsext-dnssec-experiments-03.txt
draft-ietf-dnsext-dnssec-online-signing-02.txt
draft-ietf-dnsext-dnssec-opt-in-07.txt
draft-ietf-dnsext-dnssec-rsasha256-00.txt
draft-ietf-dnsext-dnssec-trans-02.txt
draft-ietf-dnsext-ds-sha256-05.txt
draft-ietf-dnsext-forgery-resilience-00.txt
draft-ietf-dnsext-keyrr-key-signing-flag-12.txt
draft-ietf-dnsext-mdns-46.txt draft-ietf-dnsext-nsec3-12.txt
draft-ietf-dnsext-nsid-01.txt
draft-ietf-dnsext-rfc2536bis-dsa-07.txt
draft-ietf-dnsext-rfc2539bis-dhk-07.txt
draft-ietf-dnsext-rfc2672bis-dname-06.txt
draft-ietf-dnsext-signed-nonexistence-requirements-01.txt
draft-ietf-dnsext-tkey-renewal-mode-05.txt
draft-ietf-dnsext-trustupdate-threshold-00.txt
draft-ietf-dnsext-trustupdate-timers-05.txt
draft-ietf-dnsext-tsig-sha-06.txt
draft-ietf-dnsext-wcard-clarify-10.txt
draft-ietf-dnsop-default-local-zones-03.txt
draft-ietf-dnsop-ipv6-dns-configuration-06.txt
draft-ietf-dnsop-ipv6-dns-issues-11.txt
draft-ietf-dnsop-ipv6-transport-guidelines-01.txt
draft-ietf-dnsop-key-rollover-requirements-02.txt
draft-ietf-dnsop-serverid-06.txt
draft-ietf-enum-e164-gstn-np-05.txt
draft-ietf-ipv6-node-requirements-08.txt
draft-ietf-secsh-dns-05.txt
draft-ihren-dnsext-threshold-validation-00.txt
draft-park-ipv6-extensions

CVS commit: [netbsd-5-0] src

2010-01-22 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Fri Jan 22 22:05:42 UTC 2010

Modified Files:
src/dist/bind [netbsd-5-0]: CHANGES FAQ FAQ.xml version
src/dist/bind/bin/named [netbsd-5-0]: query.c
src/dist/bind/bin/tests/system [netbsd-5-0]: conf.sh.in
src/dist/bind/bin/tests/system/dnssec [netbsd-5-0]: tests.sh
src/dist/bind/bin/tests/system/dnssec/ns1 [netbsd-5-0]: sign.sh
src/dist/bind/bin/tests/system/dnssec/ns2 [netbsd-5-0]: example.db.in
sign.sh
src/dist/bind/doc/arm [netbsd-5-0]: Bv9ARM.pdf
src/dist/bind/doc/rfc [netbsd-5-0]: index
src/dist/bind/lib/dns [netbsd-5-0]: rbtdb.c resolver.c validator.c
src/dist/bind/lib/dns/include/dns [netbsd-5-0]: db.h types.h
src/dist/bind/lib/lwres/man [netbsd-5-0]: lwres.html lwres_buffer.html
lwres_config.html lwres_context.html lwres_gabn.html
lwres_gai_strerror.html lwres_getaddrinfo.html
lwres_gethostent.html lwres_getipnode.html lwres_getnameinfo.html
lwres_getrrsetbyname.html lwres_gnba.html lwres_hstrerror.html
lwres_inetntop.html lwres_noop.html lwres_packet.html
lwres_resutil.html
src/distrib/sets/lists/base [netbsd-5-0]: md.amd64 md.sparc64 shl.mi
src/doc [netbsd-5-0]: 3RDPARTY
src/lib/libdns [netbsd-5-0]: shlib_version
Added Files:
src/dist/bind/bin/tests/system/pending [netbsd-5-0]: clean.sh prereq.sh
setup.sh tests.sh
src/dist/bind/bin/tests/system/pending/ns1 [netbsd-5-0]: named.conf
root.db.in sign.sh
src/dist/bind/bin/tests/system/pending/ns2 [netbsd-5-0]:
example.com.db.in example.db.in forgery.db named.conf sign.sh
src/dist/bind/bin/tests/system/pending/ns3 [netbsd-5-0]: hostile.db
mail.example.db named.conf
src/dist/bind/bin/tests/system/pending/ns4 [netbsd-5-0]: named.conf
src/dist/bind/doc/draft [netbsd-5-0]:
draft-ietf-6man-text-addr-representation-01.txt
draft-ietf-behave-dns64-01.txt
draft-ietf-dnsext-axfr-clarify-12.txt
draft-ietf-dnsext-dns-tcp-requirements-01.txt
draft-ietf-dnsext-dnssec-bis-updates-09.txt
draft-ietf-dnsext-dnssec-gost-05.txt
draft-ietf-dnsext-rfc2671bis-edns0-02.txt
draft-ietf-dnsext-rfc2672bis-dname-18.txt
draft-ietf-dnsext-rfc3597-bis-00.txt
draft-ietf-dnsext-tsig-md5-deprecated-03.txt
draft-ietf-dnsop-default-local-zones-09.txt
draft-ietf-dnsop-name-server-management-reqs-02.txt
src/dist/bind/doc/rfc [netbsd-5-0]: rfc1912.txt rfc3755.txt rfc4294.txt
rfc4339.txt rfc4471.txt rfc4472.txt rfc4697.txt rfc4955.txt
rfc4956.txt rfc5001.txt rfc5011.txt rfc5452.txt rfc5625.txt
rfc5702.txt
Removed Files:
src/dist/bind/doc/draft [netbsd-5-0]:
draft-baba-dnsext-acl-reqts-01.txt draft-daigle-napstr-04.txt
draft-danisch-dns-rr-smtp-03.txt
draft-dnsext-opcode-discover-02.txt
draft-durand-dnsop-dynreverse-00.txt
draft-ietf-dnsext-2929bis-01.txt
draft-ietf-dnsext-axfr-clarify-05.txt
draft-ietf-dnsext-dns-name-p-s-00.txt
draft-ietf-dnsext-dnssec-2535typecode-change-06.txt
draft-ietf-dnsext-dnssec-bis-updates-01.txt
draft-ietf-dnsext-dnssec-experiments-03.txt
draft-ietf-dnsext-dnssec-online-signing-02.txt
draft-ietf-dnsext-dnssec-opt-in-07.txt
draft-ietf-dnsext-dnssec-rsasha256-00.txt
draft-ietf-dnsext-dnssec-trans-02.txt
draft-ietf-dnsext-ds-sha256-05.txt
draft-ietf-dnsext-forgery-resilience-00.txt
draft-ietf-dnsext-keyrr-key-signing-flag-12.txt
draft-ietf-dnsext-mdns-46.txt draft-ietf-dnsext-nsec3-12.txt
draft-ietf-dnsext-nsid-01.txt
draft-ietf-dnsext-rfc2536bis-dsa-07.txt
draft-ietf-dnsext-rfc2539bis-dhk-07.txt
draft-ietf-dnsext-rfc2672bis-dname-06.txt
draft-ietf-dnsext-signed-nonexistence-requirements-01.txt
draft-ietf-dnsext-tkey-renewal-mode-05.txt
draft-ietf-dnsext-trustupdate-threshold-00.txt
draft-ietf-dnsext-trustupdate-timers-05.txt
draft-ietf-dnsext-tsig-sha-06.txt
draft-ietf-dnsext-wcard-clarify-10.txt
draft-ietf-dnsop-default-local-zones-03.txt
draft-ietf-dnsop-ipv6-dns-configuration-06.txt
draft-ietf-dnsop-ipv6-dns-issues-11.txt
draft-ietf-dnsop-ipv6-transport-guidelines-01.txt
draft-ietf-dnsop-key-rollover-requirements-02.txt
draft-ietf-dnsop-serverid-06.txt
draft-ietf-enum-e164-gstn-np-05.txt
draft-ietf-ipv6-node-requirements-08.txt
draft-ietf-secsh-dns-05.txt
draft-ihren-dnsext-threshold-

CVS commit: [netbsd-5] src/crypto/dist/openssl/crypto/comp

2010-01-22 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Fri Jan 22 22:16:20 UTC 2010

Modified Files:
src/crypto/dist/openssl/crypto/comp [netbsd-5]: c_zlib.c

Log Message:
Apply patch (requested by taca in ticket #1265):
Fix CVE-2009-4355.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.7 -r1.1.1.7.4.1 \
src/crypto/dist/openssl/crypto/comp/c_zlib.c

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

Modified files:

Index: src/crypto/dist/openssl/crypto/comp/c_zlib.c
diff -u src/crypto/dist/openssl/crypto/comp/c_zlib.c:1.1.1.7 src/crypto/dist/openssl/crypto/comp/c_zlib.c:1.1.1.7.4.1
--- src/crypto/dist/openssl/crypto/comp/c_zlib.c:1.1.1.7	Fri May  9 21:34:23 2008
+++ src/crypto/dist/openssl/crypto/comp/c_zlib.c	Fri Jan 22 22:16:20 2010
@@ -136,15 +136,6 @@
 
 static int zlib_stateful_ex_idx = -1;
 
-static void zlib_stateful_free_ex_data(void *obj, void *item,
-	CRYPTO_EX_DATA *ad, int ind,long argl, void *argp)
-	{
-	struct zlib_state *state = (struct zlib_state *)item;
-	inflateEnd(&state->istream);
-	deflateEnd(&state->ostream);
-	OPENSSL_free(state);
-	}
-
 static int zlib_stateful_init(COMP_CTX *ctx)
 	{
 	int err;
@@ -188,6 +179,12 @@
 
 static void zlib_stateful_finish(COMP_CTX *ctx)
 	{
+	struct zlib_state *state =
+		(struct zlib_state *)CRYPTO_get_ex_data(&ctx->ex_data,
+			zlib_stateful_ex_idx);
+	inflateEnd(&state->istream);
+	deflateEnd(&state->ostream);
+	OPENSSL_free(state);
 	CRYPTO_free_ex_data(CRYPTO_EX_INDEX_COMP,ctx,&ctx->ex_data);
 	}
 
@@ -402,7 +399,7 @@
 			if (zlib_stateful_ex_idx == -1)
 zlib_stateful_ex_idx =
 	CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_COMP,
-		0,NULL,NULL,NULL,zlib_stateful_free_ex_data);
+		0,NULL,NULL,NULL,NULL);
 			CRYPTO_w_unlock(CRYPTO_LOCK_COMP);
 			if (zlib_stateful_ex_idx == -1)
 goto err;



CVS commit: [netbsd-5-0] src/crypto/dist/openssl/crypto/comp

2010-01-22 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Fri Jan 22 22:17:02 UTC 2010

Modified Files:
src/crypto/dist/openssl/crypto/comp [netbsd-5-0]: c_zlib.c

Log Message:
Apply patch (requested by taca in ticket #1265):
Fix CVE-2009-4355.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.7 -r1.1.1.7.8.1 \
src/crypto/dist/openssl/crypto/comp/c_zlib.c

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

Modified files:

Index: src/crypto/dist/openssl/crypto/comp/c_zlib.c
diff -u src/crypto/dist/openssl/crypto/comp/c_zlib.c:1.1.1.7 src/crypto/dist/openssl/crypto/comp/c_zlib.c:1.1.1.7.8.1
--- src/crypto/dist/openssl/crypto/comp/c_zlib.c:1.1.1.7	Fri May  9 21:34:23 2008
+++ src/crypto/dist/openssl/crypto/comp/c_zlib.c	Fri Jan 22 22:17:01 2010
@@ -136,15 +136,6 @@
 
 static int zlib_stateful_ex_idx = -1;
 
-static void zlib_stateful_free_ex_data(void *obj, void *item,
-	CRYPTO_EX_DATA *ad, int ind,long argl, void *argp)
-	{
-	struct zlib_state *state = (struct zlib_state *)item;
-	inflateEnd(&state->istream);
-	deflateEnd(&state->ostream);
-	OPENSSL_free(state);
-	}
-
 static int zlib_stateful_init(COMP_CTX *ctx)
 	{
 	int err;
@@ -188,6 +179,12 @@
 
 static void zlib_stateful_finish(COMP_CTX *ctx)
 	{
+	struct zlib_state *state =
+		(struct zlib_state *)CRYPTO_get_ex_data(&ctx->ex_data,
+			zlib_stateful_ex_idx);
+	inflateEnd(&state->istream);
+	deflateEnd(&state->ostream);
+	OPENSSL_free(state);
 	CRYPTO_free_ex_data(CRYPTO_EX_INDEX_COMP,ctx,&ctx->ex_data);
 	}
 
@@ -402,7 +399,7 @@
 			if (zlib_stateful_ex_idx == -1)
 zlib_stateful_ex_idx =
 	CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_COMP,
-		0,NULL,NULL,NULL,zlib_stateful_free_ex_data);
+		0,NULL,NULL,NULL,NULL);
 			CRYPTO_w_unlock(CRYPTO_LOCK_COMP);
 			if (zlib_stateful_ex_idx == -1)
 goto err;



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

2010-01-22 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Fri Jan 22 22:18:10 UTC 2010

Modified Files:
src/doc [netbsd-5-0]: CHANGES-5.0.2

Log Message:
Tickets 1264 and 1265.


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.43 -r1.1.2.44 src/doc/CHANGES-5.0.2

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

Modified files:

Index: src/doc/CHANGES-5.0.2
diff -u src/doc/CHANGES-5.0.2:1.1.2.43 src/doc/CHANGES-5.0.2:1.1.2.44
--- src/doc/CHANGES-5.0.2:1.1.2.43	Thu Jan 21 08:41:39 2010
+++ src/doc/CHANGES-5.0.2	Fri Jan 22 22:18:10 2010
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-5.0.2,v 1.1.2.43 2010/01/21 08:41:39 snj Exp $
+# $NetBSD: CHANGES-5.0.2,v 1.1.2.44 2010/01/22 22:18:10 snj Exp $
 
 A complete list of changes from the NetBSD 5.0.1 release to the NetBSD 5.0.2
 release:
@@ -973,3 +973,134 @@
 	Signedness bug/crash in azalia. Fixes PR 42604.
 	[tonnerre, ticket #1258]
 
+dist/bind/CHANGESpatch
+dist/bind/FAQ	patch
+dist/bind/FAQ.xmlpatch
+dist/bind/bin/named/query.c			patch
+dist/bind/bin/tests/system/conf.sh.in		patch
+dist/bind/bin/tests/system/dnssec/ns1/sign.sh	patch
+dist/bind/bin/tests/system/dnssec/ns2/example.db.in patch
+dist/bind/bin/tests/system/dnssec/ns2/sign.sh	patch
+dist/bind/bin/tests/system/dnssec/tests.sh	patch
+dist/bind/bin/tests/system/pending/clean.sh	patch
+dist/bind/bin/tests/system/pending/ns1/named.conf patch
+dist/bind/bin/tests/system/pending/ns1/root.db.in patch
+dist/bind/bin/tests/system/pending/ns1/sign.sh	patch
+dist/bind/bin/tests/system/pending/ns2/example.com.db.in patch
+dist/bind/bin/tests/system/pending/ns2/example.db.in patch
+dist/bind/bin/tests/system/pending/ns2/forgery.db patch
+dist/bind/bin/tests/system/pending/ns2/named.conf patch
+dist/bind/bin/tests/system/pending/ns2/sign.sh	patch
+dist/bind/bin/tests/system/pending/ns3/hostile.db patch
+dist/bind/bin/tests/system/pending/ns3/mail.example.db patch
+dist/bind/bin/tests/system/pending/ns3/named.conf patch
+dist/bind/bin/tests/system/pending/ns4/named.conf patch
+dist/bind/bin/tests/system/pending/prereq.sh	patch
+dist/bind/bin/tests/system/pending/setup.sh	patch
+dist/bind/bin/tests/system/pending/tests.sh	patch
+dist/bind/doc/arm/Bv9ARM.pdf			patch
+dist/bind/doc/draft/draft-baba-dnsext-acl-reqts-01.txt delete
+dist/bind/doc/draft/draft-daigle-napstr-04.txt	delete
+dist/bind/doc/draft/draft-danisch-dns-rr-smtp-03.txt delete
+dist/bind/doc/draft/draft-dnsext-opcode-discover-02.txt delete
+dist/bind/doc/draft/draft-durand-dnsop-dynreverse-00.txt delete
+dist/bind/doc/draft/draft-ietf-6man-text-addr-representation-01.txt patch
+dist/bind/doc/draft/draft-ietf-behave-dns64-01.txt patch
+dist/bind/doc/draft/draft-ietf-dnsext-2929bis-01.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-axfr-clarify-05.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-axfr-clarify-12.txt patch
+dist/bind/doc/draft/draft-ietf-dnsext-dns-name-p-s-00.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-dns-tcp-requirements-01.txt patch
+dist/bind/doc/draft/draft-ietf-dnsext-dnssec-2535typecode-change-06.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-dnssec-bis-updates-01.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-dnssec-bis-updates-09.txt patch
+dist/bind/doc/draft/draft-ietf-dnsext-dnssec-experiments-03.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-dnssec-gost-05.txt patch
+dist/bind/doc/draft/draft-ietf-dnsext-dnssec-online-signing-02.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-dnssec-opt-in-07.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-dnssec-rsasha256-00.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-dnssec-trans-02.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-ds-sha256-05.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-forgery-resilience-00.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-keyrr-key-signing-flag-12.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-mdns-46.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-nsec3-12.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-nsid-01.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-rfc2536bis-dsa-07.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-rfc2539bis-dhk-07.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-rfc2671bis-edns0-02.txt patch
+dist/bind/doc/draft/draft-ietf-dnsext-rfc2672bis-dname-06.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-rfc2672bis-dname-18.txt patch
+dist/bind/doc/draft/draft-ietf-dnsext-rfc3597-bis-00.txt patch
+dist/bind/doc/draft/draft-ietf-dnsext-signed-nonexistence-requirements-01.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-tkey-renewal-mode-05.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-trustupdate-threshold-00.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-trustupdate-timers-05.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-tsig-md5-deprecated-03.txt patch
+dist/bind/doc/draft/draft-ietf-dnsext-tsig-sha-06.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-wcard-clarify-10.txt delete
+dist/bind/doc/dra

CVS commit: [netbsd-5] src/doc

2010-01-22 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Fri Jan 22 22:21:16 UTC 2010

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

Log Message:
Tickets 1264 and 1265.


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.177 -r1.1.2.178 src/doc/CHANGES-5.1

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

Modified files:

Index: src/doc/CHANGES-5.1
diff -u src/doc/CHANGES-5.1:1.1.2.177 src/doc/CHANGES-5.1:1.1.2.178
--- src/doc/CHANGES-5.1:1.1.2.177	Thu Jan 21 08:39:22 2010
+++ src/doc/CHANGES-5.1	Fri Jan 22 22:21:16 2010
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-5.1,v 1.1.2.177 2010/01/21 08:39:22 snj Exp $
+# $NetBSD: CHANGES-5.1,v 1.1.2.178 2010/01/22 22:21:16 snj Exp $
 
 A complete list of changes from the NetBSD 5.0 release to the NetBSD 5.1
 release:
@@ -16106,3 +16106,134 @@
 	Signedness bug/crash in azalia and hdaudio. Fixes PR 42604.
 	[tonnerre, ticket #1258]
 
+dist/bind/CHANGESpatch
+dist/bind/FAQ	patch
+dist/bind/FAQ.xmlpatch
+dist/bind/bin/named/query.c			patch
+dist/bind/bin/tests/system/conf.sh.in		patch
+dist/bind/bin/tests/system/dnssec/ns1/sign.sh	patch
+dist/bind/bin/tests/system/dnssec/ns2/example.db.in patch
+dist/bind/bin/tests/system/dnssec/ns2/sign.sh	patch
+dist/bind/bin/tests/system/dnssec/tests.sh	patch
+dist/bind/bin/tests/system/pending/clean.sh	patch
+dist/bind/bin/tests/system/pending/ns1/named.conf patch
+dist/bind/bin/tests/system/pending/ns1/root.db.in patch
+dist/bind/bin/tests/system/pending/ns1/sign.sh	patch
+dist/bind/bin/tests/system/pending/ns2/example.com.db.in patch
+dist/bind/bin/tests/system/pending/ns2/example.db.in patch
+dist/bind/bin/tests/system/pending/ns2/forgery.db patch
+dist/bind/bin/tests/system/pending/ns2/named.conf patch
+dist/bind/bin/tests/system/pending/ns2/sign.sh	patch
+dist/bind/bin/tests/system/pending/ns3/hostile.db patch
+dist/bind/bin/tests/system/pending/ns3/mail.example.db patch
+dist/bind/bin/tests/system/pending/ns3/named.conf patch
+dist/bind/bin/tests/system/pending/ns4/named.conf patch
+dist/bind/bin/tests/system/pending/prereq.sh	patch
+dist/bind/bin/tests/system/pending/setup.sh	patch
+dist/bind/bin/tests/system/pending/tests.sh	patch
+dist/bind/doc/arm/Bv9ARM.pdf			patch
+dist/bind/doc/draft/draft-baba-dnsext-acl-reqts-01.txt delete
+dist/bind/doc/draft/draft-daigle-napstr-04.txt	delete
+dist/bind/doc/draft/draft-danisch-dns-rr-smtp-03.txt delete
+dist/bind/doc/draft/draft-dnsext-opcode-discover-02.txt delete
+dist/bind/doc/draft/draft-durand-dnsop-dynreverse-00.txt delete
+dist/bind/doc/draft/draft-ietf-6man-text-addr-representation-01.txt patch
+dist/bind/doc/draft/draft-ietf-behave-dns64-01.txt patch
+dist/bind/doc/draft/draft-ietf-dnsext-2929bis-01.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-axfr-clarify-05.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-axfr-clarify-12.txt patch
+dist/bind/doc/draft/draft-ietf-dnsext-dns-name-p-s-00.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-dns-tcp-requirements-01.txt patch
+dist/bind/doc/draft/draft-ietf-dnsext-dnssec-2535typecode-change-06.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-dnssec-bis-updates-01.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-dnssec-bis-updates-09.txt patch
+dist/bind/doc/draft/draft-ietf-dnsext-dnssec-experiments-03.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-dnssec-gost-05.txt patch
+dist/bind/doc/draft/draft-ietf-dnsext-dnssec-online-signing-02.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-dnssec-opt-in-07.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-dnssec-rsasha256-00.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-dnssec-trans-02.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-ds-sha256-05.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-forgery-resilience-00.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-keyrr-key-signing-flag-12.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-mdns-46.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-nsec3-12.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-nsid-01.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-rfc2536bis-dsa-07.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-rfc2539bis-dhk-07.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-rfc2671bis-edns0-02.txt patch
+dist/bind/doc/draft/draft-ietf-dnsext-rfc2672bis-dname-06.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-rfc2672bis-dname-18.txt patch
+dist/bind/doc/draft/draft-ietf-dnsext-rfc3597-bis-00.txt patch
+dist/bind/doc/draft/draft-ietf-dnsext-signed-nonexistence-requirements-01.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-tkey-renewal-mode-05.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-trustupdate-threshold-00.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-trustupdate-timers-05.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-tsig-md5-deprecated-03.txt patch
+dist/bind/doc/draft/draft-ietf-dnsext-tsig-sha-06.txt delete
+dist/bind/doc/draft/draft-ietf-dnsext-wcard-clarify-10.txt delete
+dist/bind/doc/draf

CVS commit: src/sys/miscfs/kernfs

2010-01-22 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri Jan 22 22:46:01 UTC 2010

Modified Files:
src/sys/miscfs/kernfs: kernfs_vnops.c

Log Message:
Remove unneeded strlen() call in KFShostname case.


To generate a diff of this commit:
cvs rdiff -u -r1.139 -r1.140 src/sys/miscfs/kernfs/kernfs_vnops.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/miscfs/kernfs/kernfs_vnops.c
diff -u src/sys/miscfs/kernfs/kernfs_vnops.c:1.139 src/sys/miscfs/kernfs/kernfs_vnops.c:1.140
--- src/sys/miscfs/kernfs/kernfs_vnops.c:1.139	Fri Jan  8 11:35:11 2010
+++ src/sys/miscfs/kernfs/kernfs_vnops.c	Fri Jan 22 22:46:00 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: kernfs_vnops.c,v 1.139 2010/01/08 11:35:11 pooka Exp $	*/
+/*	$NetBSD: kernfs_vnops.c,v 1.140 2010/01/22 22:46:00 njoly Exp $	*/
 
 /*
  * Copyright (c) 1992, 1993
@@ -39,7 +39,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: kernfs_vnops.c,v 1.139 2010/01/08 11:35:11 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kernfs_vnops.c,v 1.140 2010/01/22 22:46:00 njoly Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ipsec.h"
@@ -458,7 +458,6 @@
 		memcpy(*bufp, cp, xlen);
 		(*bufp)[xlen] = '\n';
 		(*bufp)[xlen+1] = '\0';
-		len = strlen(*bufp);
 		break;
 	}
 



CVS commit: src

2010-01-22 Thread David Young
Module Name:src
Committed By:   dyoung
Date:   Fri Jan 22 23:14:29 UTC 2010

Modified Files:
src/distrib/sets/lists/comp: mi
src/share/man/man9: Makefile

Log Message:
Install manual pages for cross-calls and per-CPU storage.


To generate a diff of this commit:
cvs rdiff -u -r1.1368 -r1.1369 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.306 -r1.307 src/share/man/man9/Makefile

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

Modified files:

Index: src/distrib/sets/lists/comp/mi
diff -u src/distrib/sets/lists/comp/mi:1.1368 src/distrib/sets/lists/comp/mi:1.1369
--- src/distrib/sets/lists/comp/mi:1.1368	Wed Jan 20 12:14:00 2010
+++ src/distrib/sets/lists/comp/mi	Fri Jan 22 23:14:28 2010
@@ -1,4 +1,4 @@
-#	$NetBSD: mi,v 1.1368 2010/01/20 12:14:00 pooka Exp $
+#	$NetBSD: mi,v 1.1369 2010/01/22 23:14:28 dyoung Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -9100,6 +9100,14 @@
 ./usr/share/man/cat9/pcq_maxitems.0		comp-sys-catman		.cat
 ./usr/share/man/cat9/pcq_peek.0			comp-sys-catman		.cat
 ./usr/share/man/cat9/pcq_put.0			comp-sys-catman		.cat
+./usr/share/man/cat9/percpu.0			comp-sys-catman		.cat
+./usr/share/man/cat9/percpu_init.0		comp-sys-catman		.cat
+./usr/share/man/cat9/percpu_init_cpu.0		comp-sys-catman		.cat
+./usr/share/man/cat9/percpu_alloc.0		comp-sys-catman		.cat
+./usr/share/man/cat9/percpu_free.0		comp-sys-catman		.cat
+./usr/share/man/cat9/percpu_getref.0		comp-sys-catman		.cat
+./usr/share/man/cat9/percpu_putref.0		comp-sys-catman		.cat
+./usr/share/man/cat9/percpu_foreach.0		comp-sys-catman		.cat
 ./usr/share/man/cat9/pfil.0			comp-sys-catman		.cat
 ./usr/share/man/cat9/pfil_add_hook.0		comp-sys-catman		.cat
 ./usr/share/man/cat9/pfil_get_head.0		comp-obsolete		obsolete
@@ -9595,6 +9603,11 @@
 ./usr/share/man/cat9/wsmouse.0			comp-sys-catman		.cat
 ./usr/share/man/cat9/wsmouse_input.0		comp-sys-catman		.cat
 ./usr/share/man/cat9/wsmousedevprint.0		comp-sys-catman		.cat
+./usr/share/man/cat9/xc.0			comp-sys-catman		.cat
+./usr/share/man/cat9/xc_init_cpu.0		comp-sys-catman		.cat
+./usr/share/man/cat9/xc_broadcast.0		comp-sys-catman		.cat
+./usr/share/man/cat9/xc_unicast.0		comp-sys-catman		.cat
+./usr/share/man/cat9/xc_wait.0			comp-sys-catman		.cat
 ./usr/share/man/cat9/yield.0			comp-sys-catman		.cat
 ./usr/share/man/html1/addr2line.html		comp-debug-htmlman	binutils,html
 ./usr/share/man/html1/ar.html			comp-util-htmlman	binutils,html
@@ -14618,6 +14631,14 @@
 ./usr/share/man/html9/pcq_maxitems.html		comp-sys-htmlman	html
 ./usr/share/man/html9/pcq_peek.html		comp-sys-htmlman	html
 ./usr/share/man/html9/pcq_put.html		comp-sys-htmlman	html
+./usr/share/man/html9/percpu.html		comp-sys-htmlman	html
+./usr/share/man/html9/percpu_init.html		comp-sys-htmlman	html
+./usr/share/man/html9/percpu_init_cpu.html	comp-sys-htmlman	html
+./usr/share/man/html9/percpu_alloc.html		comp-sys-htmlman	html
+./usr/share/man/html9/percpu_free.html		comp-sys-htmlman	html
+./usr/share/man/html9/percpu_getref.html	comp-sys-htmlman	html
+./usr/share/man/html9/percpu_putref.html	comp-sys-htmlman	html
+./usr/share/man/html9/percpu_foreach.html	comp-sys-htmlman	html
 ./usr/share/man/html9/pfil.html			comp-sys-htmlman	html
 ./usr/share/man/html9/pfil_add_hook.html	comp-sys-htmlman	html
 ./usr/share/man/html9/pfil_head_get.html	comp-sys-htmlman	html
@@ -15067,6 +15088,11 @@
 ./usr/share/man/html9/wsmouse.html		comp-sys-htmlman	html
 ./usr/share/man/html9/wsmouse_input.html	comp-sys-htmlman	html
 ./usr/share/man/html9/wsmousedevprint.html	comp-sys-htmlman	html
+./usr/share/man/html9/xc.html			comp-sys-htmlman	html
+./usr/share/man/html9/xc_init_cpu.html		comp-sys-htmlman	html
+./usr/share/man/html9/xc_broadcast.html		comp-sys-htmlman	html
+./usr/share/man/html9/xc_unicast.html		comp-sys-htmlman	html
+./usr/share/man/html9/xc_wait.html		comp-sys-htmlman	html
 ./usr/share/man/html9/yield.html		comp-sys-htmlman	html
 ./usr/share/man/man1/addr2line.1		comp-debug-man		binutils,.man
 ./usr/share/man/man1/ar.1			comp-util-man		binutils,.man
@@ -20303,6 +20329,14 @@
 ./usr/share/man/man9/pcq_maxitems.9		comp-sys-man		.man
 ./usr/share/man/man9/pcq_peek.9			comp-sys-man		.man
 ./usr/share/man/man9/pcq_put.9			comp-sys-man		.man
+./usr/share/man/man9/percpu.9			comp-sys-man		.man
+./usr/share/man/man9/percpu_init.9		comp-sys-man		.man
+./usr/share/man/man9/percpu_init_cpu.9		comp-sys-man		.man
+./usr/share/man/man9/percpu_alloc.9		comp-sys-man		.man
+./usr/share/man/man9/percpu_free.9		comp-sys-man		.man
+./usr/share/man/man9/percpu_getref.9		comp-sys-man		.man
+./usr/share/man/man9/percpu_putref.9		comp-sys-man		.man
+./usr/share/man/man9/percpu_foreach.9		comp-sys-man		.man
 ./usr/share/man/man9/pfil.9			comp-sys-man		.man
 ./usr/share/man/man9/pfil_add_hook.9		comp-sys-man		.man
 ./usr/share/man/man9/pfil_get_head.9		comp-obsolete		obsolete
@@ -20798,6 +20832,11 @@
 ./usr/share/man/man9/wsmouse.9

CVS commit: src/share/man/man9

2010-01-22 Thread David Young
Module Name:src
Committed By:   dyoung
Date:   Fri Jan 22 23:27:01 UTC 2010

Modified Files:
src/share/man/man9: xc.9

Log Message:
Per rmind@'s suggestion, describe the cross-call implementation in more
detail (by pulling more text from sys/kern/subr_xcall.c).

Mention that a cross-call can be preempted, and xref kpreempt(9).


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/share/man/man9/xc.9

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

Modified files:

Index: src/share/man/man9/xc.9
diff -u src/share/man/man9/xc.9:1.1 src/share/man/man9/xc.9:1.2
--- src/share/man/man9/xc.9:1.1	Fri Jan 22 20:43:48 2010
+++ src/share/man/man9/xc.9	Fri Jan 22 23:27:01 2010
@@ -1,4 +1,4 @@
-.\" $NetBSD: xc.9,v 1.1 2010/01/22 20:43:48 dyoung Exp $
+.\" $NetBSD: xc.9,v 1.2 2010/01/22 23:27:01 dyoung Exp $
 .\"
 .\" Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -72,6 +72,22 @@
 be found.
 .Pp
 Cross calls help to solve these types of problem.
+.Pp
+.Nm
+provides a slow mechanism for making
+.Dq "low priority"
+cross calls.
+The function to be executed runs on the remote CPU within a bound
+kthread.
+No queueing is provided, and the implementation uses global state.
+The function being called may block briefly on locks, but in doing
+so must be careful to not interfere with other cross calls in the
+system.
+The function is called with thread context and not from a soft
+interrupt, so it can ensure that it is not interrupting other code
+running on the CPU, and so has exclusive access to the CPU.
+Since this facility is heavyweight, it's expected that it will not
+be used often.
 .Sh FUNCTIONS
 .Bl -tag -width compact
 .It Fn xc_init_cpu "ci"
@@ -93,7 +109,12 @@
 Always call
 .Fn xc_broadcast
 from thread context.
-Treat this as an expensive operation.
+Because
+.Fn (*func)
+is run at a low priority, it can be preempted.
+Treat
+.Fn xc_broadcast
+as an expensive operation.
 .It Fn xc_unicast "flags" "func" "arg1" "arg2" "ci"
 Like
 .Fn xc_broadcast ,
@@ -129,7 +150,8 @@
 .Pa sys/kern/subr_xcall.c .
 .\" .Sh EXAMPLES
 .Sh SEE ALSO
-.Xr percpu 9
+.Xr percpu 9 ,
+.Xr kpreempt 9
 .Sh HISTORY
 The
 .Nm



CVS commit: src/sbin/ifconfig

2010-01-22 Thread David Young
Module Name:src
Committed By:   dyoung
Date:   Fri Jan 22 23:50:07 UTC 2010

Modified Files:
src/sbin/ifconfig: af_inet6.c

Log Message:
Compare a pointer with NULL instead of testing its "truth."


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sbin/ifconfig/af_inet6.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/ifconfig/af_inet6.c
diff -u src/sbin/ifconfig/af_inet6.c:1.25 src/sbin/ifconfig/af_inet6.c:1.26
--- src/sbin/ifconfig/af_inet6.c:1.25	Fri Sep 11 22:06:29 2009
+++ src/sbin/ifconfig/af_inet6.c	Fri Jan 22 23:50:07 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: af_inet6.c,v 1.25 2009/09/11 22:06:29 dyoung Exp $	*/
+/*	$NetBSD: af_inet6.c,v 1.26 2010/01/22 23:50:07 dyoung Exp $	*/
 
 /*
  * Copyright (c) 1983, 1993
@@ -31,7 +31,7 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: af_inet6.c,v 1.25 2009/09/11 22:06:29 dyoung Exp $");
+__RCSID("$NetBSD: af_inet6.c,v 1.26 2010/01/22 23:50:07 dyoung Exp $");
 #endif /* not lint */
 
 #include  
@@ -247,7 +247,7 @@
 			}
 		}
 	}
-	if (!lladdr)
+	if (lladdr == NULL)
 		errx(EXIT_FAILURE, "could not determine link local address"); 
 
  	memcpy(&in6->s6_addr[8], &lladdr->s6_addr[8], 8);



CVS commit: src

2010-01-22 Thread Mindaugas Rasiukevicius
Module Name:src
Committed By:   rmind
Date:   Sat Jan 23 00:03:38 UTC 2010

Modified Files:
src/distrib/sets/lists/comp: mi
src/share/man/man9: Makefile
Added Files:
src/share/man/man9: xcall.9
Removed Files:
src/share/man/man9: xc.9

Log Message:
Rename xc(9) to xcall(9).  OK dyo...@.


To generate a diff of this commit:
cvs rdiff -u -r1.1369 -r1.1370 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.307 -r1.308 src/share/man/man9/Makefile
cvs rdiff -u -r1.2 -r0 src/share/man/man9/xc.9
cvs rdiff -u -r0 -r1.1 src/share/man/man9/xcall.9

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

Modified files:

Index: src/distrib/sets/lists/comp/mi
diff -u src/distrib/sets/lists/comp/mi:1.1369 src/distrib/sets/lists/comp/mi:1.1370
--- src/distrib/sets/lists/comp/mi:1.1369	Fri Jan 22 23:14:28 2010
+++ src/distrib/sets/lists/comp/mi	Sat Jan 23 00:03:38 2010
@@ -1,4 +1,4 @@
-#	$NetBSD: mi,v 1.1369 2010/01/22 23:14:28 dyoung Exp $
+#	$NetBSD: mi,v 1.1370 2010/01/23 00:03:38 rmind Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -9603,8 +9603,7 @@
 ./usr/share/man/cat9/wsmouse.0			comp-sys-catman		.cat
 ./usr/share/man/cat9/wsmouse_input.0		comp-sys-catman		.cat
 ./usr/share/man/cat9/wsmousedevprint.0		comp-sys-catman		.cat
-./usr/share/man/cat9/xc.0			comp-sys-catman		.cat
-./usr/share/man/cat9/xc_init_cpu.0		comp-sys-catman		.cat
+./usr/share/man/cat9/xcall.0			comp-sys-catman		.cat
 ./usr/share/man/cat9/xc_broadcast.0		comp-sys-catman		.cat
 ./usr/share/man/cat9/xc_unicast.0		comp-sys-catman		.cat
 ./usr/share/man/cat9/xc_wait.0			comp-sys-catman		.cat
@@ -15088,8 +15087,7 @@
 ./usr/share/man/html9/wsmouse.html		comp-sys-htmlman	html
 ./usr/share/man/html9/wsmouse_input.html	comp-sys-htmlman	html
 ./usr/share/man/html9/wsmousedevprint.html	comp-sys-htmlman	html
-./usr/share/man/html9/xc.html			comp-sys-htmlman	html
-./usr/share/man/html9/xc_init_cpu.html		comp-sys-htmlman	html
+./usr/share/man/html9/xcall.html		comp-sys-htmlman	html
 ./usr/share/man/html9/xc_broadcast.html		comp-sys-htmlman	html
 ./usr/share/man/html9/xc_unicast.html		comp-sys-htmlman	html
 ./usr/share/man/html9/xc_wait.html		comp-sys-htmlman	html
@@ -20832,8 +20830,7 @@
 ./usr/share/man/man9/wsmouse.9			comp-sys-man		.man
 ./usr/share/man/man9/wsmouse_input.9		comp-sys-man		.man
 ./usr/share/man/man9/wsmousedevprint.9		comp-sys-man		.man
-./usr/share/man/man9/xc.9			comp-sys-man		.man
-./usr/share/man/man9/xc_init_cpu.9		comp-sys-man		.man
+./usr/share/man/man9/xcall.9			comp-sys-man		.man
 ./usr/share/man/man9/xc_broadcast.9		comp-sys-man		.man
 ./usr/share/man/man9/xc_unicast.9		comp-sys-man		.man
 ./usr/share/man/man9/xc_wait.9			comp-sys-man		.man

Index: src/share/man/man9/Makefile
diff -u src/share/man/man9/Makefile:1.307 src/share/man/man9/Makefile:1.308
--- src/share/man/man9/Makefile:1.307	Fri Jan 22 23:14:29 2010
+++ src/share/man/man9/Makefile	Sat Jan 23 00:03:38 2010
@@ -1,4 +1,4 @@
-#   $NetBSD: Makefile,v 1.307 2010/01/22 23:14:29 dyoung Exp $
+#   $NetBSD: Makefile,v 1.308 2010/01/23 00:03:38 rmind Exp $
 
 #	Makefile for section 9 (kernel function and variable) manual pages.
 
@@ -56,7 +56,7 @@
 	ubc.9 usbdi.9 uvm.9 vmem.9 \
 	wdc.9 workqueue.9 \
 	wscons.9 wsdisplay.9 wsfont.9 wskbd.9 wsmouse.9 \
-	xc.9
+	xcall.9
 
 MAN+=	boothowto.9
 MLINKS+=boothowto.9 BOOT_FLAG.9
@@ -858,10 +858,9 @@
 	wskbd.9 wskbddevprint.9
 MLINKS+=wsmouse.9 wsmouse_input.9 \
 	wsmouse.9 wsmousedevprint.9
-MLINKS+=xc.9 xc_init_cpu.9 \
-	xc.9 xc_broadcast.9 \
-	xc.9 xc_unicast.9 \
-	xc.9 xc_wait.9
+MLINKS+=xcall.9 xc_broadcast.9 \
+	xcall.9 xc_unicast.9 \
+	xcall.9 xc_wait.9
 
 SUBDIR= man9.i386 man9.sun3
 

Added files:

Index: src/share/man/man9/xcall.9
diff -u /dev/null src/share/man/man9/xcall.9:1.1
--- /dev/null	Sat Jan 23 00:03:38 2010
+++ src/share/man/man9/xcall.9	Sat Jan 23 00:03:38 2010
@@ -0,0 +1,168 @@
+.\" $NetBSD: xcall.9,v 1.1 2010/01/23 00:03:38 rmind Exp $
+.\"
+.\" Copyright (c) 2010 The NetBSD Foundation, Inc.
+.\" All rights reserved.
+.\"
+.\" This code is derived from software contributed to The NetBSD Foundation
+.\" by Andrew Doran.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"notice, this list of conditions and the following disclaimer in the
+.\"documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 

CVS commit: src

2010-01-22 Thread Mindaugas Rasiukevicius
Module Name:src
Committed By:   rmind
Date:   Sat Jan 23 00:17:07 UTC 2010

Modified Files:
src/distrib/sets/lists/comp: mi
src/share/man/man9: Makefile percpu.9 xcall.9

Log Message:
Remove xc_init_cpu(), percpu_init(), percpu_init_cpu() - they are part
of implementation, not public API.  OK dyo...@.


To generate a diff of this commit:
cvs rdiff -u -r1.1370 -r1.1371 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.308 -r1.309 src/share/man/man9/Makefile
cvs rdiff -u -r1.5 -r1.6 src/share/man/man9/percpu.9
cvs rdiff -u -r1.1 -r1.2 src/share/man/man9/xcall.9

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

Modified files:

Index: src/distrib/sets/lists/comp/mi
diff -u src/distrib/sets/lists/comp/mi:1.1370 src/distrib/sets/lists/comp/mi:1.1371
--- src/distrib/sets/lists/comp/mi:1.1370	Sat Jan 23 00:03:38 2010
+++ src/distrib/sets/lists/comp/mi	Sat Jan 23 00:17:07 2010
@@ -1,4 +1,4 @@
-#	$NetBSD: mi,v 1.1370 2010/01/23 00:03:38 rmind Exp $
+#	$NetBSD: mi,v 1.1371 2010/01/23 00:17:07 rmind Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -9101,8 +9101,6 @@
 ./usr/share/man/cat9/pcq_peek.0			comp-sys-catman		.cat
 ./usr/share/man/cat9/pcq_put.0			comp-sys-catman		.cat
 ./usr/share/man/cat9/percpu.0			comp-sys-catman		.cat
-./usr/share/man/cat9/percpu_init.0		comp-sys-catman		.cat
-./usr/share/man/cat9/percpu_init_cpu.0		comp-sys-catman		.cat
 ./usr/share/man/cat9/percpu_alloc.0		comp-sys-catman		.cat
 ./usr/share/man/cat9/percpu_free.0		comp-sys-catman		.cat
 ./usr/share/man/cat9/percpu_getref.0		comp-sys-catman		.cat
@@ -14631,8 +14629,6 @@
 ./usr/share/man/html9/pcq_peek.html		comp-sys-htmlman	html
 ./usr/share/man/html9/pcq_put.html		comp-sys-htmlman	html
 ./usr/share/man/html9/percpu.html		comp-sys-htmlman	html
-./usr/share/man/html9/percpu_init.html		comp-sys-htmlman	html
-./usr/share/man/html9/percpu_init_cpu.html	comp-sys-htmlman	html
 ./usr/share/man/html9/percpu_alloc.html		comp-sys-htmlman	html
 ./usr/share/man/html9/percpu_free.html		comp-sys-htmlman	html
 ./usr/share/man/html9/percpu_getref.html	comp-sys-htmlman	html
@@ -20328,8 +20324,6 @@
 ./usr/share/man/man9/pcq_peek.9			comp-sys-man		.man
 ./usr/share/man/man9/pcq_put.9			comp-sys-man		.man
 ./usr/share/man/man9/percpu.9			comp-sys-man		.man
-./usr/share/man/man9/percpu_init.9		comp-sys-man		.man
-./usr/share/man/man9/percpu_init_cpu.9		comp-sys-man		.man
 ./usr/share/man/man9/percpu_alloc.9		comp-sys-man		.man
 ./usr/share/man/man9/percpu_free.9		comp-sys-man		.man
 ./usr/share/man/man9/percpu_getref.9		comp-sys-man		.man

Index: src/share/man/man9/Makefile
diff -u src/share/man/man9/Makefile:1.308 src/share/man/man9/Makefile:1.309
--- src/share/man/man9/Makefile:1.308	Sat Jan 23 00:03:38 2010
+++ src/share/man/man9/Makefile	Sat Jan 23 00:17:07 2010
@@ -1,4 +1,4 @@
-#   $NetBSD: Makefile,v 1.308 2010/01/23 00:03:38 rmind Exp $
+#   $NetBSD: Makefile,v 1.309 2010/01/23 00:17:07 rmind Exp $
 
 #	Makefile for section 9 (kernel function and variable) manual pages.
 
@@ -504,9 +504,7 @@
 	pcmcia.9 pcmcia_cis_read_4.9 \
 	pcmcia.9 pcmcia_cis_read_n.9 \
 	pcmcia.9 pcmcia_scan_cis.9
-MLINKS+=percpu.9 percpu_init.9 \
-	percpu.9 percpu_init_cpu.9 \
-	percpu.9 percpu_alloc.9 \
+MLINKS+=percpu.9 percpu_alloc.9 \
 	percpu.9 percpu_free.9 \
 	percpu.9 percpu_getref.9 \
 	percpu.9 percpu_putref.9 \

Index: src/share/man/man9/percpu.9
diff -u src/share/man/man9/percpu.9:1.5 src/share/man/man9/percpu.9:1.6
--- src/share/man/man9/percpu.9:1.5	Fri Jan 22 20:41:50 2010
+++ src/share/man/man9/percpu.9	Sat Jan 23 00:17:07 2010
@@ -1,4 +1,4 @@
-.\" $NetBSD: percpu.9,v 1.5 2010/01/22 20:41:50 dyoung Exp $
+.\" $NetBSD: percpu.9,v 1.6 2010/01/23 00:17:07 rmind Exp $
 .\"
 .\" Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,26 +27,20 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd January 22, 2010
+.Dd January 23, 2010
 .Dt PERCPU 9
 .Os
 .Sh NAME
-.Nm PERCPU ,
-.Nm percpu_init ,
-.Nm percpu_init_cpu ,
+.Nm percpu ,
 .Nm percpu_alloc ,
 .Nm percpu_free ,
 .Nm percpu_getref ,
 .Nm percpu_putref ,
 .Nm percpu_foreach
-.Nd Per-CPU storage allocator
+.Nd per-CPU storage allocator
 .Sh SYNOPSIS
 .In sys/percpu.h
 .Vt typedef void (*percpu_callback_t)(void *, void *, struct cpu_info *);
-.Ft void
-.Fn percpu_init "void"
-.Ft void
-.Fn percpu_init_cpu "struct cpu_info *ci"
 .Ft percpu_t *
 .Fn percpu_alloc "size_t size"
 .Ft void
@@ -83,16 +77,6 @@
 without causing interprocessor memory synchronization.
 .Sh FUNCTIONS
 .Bl -tag -width compact
-.It Fn percpu_init "void"
-Initialize the per-CPU storage subsystem.
-This is called just once, in
-.Fn main .
-.It Fn percpu_init_cpu "ci"
-Initialize per-CPU storage on the CPU given by
-.Fa ci .
-The kernel must call this before the CPU appears on the
-global CPUs list for
-.Dv C

CVS commit: src/share/man/man9

2010-01-22 Thread Mindaugas Rasiukevicius
Module Name:src
Committed By:   rmind
Date:   Sat Jan 23 00:47:04 UTC 2010

Modified Files:
src/share/man/man9: xcall.9

Log Message:
xcall(9): correct the point about preemption, add NOTES, do not mentioned
some implementation details.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/share/man/man9/xcall.9

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

Modified files:

Index: src/share/man/man9/xcall.9
diff -u src/share/man/man9/xcall.9:1.2 src/share/man/man9/xcall.9:1.3
--- src/share/man/man9/xcall.9:1.2	Sat Jan 23 00:17:07 2010
+++ src/share/man/man9/xcall.9	Sat Jan 23 00:47:03 2010
@@ -1,4 +1,4 @@
-.\" $NetBSD: xcall.9,v 1.2 2010/01/23 00:17:07 rmind Exp $
+.\" $NetBSD: xcall.9,v 1.3 2010/01/23 00:47:03 rmind Exp $
 .\"
 .\" Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -61,7 +61,7 @@
 will be running on the CPU where the update must occur, when the
 update occurs.
 .Pp
-Additionally, it's sometimes necessary to modify per-CPU software
+Additionally, it is sometimes necessary to modify per-CPU software
 state from a remote CPU.
 Where these update operations are so rare or the access to the
 per-CPU data so frequent that the cost of using locking or atomic
@@ -69,22 +69,22 @@
 be found.
 .Pp
 Cross calls help to solve these types of problem.
+However, since this facility is heavyweight, it is expected that
+it will not be used often.
 .Pp
 .Nm
-provides a slow mechanism for making
+provides a mechanism for making
 .Dq "low priority"
 cross calls.
-The function to be executed runs on the remote CPU within a bound
-kthread.
-No queueing is provided, and the implementation uses global state.
-The function being called may block briefly on locks, but in doing
-so must be careful to not interfere with other cross calls in the
-system.
-The function is called with thread context and not from a soft
-interrupt, so it can ensure that it is not interrupting other code
-running on the CPU, and so has exclusive access to the CPU.
-Since this facility is heavyweight, it's expected that it will not
-be used often.
+The function to be executed runs on the remote CPU within a thread
+context, and not from a software interrupt, so it can ensure that it is
+not interrupting other code running on the CPU, and so has exclusive
+access to the CPU.
+Keep in mind that unless disabled, it may cause a kernel preemption.
+.Sh NOTES
+Functions being called should be relatively lightweight.
+They may block on locks, but carefully and minimally, to not interfere
+with other cross calls in the system.
 .Sh FUNCTIONS
 .Bl -tag -width compact
 .It Fn xc_broadcast "flags" "func" "arg1" "arg2"
@@ -100,15 +100,10 @@
 to
 .Fn xc_wait
 on for the cross-call to complete.
-Always call
+.Fa flags
+should be 0.
 .Fn xc_broadcast
-from thread context.
-Because
-.Fn (*func)
-is run at a low priority, it can be preempted.
-Treat
-.Fn xc_broadcast
-as an expensive operation.
+should not be called from interrupt context.
 .It Fn xc_unicast "flags" "func" "arg1" "arg2" "ci"
 Like
 .Fn xc_broadcast ,
@@ -153,10 +148,3 @@
 .Nx 5.0 .
 .Sh AUTHORS
 .An Andrew Doran Aq a...@netbsd.org
-.Sh CAVEATS
-Cross calls must not allocate memory, as the pagedaemon uses them
-.Po
-and memory allocation may need to wait on the pagedaemon
-.Pc .
-.\" .Sh BUGS
-.\" .Sh SECURITY CONSIDERATIONS



CVS commit: src/share/man/man9

2010-01-22 Thread Mindaugas Rasiukevicius
Module Name:src
Committed By:   rmind
Date:   Sat Jan 23 00:54:43 UTC 2010

Modified Files:
src/share/man/man9: kmem.9 percpu.9 pool_cache.9

Log Message:
Cross-link a little.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/share/man/man9/kmem.9
cvs rdiff -u -r1.6 -r1.7 src/share/man/man9/percpu.9
cvs rdiff -u -r1.14 -r1.15 src/share/man/man9/pool_cache.9

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

Modified files:

Index: src/share/man/man9/kmem.9
diff -u src/share/man/man9/kmem.9:1.3 src/share/man/man9/kmem.9:1.4
--- src/share/man/man9/kmem.9:1.3	Mon Aug  3 22:20:07 2009
+++ src/share/man/man9/kmem.9	Sat Jan 23 00:54:43 2010
@@ -1,4 +1,4 @@
-.\"	$NetBSD: kmem.9,v 1.3 2009/08/03 22:20:07 wiz Exp $
+.\"	$NetBSD: kmem.9,v 1.4 2010/01/23 00:54:43 rmind Exp $
 .\"
 .\" Copyright (c)2006 YAMAMOTO Takashi,
 .\" All rights reserved.
@@ -245,6 +245,7 @@
 .Sh SEE ALSO
 .Xr intro 9 ,
 .Xr memoryallocators 9 ,
+.Xr percpu 9 ,
 .Xr pool_cache 9
 .\" 
 .Sh CAVEATS

Index: src/share/man/man9/percpu.9
diff -u src/share/man/man9/percpu.9:1.6 src/share/man/man9/percpu.9:1.7
--- src/share/man/man9/percpu.9:1.6	Sat Jan 23 00:17:07 2010
+++ src/share/man/man9/percpu.9	Sat Jan 23 00:54:43 2010
@@ -1,4 +1,4 @@
-.\" $NetBSD: percpu.9,v 1.6 2010/01/23 00:17:07 rmind Exp $
+.\" $NetBSD: percpu.9,v 1.7 2010/01/23 00:54:43 rmind Exp $
 .\"
 .\" Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -158,7 +158,9 @@
 .\" .Sh EXAMPLES
 .Sh SEE ALSO
 .Xr atomic_ops 3 ,
+.Xr kmem 9 ,
 .Xr pcq 9 ,
+.Xr pool_cache 9 ,
 .Xr xc 9
 .Sh HISTORY
 The

Index: src/share/man/man9/pool_cache.9
diff -u src/share/man/man9/pool_cache.9:1.14 src/share/man/man9/pool_cache.9:1.15
--- src/share/man/man9/pool_cache.9:1.14	Thu Dec 24 22:45:15 2009
+++ src/share/man/man9/pool_cache.9	Sat Jan 23 00:54:43 2010
@@ -1,4 +1,4 @@
-.\"	$NetBSD: pool_cache.9,v 1.14 2009/12/24 22:45:15 bad Exp $
+.\"	$NetBSD: pool_cache.9,v 1.15 2010/01/23 00:54:43 rmind Exp $
 .\"
 .\" Copyright (c)2003 YAMAMOTO Takashi,
 .\" All rights reserved.
@@ -329,4 +329,5 @@
 .Xr intro 9 ,
 .Xr kmem 9 ,
 .Xr memoryallocators 9 ,
+.Xr percpu 9,
 .Xr pool 9



CVS commit: src/sys/dist/pf/net

2010-01-22 Thread Min Sik Kim
Module Name:src
Committed By:   minskim
Date:   Sat Jan 23 01:17:23 UTC 2010

Modified Files:
src/sys/dist/pf/net: if_pfsync.c

Log Message:
Fix a typo introduced by the bpf linkage change.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dist/pf/net/if_pfsync.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/dist/pf/net/if_pfsync.c
diff -u src/sys/dist/pf/net/if_pfsync.c:1.4 src/sys/dist/pf/net/if_pfsync.c:1.5
--- src/sys/dist/pf/net/if_pfsync.c:1.4	Tue Jan 19 22:08:00 2010
+++ src/sys/dist/pf/net/if_pfsync.c	Sat Jan 23 01:17:23 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_pfsync.c,v 1.4 2010/01/19 22:08:00 pooka Exp $	*/
+/*	$NetBSD: if_pfsync.c,v 1.5 2010/01/23 01:17:23 minskim Exp $	*/
 /*	$OpenBSD: if_pfsync.c,v 1.83 2007/06/26 14:44:12 mcbride Exp $	*/
 
 /*
@@ -28,7 +28,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_pfsync.c,v 1.4 2010/01/19 22:08:00 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_pfsync.c,v 1.5 2010/01/23 01:17:23 minskim Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -192,7 +192,7 @@
 	if_alloc_sadl(ifp);
 
 	bpf_ops->bpf_attach(&pfsyncif->sc_if, DLT_PFSYNC, PFSYNC_HDRLEN,
-	&pfsyncif->sc_if->if_bpf);
+	&pfsyncif->sc_if.if_bpf);
 
 	return (0);
 }



CVS commit: src

2010-01-22 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Jan 23 01:32:06 UTC 2010

Modified Files:
src/share/man/man4: ddb.4
src/sys/arch/powerpc/powerpc: db_interface.c

Log Message:
document powerpc ddb commands.  PR#38307.


To generate a diff of this commit:
cvs rdiff -u -r1.129 -r1.130 src/share/man/man4/ddb.4
cvs rdiff -u -r1.39 -r1.40 src/sys/arch/powerpc/powerpc/db_interface.c

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

Modified files:

Index: src/share/man/man4/ddb.4
diff -u src/share/man/man4/ddb.4:1.129 src/share/man/man4/ddb.4:1.130
--- src/share/man/man4/ddb.4:1.129	Sun Jan 10 09:08:23 2010
+++ src/share/man/man4/ddb.4	Sat Jan 23 01:32:06 2010
@@ -1,4 +1,4 @@
-.\"	$NetBSD: ddb.4,v 1.129 2010/01/10 09:08:23 wiz Exp $
+.\"	$NetBSD: ddb.4,v 1.130 2010/01/23 01:32:06 mrg Exp $
 .\"
 .\" Copyright (c) 1997 - 2009 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -938,12 +938,33 @@
 .Dv DEBUG
 option.
 .El
+.Ss POWERPC
+.Bl -tag -width "traptrace" -compact
+.It Ic ctx
+Print process MMU context information.
+.It Ic pv
+Print PA->VA mapping information.
+.It Ic reset
+Reset the system.
+.It Ic tf
+Display the contents of the trapframe.
+.It Ic tlb
+Display instruction translation storage buffer information.
+.It Ic dcr
+Set the DCR register.
+Must be between 0x00 and 0x3ff.
+.It Ic user
+Display user memory.
+Use the
+.Dq i
+modifier to get instruction decoding.
+.El
 .Ss SH3
 .Bl -tag -width "traptrace" -compact
 .It Ic tlb
-Print TLB entries
+Print TLB entries.
 .It Ic cache
-Print cache entries
+Print cache entries.
 .It Ic frame
 Print switch frame and trap frames.
 .It Ic stack

Index: src/sys/arch/powerpc/powerpc/db_interface.c
diff -u src/sys/arch/powerpc/powerpc/db_interface.c:1.39 src/sys/arch/powerpc/powerpc/db_interface.c:1.40
--- src/sys/arch/powerpc/powerpc/db_interface.c:1.39	Wed Oct 17 19:56:47 2007
+++ src/sys/arch/powerpc/powerpc/db_interface.c	Sat Jan 23 01:32:06 2010
@@ -1,8 +1,8 @@
-/*	$NetBSD: db_interface.c,v 1.39 2007/10/17 19:56:47 garbled Exp $ */
+/*	$NetBSD: db_interface.c,v 1.40 2010/01/23 01:32:06 mrg Exp $ */
 /*	$OpenBSD: db_interface.c,v 1.2 1996/12/28 06:21:50 rahnds Exp $	*/
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.39 2007/10/17 19:56:47 garbled Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.40 2010/01/23 01:32:06 mrg Exp $");
 
 #define USERACC
 
@@ -194,16 +194,33 @@
 
 #ifdef DDB
 const struct db_command db_machine_command_table[] = {
-	{ DDB_ADD_CMD("ctx",	db_ppc4xx_ctx,		0,	NULL,NULL,NULL) },
-	{ DDB_ADD_CMD("pv",		db_ppc4xx_pv,		0,	NULL,NULL,NULL) },
-	{ DDB_ADD_CMD("reset",	db_ppc4xx_reset,	0,	NULL,NULL,NULL) },
-	{ DDB_ADD_CMD("tf",		db_ppc4xx_tf,		0,	NULL,NULL,NULL) },
-	{ DDB_ADD_CMD("tlb",	db_ppc4xx_dumptlb,	0,	NULL,NULL,NULL) },
-	{ DDB_ADD_CMD("dcr",	db_ppc4xx_dcr,		CS_MORE|CS_SET_DOT,	NULL,NULL,NULL) },
+	{ DDB_ADD_CMD("ctx",	db_ppc4xx_ctx,		0,
+	  "Print process MMU context information", NULL,NULL) },
+	{ DDB_ADD_CMD("pv",	db_ppc4xx_pv,		0,
+	  "Print PA->VA mapping information",
+	  "address",
+	  "   address:\tphysical address to look up") },
+	{ DDB_ADD_CMD("reset",	db_ppc4xx_reset,	0,
+	  "Reset the system ", NULL,NULL) },
+	{ DDB_ADD_CMD("tf",	db_ppc4xx_tf,		0,
+	  "Display the contents of the trapframe",
+	  "address",
+	  "   address:\tthe struct trapframe to print") },
+	{ DDB_ADD_CMD("tlb",	db_ppc4xx_dumptlb,	0,
+	  "Display instruction translation storage buffer information.",
+	  NULL,NULL) },
+	{ DDB_ADD_CMD("dcr",	db_ppc4xx_dcr,		CS_MORE|CS_SET_DOT,
+	  "Set the DCR register",
+	  "dcr",
+	  "   dcr:\tNew DCR value (between 0x0 and 0x3ff)") },
 #ifdef USERACC
-	{ DDB_ADD_CMD("user",	db_ppc4xx_useracc,	0,	NULL,NULL,NULL) },
+	{ DDB_ADD_CMD("user",	db_ppc4xx_useracc,	0,
+	   "Display user memory.", "[address][,count]",
+	   "   address:\tuserspace address to start\n"
+	   "   count:\tnumber of bytes to display") },
 #endif
-	{ DDB_ADD_CMD(NULL, NULL,   0,  NULL,NULL,NULL) }
+	{ DDB_ADD_CMD(NULL,	NULL,			0, 
+	  NULL,NULL,NULL) }
 };
 
 static void



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

2010-01-22 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Sat Jan 23 06:13:20 UTC 2010

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

Log Message:
Switch to ACPICA 20090730, and update for API changes.


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

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

Modified files:

Index: src/sys/arch/ia64/ia64/mainbus.c
diff -u src/sys/arch/ia64/ia64/mainbus.c:1.6 src/sys/arch/ia64/ia64/mainbus.c:1.7
--- src/sys/arch/ia64/ia64/mainbus.c:1.6	Mon Jul 20 06:12:41 2009
+++ src/sys/arch/ia64/ia64/mainbus.c	Sat Jan 23 06:13:20 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: mainbus.c,v 1.6 2009/07/20 06:12:41 kiyohara Exp $	*/
+/*	$NetBSD: mainbus.c,v 1.7 2010/01/23 06:13:20 kiyohara Exp $	*/
 
 /*-
  * Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -29,15 +29,17 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.6 2009/07/20 06:12:41 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.7 2010/01/23 06:13:20 kiyohara Exp $");
 
-#include "acpi.h"
+#include "acpica.h"
 
 #include 
 #include 
 #include 
 
+#if NACPICA > 0
 #include 
+#endif
 
 
 static int mainbus_match(device_t, cfdata_t, void *);
@@ -64,14 +66,14 @@
 static void
 mainbus_attach(device_t parent, device_t self, void *aux)
 {
-#if NACPI > 0
+#if NACPICA > 0
 	struct acpibus_attach_args aaa;
 #endif
 
 	aprint_naive("\n");
 	aprint_normal("\n");
 
-#if NACPI > 0
+#if NACPICA > 0
 	acpi_probe();
 
 	aaa.aa_iot = IA64_BUS_SPACE_IO;



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

2010-01-22 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Sat Jan 23 06:20:32 UTC 2010

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

Log Message:
Initialize md_syscall in syscall_intern().  But the md_syscall of ia64 not
support yet.
And remove white-space.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/ia64/ia64/syscall.c

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

Modified files:

Index: src/sys/arch/ia64/ia64/syscall.c
diff -u src/sys/arch/ia64/ia64/syscall.c:1.4 src/sys/arch/ia64/ia64/syscall.c:1.5
--- src/sys/arch/ia64/ia64/syscall.c:1.4	Mon Jul 20 04:41:37 2009
+++ src/sys/arch/ia64/ia64/syscall.c	Sat Jan 23 06:20:31 2010
@@ -1,11 +1,11 @@
-/* $NetBSD: syscall.c,v 1.4 2009/07/20 04:41:37 kiyohara Exp $ */
+/* $NetBSD: syscall.c,v 1.5 2010/01/23 06:20:31 kiyohara Exp $ */
 
 /*
  * Copyright (c) 2006 The NetBSD Foundation, Inc.
  * All rights reserved.
  *
  *
- * Author: 
+ * Author:
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -32,7 +32,7 @@
 
 #include 			/* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.4 2009/07/20 04:41:37 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.5 2010/01/23 06:20:31 kiyohara Exp $");
 
 #include 
 #include 
@@ -47,8 +47,11 @@
 void
 syscall_intern(struct proc *p)
 {
-printf("%s: not yet\n", __func__);
-	return;
+
+	if (trace_is_enabled(p))
+		p->p_md.md_syscall = syscall_fancy;
+	else
+		p->p_md.md_syscall = syscall_plain;
 }
 
 /*



CVS commit: [matt-nb5-mips64] src/sys/arch/mips/rmi

2010-01-22 Thread Cliff Neighbors
Module Name:src
Committed By:   cliff
Date:   Sat Jan 23 07:45:59 UTC 2010

Modified Files:
src/sys/arch/mips/rmi [matt-nb5-mips64]: rmixl_firmware.h

Log Message:
define RMI firmware IPIs


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.3 -r1.1.2.4 src/sys/arch/mips/rmi/rmixl_firmware.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/mips/rmi/rmixl_firmware.h
diff -u src/sys/arch/mips/rmi/rmixl_firmware.h:1.1.2.3 src/sys/arch/mips/rmi/rmixl_firmware.h:1.1.2.4
--- src/sys/arch/mips/rmi/rmixl_firmware.h:1.1.2.3	Sun Jan 17 00:01:39 2010
+++ src/sys/arch/mips/rmi/rmixl_firmware.h	Sat Jan 23 07:45:58 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: rmixl_firmware.h,v 1.1.2.3 2010/01/17 00:01:39 cliff Exp $	*/
+/*	$NetBSD: rmixl_firmware.h,v 1.1.2.4 2010/01/23 07:45:58 cliff Exp $	*/
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -189,4 +189,9 @@
 	};
 } rmixlfw_cpu_wakeup_info_t;
 
+/* RMI firmware-defined IPI IRQs */
+#define RMIXLFW_IPI_STOP	51
+#define RMIXLFW_IPI_WAKEUP	52
+#define RMIXLFW_IPI_RECLAIM	53
+
 #endif	/* _ARCH_MIPS_RMI_RMIXL_FIRMWARE_H_ */