CVS commit: src/external/mit/xorg/lib/pixman

2013-05-07 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue May  7 07:01:39 UTC 2013

Modified Files:
src/external/mit/xorg/lib/pixman: Makefile

Log Message:
Enable SSE2 support for i386 - the -current compiler seems to get the
alignment right.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/external/mit/xorg/lib/pixman/Makefile

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

Modified files:

Index: src/external/mit/xorg/lib/pixman/Makefile
diff -u src/external/mit/xorg/lib/pixman/Makefile:1.22 src/external/mit/xorg/lib/pixman/Makefile:1.23
--- src/external/mit/xorg/lib/pixman/Makefile:1.22	Thu May  2 21:40:57 2013
+++ src/external/mit/xorg/lib/pixman/Makefile	Tue May  7 07:01:37 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.22 2013/05/02 21:40:57 skrll Exp $
+#	$NetBSD: Makefile,v 1.23 2013/05/07 07:01:37 martin Exp $
 
 NOLINT=	1	# defined
 
@@ -43,10 +43,12 @@ SRCS=	\
 # XXX
 
 .if ${MACHINE_ARCH} == i386
-# SSE2 does not work, for unknown reasons
 SRCS+= pixman-mmx.c
 COPTS.pixman-mmx.c=	-mmmx -fvisibility=hidden
-MKDEPFLAGS+=		-mmmx -fvisibility=hidden
+MKDEPFLAGS+=		-mmmx -msse2 -fvisibility=hidden
+SRCS+=	pixman-sse2.c
+COPTS.pixman-sse2.c=	-msse2 -fvisibility=hidden
+CPPFLAGS+=	-DUSE_SSE2 -DUSE_X86_MMX
 .elif ${MACHINE_ARCH} == x86_64
 SRCS+=	pixman-sse2.c
 COPTS.pixman-sse2.c=	-msse2 -fvisibility=hidden



CVS commit: src/sys/ufs/ffs

2013-05-07 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Tue May  7 09:40:54 UTC 2013

Modified Files:
src/sys/ufs/ffs: ffs_snapshot.c

Log Message:
When invalidating short buffers on the snapshots clean list use bbusy()
to mark the buffer busy.  There exists a small window where a buffer is
done but not released and therefore still busy.


To generate a diff of this commit:
cvs rdiff -u -r1.121 -r1.122 src/sys/ufs/ffs/ffs_snapshot.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/ufs/ffs/ffs_snapshot.c
diff -u src/sys/ufs/ffs/ffs_snapshot.c:1.121 src/sys/ufs/ffs/ffs_snapshot.c:1.122
--- src/sys/ufs/ffs/ffs_snapshot.c:1.121	Tue Jan 22 09:39:16 2013
+++ src/sys/ufs/ffs/ffs_snapshot.c	Tue May  7 09:40:54 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: ffs_snapshot.c,v 1.121 2013/01/22 09:39:16 dholland Exp $	*/
+/*	$NetBSD: ffs_snapshot.c,v 1.122 2013/05/07 09:40:54 hannken Exp $	*/
 
 /*
  * Copyright 2000 Marshall Kirk McKusick. All Rights Reserved.
@@ -38,7 +38,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: ffs_snapshot.c,v 1.121 2013/01/22 09:39:16 dholland Exp $);
+__KERNEL_RCSID(0, $NetBSD: ffs_snapshot.c,v 1.122 2013/05/07 09:40:54 hannken Exp $);
 
 #if defined(_KERNEL_OPT)
 #include opt_ffs.h
@@ -345,11 +345,17 @@ ffs_snapshot(struct mount *mp, struct vn
 	KASSERT(LIST_FIRST(vp-v_dirtyblkhd) == NULL);
 	for (bp = LIST_FIRST(vp-v_cleanblkhd); bp; bp = nbp) {
 		nbp = LIST_NEXT(bp, b_vnbufs);
-		KASSERT((bp-b_cflags  BC_BUSY) == 0);
-		if (bp-b_bcount  fs-fs_bsize) {
-			bp-b_cflags |= BC_BUSY;
-			brelsel(bp, BC_INVAL | BC_VFLUSH);
+		if (bp-b_bcount == fs-fs_bsize)
+			continue;
+		error = bbusy(bp, false, 0, NULL);
+		if (error != 0) {
+			if (error == EPASSTHROUGH) {
+nbp = LIST_FIRST(vp-v_cleanblkhd);
+continue;
+			}
+			break;
 		}
+		brelsel(bp, BC_INVAL | BC_VFLUSH);
 	}
 	mutex_exit(bufcache_lock);
 



CVS commit: src/usr.bin/ldd

2013-05-07 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue May  7 13:00:36 UTC 2013

Modified Files:
src/usr.bin/ldd: Makefile.elf

Log Message:
include symver.c


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/ldd/Makefile.elf

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

Modified files:

Index: src/usr.bin/ldd/Makefile.elf
diff -u src/usr.bin/ldd/Makefile.elf:1.4 src/usr.bin/ldd/Makefile.elf:1.5
--- src/usr.bin/ldd/Makefile.elf:1.4	Wed Mar  9 18:10:08 2011
+++ src/usr.bin/ldd/Makefile.elf	Tue May  7 09:00:35 2013
@@ -1,10 +1,10 @@
-#	$NetBSD: Makefile.elf,v 1.4 2011/03/09 23:10:08 joerg Exp $
+#	$NetBSD: Makefile.elf,v 1.5 2013/05/07 13:00:35 christos Exp $
 
 # Makefile fragment to build a (32 or 64 bit) libldd_elfxx.a.
 # Expects CPPFLAGS to have ELFSIZE set, and LIB to be set.
 
 SRCS=	ldd_elfxx.c
 SRCS+=	xmalloc.c debug.c expand.c map_object.c load.c search.c \
-	headers.c paths.c tls.c
+	headers.c paths.c tls.c symver.c
 
 .include Makefile.common



CVS commit: src/libexec/ld.elf_so

2013-05-07 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue May  7 13:01:07 UTC 2013

Modified Files:
src/libexec/ld.elf_so: symver.c

Log Message:
we don't need the versioning stuff for ldd


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/libexec/ld.elf_so/symver.c

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

Modified files:

Index: src/libexec/ld.elf_so/symver.c
diff -u src/libexec/ld.elf_so/symver.c:1.2 src/libexec/ld.elf_so/symver.c:1.3
--- src/libexec/ld.elf_so/symver.c:1.2	Mon May  6 15:59:30 2013
+++ src/libexec/ld.elf_so/symver.c	Tue May  7 09:01:07 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: symver.c,v 1.2 2013/05/06 19:59:30 christos Exp $	*/
+/*	$NetBSD: symver.c,v 1.3 2013/05/07 13:01:07 christos Exp $	*/
 
 /*-
  * Copyright 1996, 1997, 1998, 1999, 2000 John D. Polstra.
@@ -59,7 +59,7 @@
  */
 
 #include sys/cdefs.h
-__RCSID($NetBSD: symver.c,v 1.2 2013/05/06 19:59:30 christos Exp $);
+__RCSID($NetBSD: symver.c,v 1.3 2013/05/07 13:01:07 christos Exp $);
 
 #include sys/param.h
 #include sys/exec_elf.h
@@ -96,6 +96,7 @@ _rtld_object_match_name(const Obj_Entry 
 	return 0;
 }
 
+#ifdef RTLD_LOADER
 static Obj_Entry *
 locate_dependency(const Obj_Entry *obj, const char *name)
 {
@@ -329,3 +330,4 @@ _rtld_verify_object_versions(Obj_Entry *
 
 	return 0;
 }
+#endif



CVS commit: src/share/misc

2013-05-07 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Tue May  7 14:55:37 UTC 2013

Modified Files:
src/share/misc: bsd-family-tree

Log Message:
Add DragonFly 3.2.1, DragonFly 3.4.1, FreeBSD 9.1, OpenBSD 5.2, OpenBSD 5.3.

Adapted from FreeBSD base/head/share/misc/bsd-family-tree (svn revision
250330), but the NetBSD version of this file includes entries for
NetBSD-5.0.1 and NetBSD-5.0.2 which are missing from the FreeBSD
version.

Resolves PR misc/47799 from Eitan Adler


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/share/misc/bsd-family-tree

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

Modified files:

Index: src/share/misc/bsd-family-tree
diff -u src/share/misc/bsd-family-tree:1.47 src/share/misc/bsd-family-tree:1.48
--- src/share/misc/bsd-family-tree:1.47	Wed Oct 24 19:33:04 2012
+++ src/share/misc/bsd-family-tree	Tue May  7 14:55:36 2013
@@ -252,11 +252,18 @@ FreeBSD 5.2   |  |  
  | |  |  | |   OpenBSD 5.0 |
  *--FreeBSD|  |  | |   |   |
  |9.0  |  |  |  NetBSD 5.1.2   |   DragonFly 3.0.1
- | vFreeBSD   |  | |   |
- |8.3 |  | OpenBSD 5.1 |
- | Mac OS X  | |   |
- |   10.8| |   |
- ||   NetBSD 6.0   |   |
+ | |FreeBSD   |  | |   |
+ | |  8.3 |  | OpenBSD 5.1 |
+ | |   Mac OS X  | |   |
+ | | 10.8| |   |
+ | |  |   NetBSD 6.0   |   |
+ | |  |  | OpenBSD 5.2 DragonFly 3.2.1
+ |  FreeBSD   |  | |   |
+ |9.1 |  | |   |
+ ||  | |   |
+ ||  |OpenBSD 5.3  DragonFly 3.4.1
+ ||  | |   |
+ ||  | |   |
  ||  | |   |
 FreeBSD 10 -current   |  NetBSD -current  OpenBSD -current |
  ||  | |   |
@@ -555,6 +562,11 @@ FreeBSD 8.3		2012-04-18 [FBD]
 OpenBSD 5.1		2012-05-01 [OBD]
 Mac OS X 10.8		2012-07-25 [APL]
 NetBSD 6.0		2012-10-17 [NBD]
+OpenBSD 5.2		2012-11-01 [OBD]
+DragonFly 3.2.1		2012-11-02 [DFB]
+FreeBSD 9.1		2012-12-30 [FBD]
+DragonFly 3.4.1		2013-04-29 [DFB]
+OpenBSD 5.3		2013-05-01 [OBD]
 
 Bibliography
 



CVS commit: src/lib/librumpuser

2013-05-07 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue May  7 15:18:35 UTC 2013

Modified Files:
src/lib/librumpuser: rumpuser_bio.c rumpuser_component.c
rumpuser_daemonize.c

Log Message:
include stdint.h before rumpuser.h (on some platforms it doesn't get
there automagically)


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/librumpuser/rumpuser_bio.c \
src/lib/librumpuser/rumpuser_component.c \
src/lib/librumpuser/rumpuser_daemonize.c

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

Modified files:

Index: src/lib/librumpuser/rumpuser_bio.c
diff -u src/lib/librumpuser/rumpuser_bio.c:1.5 src/lib/librumpuser/rumpuser_bio.c:1.6
--- src/lib/librumpuser/rumpuser_bio.c:1.5	Mon Apr 29 14:54:03 2013
+++ src/lib/librumpuser/rumpuser_bio.c	Tue May  7 15:18:35 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: rumpuser_bio.c,v 1.5 2013/04/29 14:54:03 pooka Exp $	*/
+/*	$NetBSD: rumpuser_bio.c,v 1.6 2013/05/07 15:18:35 pooka Exp $	*/
 
 /*-
  * Copyright (c) 2013 Antti Kantee.  All Rights Reserved.
@@ -32,6 +32,7 @@
 #include assert.h
 #include errno.h
 #include pthread.h
+#include stdint.h
 #include stdio.h
 #include string.h
 #include unistd.h
Index: src/lib/librumpuser/rumpuser_component.c
diff -u src/lib/librumpuser/rumpuser_component.c:1.5 src/lib/librumpuser/rumpuser_component.c:1.6
--- src/lib/librumpuser/rumpuser_component.c:1.5	Tue Apr 30 12:39:20 2013
+++ src/lib/librumpuser/rumpuser_component.c	Tue May  7 15:18:35 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: rumpuser_component.c,v 1.5 2013/04/30 12:39:20 pooka Exp $	*/
+/*	$NetBSD: rumpuser_component.c,v 1.6 2013/05/07 15:18:35 pooka Exp $	*/
 
 /*
  * Copyright (c) 2013 Antti Kantee.  All Rights Reserved.
@@ -28,9 +28,11 @@
 #include rumpuser_port.h
 
 #if !defined(lint)
-__RCSID($NetBSD: rumpuser_component.c,v 1.5 2013/04/30 12:39:20 pooka Exp $);
+__RCSID($NetBSD: rumpuser_component.c,v 1.6 2013/05/07 15:18:35 pooka Exp $);
 #endif /* !lint */
 
+#include stdint.h
+
 /*
  * These interfaces affect the shlib major/minor; they can be called from
  * any program when applicable.  The rest of the interfaces provided
Index: src/lib/librumpuser/rumpuser_daemonize.c
diff -u src/lib/librumpuser/rumpuser_daemonize.c:1.5 src/lib/librumpuser/rumpuser_daemonize.c:1.6
--- src/lib/librumpuser/rumpuser_daemonize.c:1.5	Tue Apr 30 12:39:20 2013
+++ src/lib/librumpuser/rumpuser_daemonize.c	Tue May  7 15:18:35 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: rumpuser_daemonize.c,v 1.5 2013/04/30 12:39:20 pooka Exp $	*/
+/*	$NetBSD: rumpuser_daemonize.c,v 1.6 2013/05/07 15:18:35 pooka Exp $	*/
 
 /*
  * Copyright (c) 2010 Antti Kantee.  All Rights Reserved.
@@ -28,7 +28,7 @@
 #include rumpuser_port.h
 
 #if !defined(lint)
-__RCSID($NetBSD: rumpuser_daemonize.c,v 1.5 2013/04/30 12:39:20 pooka Exp $);
+__RCSID($NetBSD: rumpuser_daemonize.c,v 1.6 2013/05/07 15:18:35 pooka Exp $);
 #endif /* !lint */
 
 #include sys/types.h
@@ -36,6 +36,7 @@ __RCSID($NetBSD: rumpuser_daemonize.c,v
 
 #include errno.h
 #include fcntl.h
+#include stdint.h
 #include stdio.h
 #include unistd.h
 



CVS commit: src/lib/librumpuser

2013-05-07 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue May  7 15:37:05 UTC 2013

Modified Files:
src/lib/librumpuser: rumpuser_pth_dummy.c

Log Message:
update to recent interface changes


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/lib/librumpuser/rumpuser_pth_dummy.c

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

Modified files:

Index: src/lib/librumpuser/rumpuser_pth_dummy.c
diff -u src/lib/librumpuser/rumpuser_pth_dummy.c:1.13 src/lib/librumpuser/rumpuser_pth_dummy.c:1.14
--- src/lib/librumpuser/rumpuser_pth_dummy.c:1.13	Thu May  2 19:14:59 2013
+++ src/lib/librumpuser/rumpuser_pth_dummy.c	Tue May  7 15:37:05 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: rumpuser_pth_dummy.c,v 1.13 2013/05/02 19:14:59 pooka Exp $	*/
+/*	$NetBSD: rumpuser_pth_dummy.c,v 1.14 2013/05/07 15:37:05 pooka Exp $	*/
 
 /*
  * Copyright (c) 2009 Antti Kantee.  All Rights Reserved.
@@ -29,7 +29,7 @@
 
 #include sys/cdefs.h
 #if !defined(lint)
-__RCSID($NetBSD: rumpuser_pth_dummy.c,v 1.13 2013/05/02 19:14:59 pooka Exp $);
+__RCSID($NetBSD: rumpuser_pth_dummy.c,v 1.14 2013/05/07 15:37:05 pooka Exp $);
 #endif /* !lint */
 
 #include sys/time.h
@@ -40,6 +40,7 @@ __RCSID($NetBSD: rumpuser_pth_dummy.c,v
 #include stdio.h
 #include string.h
 #include stdint.h
+#include time.h
 
 #include rump/rumpuser.h
 
@@ -152,23 +153,26 @@ rumpuser_rw_init(struct rumpuser_rw **rw
 }
 
 void
-rumpuser_rw_enter(struct rumpuser_rw *rw, int write)
+rumpuser_rw_enter(struct rumpuser_rw *rw, enum rumprwlock lk)
 {
 
-	if (write) {
+	switch (lk) {
+	case RUMPUSER_RW_WRITER:
 		rw-v++;
 		assert(rw-v == 1);
-	} else {
+		break;
+	case RUMPUSER_RW_READER:
 		assert(rw-v = 0);
 		rw-v--;
+		break;
 	}
 }
 
 int
-rumpuser_rw_tryenter(struct rumpuser_rw *rw, int write)
+rumpuser_rw_tryenter(struct rumpuser_rw *rw, enum rumprwlock lk)
 {
 
-	rumpuser_rw_enter(rw, write);
+	rumpuser_rw_enter(rw, lk);
 	return 0;
 }
 
@@ -192,24 +196,17 @@ rumpuser_rw_destroy(struct rumpuser_rw *
 }
 
 void
-rumpuser_rw_held(struct rumpuser_rw *rw, int *rvp)
-{
-
-	*rvp = rw-v != 0;
-}
-
-void
-rumpuser_rw_rdheld(struct rumpuser_rw *rw, int *rvp)
+rumpuser_rw_held(struct rumpuser_rw *rw, enum rumprwlock lk, int *rvp)
 {
 
-	*rvp = rw-v  0;
-}
-
-void
-rumpuser_rw_wrheld(struct rumpuser_rw *rw, int *rvp)
-{
-
-	*rvp = rw-v  0;
+	switch (lk) {
+	case RUMPUSER_RW_WRITER:
+		*rvp = rw-v  0;
+		break;
+	case RUMPUSER_RW_READER:
+		*rvp = rw-v  0;
+		break;
+	}
 }
 
 /*ARGSUSED*/



CVS commit: src/sys/uvm

2013-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 15:49:09 UTC 2013

Modified Files:
src/sys/uvm: uvm_swap.c

Log Message:
Set bp-b_resid to bp-b_bcount on error in swstrategy as required.


To generate a diff of this commit:
cvs rdiff -u -r1.162 -r1.163 src/sys/uvm/uvm_swap.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_swap.c
diff -u src/sys/uvm/uvm_swap.c:1.162 src/sys/uvm/uvm_swap.c:1.163
--- src/sys/uvm/uvm_swap.c:1.162	Tue Nov 27 20:15:55 2012
+++ src/sys/uvm/uvm_swap.c	Tue May  7 15:49:09 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_swap.c,v 1.162 2012/11/27 20:15:55 jakllsch Exp $	*/
+/*	$NetBSD: uvm_swap.c,v 1.163 2013/05/07 15:49:09 riastradh Exp $	*/
 
 /*
  * Copyright (c) 1995, 1996, 1997, 2009 Matthew R. Green
@@ -30,7 +30,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: uvm_swap.c,v 1.162 2012/11/27 20:15:55 jakllsch Exp $);
+__KERNEL_RCSID(0, $NetBSD: uvm_swap.c,v 1.163 2013/05/07 15:49:09 riastradh Exp $);
 
 #include opt_uvmhist.h
 #include opt_compat_netbsd.h
@@ -1136,6 +1136,7 @@ swstrategy(struct buf *bp)
 	mutex_exit(uvm_swap_data_lock);
 	if (sdp == NULL) {
 		bp-b_error = EINVAL;
+		bp-b_resid = bp-b_bcount;
 		biodone(bp);
 		UVMHIST_LOG(pdhist,   failed to get swap device, 0, 0, 0, 0);
 		return;



CVS commit: src/sys/rump/net/lib/libshmif

2013-05-07 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue May  7 16:18:49 UTC 2013

Modified Files:
src/sys/rump/net/lib/libshmif: rumpcomp_user.c

Log Message:
Include necessary headers on Linux


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/rump/net/lib/libshmif/rumpcomp_user.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/rump/net/lib/libshmif/rumpcomp_user.c
diff -u src/sys/rump/net/lib/libshmif/rumpcomp_user.c:1.10 src/sys/rump/net/lib/libshmif/rumpcomp_user.c:1.11
--- src/sys/rump/net/lib/libshmif/rumpcomp_user.c:1.10	Tue Apr 30 12:39:21 2013
+++ src/sys/rump/net/lib/libshmif/rumpcomp_user.c	Tue May  7 16:18:48 2013
@@ -1,4 +1,4 @@
-/*  $NetBSD: rumpcomp_user.c,v 1.10 2013/04/30 12:39:21 pooka Exp $	*/
+/*  $NetBSD: rumpcomp_user.c,v 1.11 2013/05/07 16:18:48 pooka Exp $	*/
 
 /*-
  * Copyright (c) 2009, 2010 Antti Kantee.  All Rights Reserved.
@@ -97,6 +97,10 @@ rumpcomp_shmif_watchwait(int kq)
 #elif defined(__linux__)
 #include sys/inotify.h
 
+#include limits.h
+#include stdio.h
+#include unistd.h
+
 int
 rumpcomp_shmif_watchsetup(int *inotifyp, int fd)
 {



CVS commit: src/lib/librumpuser

2013-05-07 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue May  7 16:40:31 UTC 2013

Modified Files:
src/lib/librumpuser: rumpuser_pth_dummy.c

Log Message:
need the rw_downgrade/tryupgrade methods too


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/lib/librumpuser/rumpuser_pth_dummy.c

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

Modified files:

Index: src/lib/librumpuser/rumpuser_pth_dummy.c
diff -u src/lib/librumpuser/rumpuser_pth_dummy.c:1.14 src/lib/librumpuser/rumpuser_pth_dummy.c:1.15
--- src/lib/librumpuser/rumpuser_pth_dummy.c:1.14	Tue May  7 15:37:05 2013
+++ src/lib/librumpuser/rumpuser_pth_dummy.c	Tue May  7 16:40:31 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: rumpuser_pth_dummy.c,v 1.14 2013/05/07 15:37:05 pooka Exp $	*/
+/*	$NetBSD: rumpuser_pth_dummy.c,v 1.15 2013/05/07 16:40:31 pooka Exp $	*/
 
 /*
  * Copyright (c) 2009 Antti Kantee.  All Rights Reserved.
@@ -29,7 +29,7 @@
 
 #include sys/cdefs.h
 #if !defined(lint)
-__RCSID($NetBSD: rumpuser_pth_dummy.c,v 1.14 2013/05/07 15:37:05 pooka Exp $);
+__RCSID($NetBSD: rumpuser_pth_dummy.c,v 1.15 2013/05/07 16:40:31 pooka Exp $);
 #endif /* !lint */
 
 #include sys/time.h
@@ -209,6 +209,26 @@ rumpuser_rw_held(struct rumpuser_rw *rw,
 	}
 }
 
+void
+rumpuser_rw_downgrade(struct rumpuser_rw *rw)
+{
+
+	assert(rw-v == 1);
+	rw-v = -1;
+}
+
+int
+rumpuser_rw_tryupgrade(struct rumpuser_rw *rw)
+{
+
+	if (rw-v == -1) {
+		rw-v = 1;
+		return 0;
+	}
+
+	return EBUSY;
+}
+
 /*ARGSUSED*/
 void
 rumpuser_cv_init(struct rumpuser_cv **cv)



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

2013-05-07 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue May  7 20:11:55 UTC 2013

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

Log Message:
Enable putter. Shoot me now.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/evbarm/conf/RPI

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

Modified files:

Index: src/sys/arch/evbarm/conf/RPI
diff -u src/sys/arch/evbarm/conf/RPI:1.31 src/sys/arch/evbarm/conf/RPI:1.32
--- src/sys/arch/evbarm/conf/RPI:1.31	Wed Apr 17 19:04:19 2013
+++ src/sys/arch/evbarm/conf/RPI	Tue May  7 20:11:54 2013
@@ -1,5 +1,5 @@
 #
-#	$NetBSD: RPI,v 1.31 2013/04/17 19:04:19 reinoud Exp $
+#	$NetBSD: RPI,v 1.32 2013/05/07 20:11:54 skrll Exp $
 #
 #	RPi -- Raspberry Pi
 #
@@ -250,7 +250,7 @@ options 	WSDISPLAY_DEFAULTSCREENS=4
 
 pseudo-device	md			# memory disk device (ramdisk)
 pseudo-device	vnd			# disk-like interface to files
-#pseudo-device	putter			# for puffs and pud
+pseudo-device	putter			# for puffs and pud
 
 # network pseudo-devices
 pseudo-device	bpfilter		# Berkeley packet filter



CVS commit: src/sys/arch

2013-05-07 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Tue May  7 20:42:47 UTC 2013

Modified Files:
src/sys/arch/acorn26/include: disklabel.h types.h
src/sys/arch/acorn32/include: disklabel.h
src/sys/arch/arm/include: disklabel.h
src/sys/arch/arm/include/arm32: types.h
src/sys/arch/cats/include: disklabel.h
src/sys/arch/epoc32/include: disklabel.h types.h
src/sys/arch/evbarm/include: disklabel.h
src/sys/arch/hpcarm/include: disklabel.h types.h
src/sys/arch/iyonix/include: disklabel.h
src/sys/arch/netwinder/include: disklabel.h
src/sys/arch/shark/include: disklabel.h
src/sys/arch/zaurus/include: disklabel.h

Log Message:
Make all ports use a common disklabel.h with MAXPARTITIONS set to 16.
Only RAW_PART varies between ports.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/acorn26/include/disklabel.h
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/acorn26/include/types.h
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/acorn32/include/disklabel.h
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/arm/include/disklabel.h
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/arm/include/arm32/types.h
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/cats/include/disklabel.h
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/epoc32/include/disklabel.h \
src/sys/arch/epoc32/include/types.h
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/evbarm/include/disklabel.h
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/hpcarm/include/disklabel.h
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/hpcarm/include/types.h
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/iyonix/include/disklabel.h
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/netwinder/include/disklabel.h
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/shark/include/disklabel.h
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/zaurus/include/disklabel.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/acorn26/include/disklabel.h
diff -u src/sys/arch/acorn26/include/disklabel.h:1.4 src/sys/arch/acorn26/include/disklabel.h:1.5
--- src/sys/arch/acorn26/include/disklabel.h:1.4	Tue Aug 30 12:39:52 2011
+++ src/sys/arch/acorn26/include/disklabel.h	Tue May  7 20:42:45 2013
@@ -1,6 +1,4 @@
-/*	$NetBSD: disklabel.h,v 1.4 2011/08/30 12:39:52 bouyer Exp $	*/
-
-#define LABELUSESMBR 1
+/*	$NetBSD: disklabel.h,v 1.5 2013/05/07 20:42:45 matt Exp $	*/
 
 #if HAVE_NBTOOL_CONFIG_H
 #include nbinclude/arm/disklabel.h

Index: src/sys/arch/acorn26/include/types.h
diff -u src/sys/arch/acorn26/include/types.h:1.12 src/sys/arch/acorn26/include/types.h:1.13
--- src/sys/arch/acorn26/include/types.h:1.12	Sun Jun 12 03:35:36 2011
+++ src/sys/arch/acorn26/include/types.h	Tue May  7 20:42:45 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.12 2011/06/12 03:35:36 rmind Exp $ */
+/* $NetBSD: types.h,v 1.13 2013/05/07 20:42:45 matt Exp $ */
 
 #ifndef	_ACORN26_TYPES_H_
 #define	_ACORN26_TYPES_H_
@@ -8,5 +8,6 @@
 #define	__GENERIC_SOFT_INTERRUPTS_ALL_LEVELS
 #define	__HAVE_MM_MD_DIRECT_MAPPED_PHYS
 #define	__HAVE_MM_MD_KERNACC
+#define __HAVE_OLD_DISKLABEL
 
 #endif	/* _ACORN26_TYPES_H_ */

Index: src/sys/arch/acorn32/include/disklabel.h
diff -u src/sys/arch/acorn32/include/disklabel.h:1.4 src/sys/arch/acorn32/include/disklabel.h:1.5
--- src/sys/arch/acorn32/include/disklabel.h:1.4	Tue Aug 30 12:39:52 2011
+++ src/sys/arch/acorn32/include/disklabel.h	Tue May  7 20:42:45 2013
@@ -1,6 +1,4 @@
-/*	$NetBSD: disklabel.h,v 1.4 2011/08/30 12:39:52 bouyer Exp $	*/
-
-#define LABELUSESMBR 1
+/*	$NetBSD: disklabel.h,v 1.5 2013/05/07 20:42:45 matt Exp $	*/
 
 #if HAVE_NBTOOL_CONFIG_H
 #include nbinclude/arm/disklabel.h

Index: src/sys/arch/arm/include/disklabel.h
diff -u src/sys/arch/arm/include/disklabel.h:1.10 src/sys/arch/arm/include/disklabel.h:1.11
--- src/sys/arch/arm/include/disklabel.h:1.10	Tue Aug 30 12:39:53 2011
+++ src/sys/arch/arm/include/disklabel.h	Tue May  7 20:42:45 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: disklabel.h,v 1.10 2011/08/30 12:39:53 bouyer Exp $	*/
+/*	$NetBSD: disklabel.h,v 1.11 2013/05/07 20:42:45 matt Exp $	*/
 
 /*
  * Copyright (c) 1994 Mark Brinicombe.
@@ -47,12 +47,28 @@
 #define _ARM_DISKLABEL_H_
 
 #ifndef LABELUSESMBR
-#define LABELUSESMBR	0		/* no MBR partitionning */
+#define LABELUSESMBR		1	/* no MBR partitionning */
 #endif
-#define LABELSECTOR	1		/* sector containing label */
-#define LABELOFFSET	0		/* offset of label in sector */
-#define MAXPARTITIONS	8		/* number of partitions */
-#define RAW_PART	2		/* raw partition: XX?c */
+#define LABELSECTOR		1	/* sector containing label */
+#define LABELOFFSET		0	/* offset of label in sector */
+#define MAXPARTITIONS		16	/* number of partitions */
+#define OLDMAXPARTITIONS	8	/* old number of partitions */
+#ifndef RAW_PART
+#define RAW_PART		2	/* raw partition: XX?c */
+#endif
+
+/*
+ * We use the highest bit of the minor number for the partition number.
+ * This maintains backward compatibility with device nodes created before
+ * 

CVS commit: src/lib/libc/rpc

2013-05-07 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue May  7 21:08:45 UTC 2013

Modified Files:
src/lib/libc/rpc: clnt_dg.c clnt_generic.c clnt_vc.c rpc_internal.h

Log Message:
- add __clnt_sigfillset() that does not blindly block all signals but excludes
  the tty generated ones (int, quit, tstp), plus term and hup. This makes
  command line clients behave on connect(2) where before they would need
  to be killed from a different tty. Much easier than making the file
  descriptor non-blocking for the duration of connect and then using
  pselect/pollts to detect when actual connection or timeout occured using
  a different sigmask.
- factor out some of the error paths.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/lib/libc/rpc/clnt_dg.c
cvs rdiff -u -r1.30 -r1.31 src/lib/libc/rpc/clnt_generic.c
cvs rdiff -u -r1.22 -r1.23 src/lib/libc/rpc/clnt_vc.c
cvs rdiff -u -r1.6 -r1.7 src/lib/libc/rpc/rpc_internal.h

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

Modified files:

Index: src/lib/libc/rpc/clnt_dg.c
diff -u src/lib/libc/rpc/clnt_dg.c:1.28 src/lib/libc/rpc/clnt_dg.c:1.29
--- src/lib/libc/rpc/clnt_dg.c:1.28	Mon Mar 11 16:19:28 2013
+++ src/lib/libc/rpc/clnt_dg.c	Tue May  7 17:08:44 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: clnt_dg.c,v 1.28 2013/03/11 20:19:28 tron Exp $	*/
+/*	$NetBSD: clnt_dg.c,v 1.29 2013/05/07 21:08:44 christos Exp $	*/
 
 /*
  * Copyright (c) 2010, Oracle America, Inc.
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = @(#)clnt_dg.c 1.19 89/03/16 Copyr 1988 Sun Micro;
 #else
-__RCSID($NetBSD: clnt_dg.c,v 1.28 2013/03/11 20:19:28 tron Exp $);
+__RCSID($NetBSD: clnt_dg.c,v 1.29 2013/05/07 21:08:44 christos Exp $);
 #endif
 #endif
 
@@ -175,7 +175,7 @@ clnt_dg_create(
 	struct __rpc_sockinfo si;
 	int one = 1;
 
-	sigfillset(newmask);
+	__clnt_sigfillset(newmask);
 	thr_sigsetmask(SIG_SETMASK, newmask, mask);
 	mutex_lock(clnt_fd_lock);
 	if (dg_fd_locks == NULL) {
@@ -188,9 +188,7 @@ clnt_dg_create(
 		fd_allocsz = dtbsize * sizeof (int);
 		dg_fd_locks = mem_alloc(fd_allocsz);
 		if (dg_fd_locks == NULL) {
-			mutex_unlock(clnt_fd_lock);
-			thr_sigsetmask(SIG_SETMASK, (mask), NULL);
-			goto err1;
+			goto err0;
 		} else
 			memset(dg_fd_locks, '\0', fd_allocsz);
 
@@ -200,9 +198,7 @@ clnt_dg_create(
 		if (dg_cv == NULL) {
 			mem_free(dg_fd_locks, fd_allocsz);
 			dg_fd_locks = NULL;
-			mutex_unlock(clnt_fd_lock);
-			thr_sigsetmask(SIG_SETMASK, (mask), NULL);
-			goto err1;
+			goto err0;
 		} else {
 			int i;
 
@@ -294,6 +290,9 @@ clnt_dg_create(
 	cl-cl_tp = NULL;
 	cl-cl_netid = NULL;
 	return (cl);
+err0:
+	mutex_unlock(clnt_fd_lock);
+	thr_sigsetmask(SIG_SETMASK, (mask), NULL);
 err1:
 	warnx(mem_err_clnt_dg);
 	rpc_createerr.cf_stat = RPC_SYSTEMERROR;
@@ -341,7 +340,7 @@ clnt_dg_call(
 
 	cu = (struct cu_data *)cl-cl_private;
 
-	sigfillset(newmask);
+	__clnt_sigfillset(newmask);
 	thr_sigsetmask(SIG_SETMASK, newmask, mask);
 	mutex_lock(clnt_fd_lock);
 	while (dg_fd_locks[cu-cu_fd])
@@ -532,7 +531,7 @@ clnt_dg_freeres(CLIENT *cl, xdrproc_t xd
 	cu = (struct cu_data *)cl-cl_private;
 	xdrs = (cu-cu_outxdrs);
 
-	sigfillset(newmask);
+	__clnt_sigfillset(newmask);
 	thr_sigsetmask(SIG_SETMASK, newmask, mask);
 	mutex_lock(clnt_fd_lock);
 	while (dg_fd_locks[cu-cu_fd])
@@ -566,7 +565,7 @@ clnt_dg_control(CLIENT *cl, u_int reques
 
 	cu = (struct cu_data *)cl-cl_private;
 
-	sigfillset(newmask);
+	__clnt_sigfillset(newmask);
 	thr_sigsetmask(SIG_SETMASK, newmask, mask);
 	mutex_lock(clnt_fd_lock);
 	while (dg_fd_locks[cu-cu_fd])
@@ -706,7 +705,7 @@ clnt_dg_destroy(CLIENT *cl)
 	cu = (struct cu_data *)cl-cl_private;
 	cu_fd = cu-cu_fd;
 
-	sigfillset(newmask);
+	__clnt_sigfillset(newmask);
 	thr_sigsetmask(SIG_SETMASK, newmask, mask);
 	mutex_lock(clnt_fd_lock);
 	while (dg_fd_locks[cu_fd])
@@ -737,7 +736,7 @@ clnt_dg_ops(void)
 
 /* VARIABLES PROTECTED BY ops_lock: ops */
 
-	sigfillset(newmask);
+	__clnt_sigfillset(newmask);
 	thr_sigsetmask(SIG_SETMASK, newmask, mask);
 	mutex_lock(ops_lock);
 	if (ops.cl_call == NULL) {

Index: src/lib/libc/rpc/clnt_generic.c
diff -u src/lib/libc/rpc/clnt_generic.c:1.30 src/lib/libc/rpc/clnt_generic.c:1.31
--- src/lib/libc/rpc/clnt_generic.c:1.30	Mon Mar 11 16:19:28 2013
+++ src/lib/libc/rpc/clnt_generic.c	Tue May  7 17:08:45 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: clnt_generic.c,v 1.30 2013/03/11 20:19:28 tron Exp $	*/
+/*	$NetBSD: clnt_generic.c,v 1.31 2013/05/07 21:08:45 christos Exp $	*/
 
 /*
  * Copyright (c) 2010, Oracle America, Inc.
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = @(#)clnt_generic.c 1.32 89/03/16 Copyr 1988 Sun Micro;
 #else
-__RCSID($NetBSD: clnt_generic.c,v 1.30 2013/03/11 20:19:28 tron Exp $);
+__RCSID($NetBSD: clnt_generic.c,v 1.31 2013/05/07 21:08:45 christos Exp $);
 #endif
 #endif
 
@@ -381,3 +381,20 @@ err1:	if (madefd)
 		(void) close(fd);
 	return (NULL);
 }
+
+/*
+ * Don't block thse so interactive programs don't 

CVS commit: src/usr.bin/rpcinfo

2013-05-07 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue May  7 21:41:52 UTC 2013

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

Log Message:
print the port where the server is listening when displaying status.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/usr.bin/rpcinfo/rpcinfo.c

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

Modified files:

Index: src/usr.bin/rpcinfo/rpcinfo.c
diff -u src/usr.bin/rpcinfo/rpcinfo.c:1.34 src/usr.bin/rpcinfo/rpcinfo.c:1.35
--- src/usr.bin/rpcinfo/rpcinfo.c:1.34	Fri Sep 16 11:39:28 2011
+++ src/usr.bin/rpcinfo/rpcinfo.c	Tue May  7 17:41:51 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: rpcinfo.c,v 1.34 2011/09/16 15:39:28 joerg Exp $	*/
+/*	$NetBSD: rpcinfo.c,v 1.35 2013/05/07 21:41:51 christos Exp $	*/
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -141,12 +141,12 @@ __dead static void	brdcst(int, char **);
 static void	addrping(const char *, const char *, int, char **);
 static void	progping(const char *, int, char **);
 static CLIENT	*clnt_addr_create(const char *, const struct netconfig *,
-rpcprog_t, rpcvers_t);
+rpcprog_t, rpcvers_t, in_port_t *);
 static CLIENT   *clnt_rpcbind_create(const char *, rpcvers_t, struct netbuf **);
 static CLIENT   *getclnthandle(const char *, const struct netconfig *,
 rpcvers_t, struct netbuf **);
 static CLIENT	*local_rpcb(rpcprog_t, rpcvers_t);
-static int	pstatus(CLIENT *, rpcprog_t, rpcvers_t);
+static int	pstatus(CLIENT *, rpcprog_t, rpcvers_t, in_port_t);
 static void	rpcbdump(int, const char *, int, char **);
 static void	rpcbgetstat(int, char **);
 static void	rpcbaddrlist(const char *, int, char **);
@@ -156,6 +156,7 @@ static void	print_getaddrstat(int, const
 static void	usage(void) __dead;
 static rpcprog_t	getprognum(const char *);
 static rpcvers_t	getvers(const char *);
+static in_port_t	getport(const struct netbuf *);
 static const char *spaces(size_t);
 static bool_t	add_version(struct rpcbdump_short *, rpcvers_t);
 static bool_t	add_netid(struct rpcbdump_short *, char *);
@@ -401,7 +402,7 @@ ip_ping(u_short portnum, const char *tra
 	NULL, (xdrproc_t)xdr_void, NULL, to);
 	if (argc != 2) {
 		/* Version number was known */
-		if (pstatus(client, prognum, vers)  0)
+		if (pstatus(client, prognum, vers, portnum)  0)
 			exit(1);
 		(void)CLNT_DESTROY(client);
 		return;
@@ -437,11 +438,11 @@ ip_ping(u_short portnum, const char *tra
 			minvers = 0;
 			maxvers = MAX_VERS;
 		} else {
-			(void)pstatus(client, prognum, MAX_VERS);
+			(void)pstatus(client, prognum, MAX_VERS, portnum);
 			exit(1);
 		}
 	} else {
-		(void)pstatus(client, prognum, MIN_VERS);
+		(void)pstatus(client, prognum, MIN_VERS, portnum);
 		exit(1);
 	}
 	(void)CLNT_DESTROY(client);
@@ -450,7 +451,7 @@ ip_ping(u_short portnum, const char *tra
 		client = clnt_com_create(addr, prognum, vers, fd, trans);
 		rpc_stat = CLNT_CALL(client, NULLPROC, (xdrproc_t)xdr_void,
 		NULL, (xdrproc_t)xdr_void, NULL, to);
-		if (pstatus(client, prognum, vers)  0)
+		if (pstatus(client, prognum, vers, portnum)  0)
 		failure = 1;
 		(void)CLNT_DESTROY(client);
 	}
@@ -1249,7 +1250,7 @@ deletereg(const char *netid, int argc, c
  */
 static CLIENT *
 clnt_addr_create(const char *address, const struct netconfig *nconf,
-rpcprog_t prog, rpcvers_t vers)
+rpcprog_t prog, rpcvers_t vers, in_port_t *port)
 {
 	CLIENT *client;
 	static struct netbuf *nbuf;
@@ -1265,6 +1266,7 @@ clnt_addr_create(const char *address, co
 		nbuf = uaddr2taddr(nconf, address);
 		if (nbuf == NULL)
 			errx(1, No address for client handle);
+		*port = getport(nbuf);
 	}
 	client = clnt_tli_create(fd, nconf, nbuf, prog, vers, 0, 0);
 	if (client == NULL) {
@@ -1290,6 +1292,7 @@ addrping(const char *address, const char
 	struct rpc_err rpcerr;
 	int failure = 0;
 	struct netconfig *nconf;
+	in_port_t portnum;
 	int fd;
 
 	if (argc  1 || argc  2 || (netid == NULL))
@@ -1309,12 +1312,12 @@ addrping(const char *address, const char
 	} else {
 		versnum = getvers(argv[1]);
 	}
-	client = clnt_addr_create(address, nconf, prognum, versnum);
+	client = clnt_addr_create(address, nconf, prognum, versnum, portnum);
 	rpc_stat = CLNT_CALL(client, NULLPROC, (xdrproc_t)xdr_void,
 	NULL, (xdrproc_t)xdr_void, NULL, to);
 	if (argc == 2) {
 		/* Version number was known */
-		if (pstatus(client, prognum, versnum)  0)
+		if (pstatus(client, prognum, versnum, portnum)  0)
 			failure = 1;
 		(void)CLNT_DESTROY(client);
 		if (failure)
@@ -1334,7 +1337,8 @@ addrping(const char *address, const char
 		 * Let's try version MAX_VERS.
 		 */
 		(void)CLNT_DESTROY(client);
-		client = clnt_addr_create(address, nconf, prognum, MAX_VERS);
+		client = clnt_addr_create(address, nconf, prognum, MAX_VERS,
+		portnum);
 		rpc_stat = CLNT_CALL(client, NULLPROC, (xdrproc_t)xdr_void,
 		NULL, (xdrproc_t)xdr_void, NULL, to);
 		if (rpc_stat == RPC_PROGVERSMISMATCH) 

CVS commit: src/share/man/man4

2013-05-07 Thread Radoslaw Kujawa
Module Name:src
Committed By:   rkujawa
Date:   Tue May  7 22:45:27 UTC 2013

Modified Files:
src/share/man/man4: Makefile
Added Files:
src/share/man/man4: mcp980x.4

Log Message:
Add mcp980x(4) man page.


To generate a diff of this commit:
cvs rdiff -u -r1.598 -r1.599 src/share/man/man4/Makefile
cvs rdiff -u -r0 -r1.1 src/share/man/man4/mcp980x.4

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

Modified files:

Index: src/share/man/man4/Makefile
diff -u src/share/man/man4/Makefile:1.598 src/share/man/man4/Makefile:1.599
--- src/share/man/man4/Makefile:1.598	Fri Apr 26 20:08:53 2013
+++ src/share/man/man4/Makefile	Tue May  7 22:45:26 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.598 2013/04/26 20:08:53 rkujawa Exp $
+#	$NetBSD: Makefile,v 1.599 2013/05/07 22:45:26 rkujawa Exp $
 #	@(#)Makefile	8.1 (Berkeley) 6/18/93
 
 MAN=	aac.4 ac97.4 acardide.4 aceride.4 acphy.4 \
@@ -121,7 +121,8 @@ MAN+=	sc.4 si.4
 MAN+=	fwohci.4 fwip.4 sbp.4
 
 # machine-independent I2C devices
-MAN+=	dbcool.4 g760a.4 lmtemp.4 sdtemp.4 smscmon.4 spdmem.4 tps65217pmic.4
+MAN+=	dbcool.4 g760a.4 lmtemp.4 mcp980x.4 sdtemp.4 smscmon.4 spdmem.4
+	tps65217pmic.4
 
 # machine-independent SPI devices
 MAN +=	m25p.4 tm121temp.4

Added files:

Index: src/share/man/man4/mcp980x.4
diff -u /dev/null src/share/man/man4/mcp980x.4:1.1
--- /dev/null	Tue May  7 22:45:27 2013
+++ src/share/man/man4/mcp980x.4	Tue May  7 22:45:27 2013
@@ -0,0 +1,61 @@
+.\ $NetBSD: mcp980x.4,v 1.1 2013/05/07 22:45:27 rkujawa Exp $
+.\
+.\ Copyright (c) 2013 The NetBSD Foundation, Inc.
+.\ All rights reserved.
+.\
+.\ This code is derived from software contributed to The NetBSD Foundation
+.\ by Radoslaw Kujawa.
+.\
+.\ 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 May 8, 2013
+.Dt MCP980X 4
+.Os
+.Sh NAME
+.Nm mcp980x
+.Nd Microchip 9800/1/2/3 I2C temperature sensor driver
+.Sh SYNOPSIS
+.Cd mcp980x* at iic? addr 0x48
+.Sh DESCRIPTION
+The
+.Nm
+driver provides minimal support for the MCP980x series of temperature sensors.
+It allows reporting ambient temperature through the
+.Xr envsys 4
+API.
+.Sh SEE ALSO
+.Xr envsys 4
+.Sh HISTORY
+The
+.Nm
+device first appeared in
+.Nx 7.0 .
+.Sh AUTHORS
+.An -nosplit
+The
+.Nm
+driver was written by
+.An Radoslaw Kujawa Aq radoslaw.kuj...@gmail.com .
+.Sh CAVEATS
+MCP9805 chip is different and is supported by the
+.Xr sdtemp 4
+driver.



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

2013-05-07 Thread Radoslaw Kujawa
Module Name:src
Committed By:   rkujawa
Date:   Tue May  7 22:51:55 UTC 2013

Modified Files:
src/distrib/sets/lists/man: mi

Log Message:
Add mcp980x(4) man page to dist list.


To generate a diff of this commit:
cvs rdiff -u -r1.1427 -r1.1428 src/distrib/sets/lists/man/mi

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

Modified files:

Index: src/distrib/sets/lists/man/mi
diff -u src/distrib/sets/lists/man/mi:1.1427 src/distrib/sets/lists/man/mi:1.1428
--- src/distrib/sets/lists/man/mi:1.1427	Fri Apr 26 20:10:56 2013
+++ src/distrib/sets/lists/man/mi	Tue May  7 22:51:54 2013
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1427 2013/04/26 20:10:56 rkujawa Exp $
+# $NetBSD: mi,v 1.1428 2013/05/07 22:51:54 rkujawa Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -1331,6 +1331,7 @@
 ./usr/share/man/cat4/mca.0			man-sys-catman		.cat
 ./usr/share/man/cat4/mcclock.0			man-sys-catman		.cat
 ./usr/share/man/cat4/mcd.0			man-sys-catman		.cat
+./usr/share/man/cat4/mcp980x.0			man-sys-catman		.cat
 ./usr/share/man/cat4/md.0			man-sys-catman		.cat
 ./usr/share/man/cat4/mfb.0			man-sys-catman		.cat
 ./usr/share/man/cat4/mfi.0			man-sys-catman		.cat
@@ -4255,6 +4256,7 @@
 ./usr/share/man/html4/mca.html			man-sys-htmlman		html
 ./usr/share/man/html4/mcclock.html		man-sys-htmlman		html
 ./usr/share/man/html4/mcd.html			man-sys-htmlman		html
+./usr/share/man/html4/mcp980x.html		man-sys-htmlman		html
 ./usr/share/man/html4/md.html			man-sys-htmlman		html
 ./usr/share/man/html4/mfb.html			man-sys-htmlman		html
 ./usr/share/man/html4/mfi.html			man-sys-htmlman		html
@@ -7027,6 +7029,7 @@
 ./usr/share/man/man4/mca.4			man-sys-man		.man
 ./usr/share/man/man4/mcclock.4			man-sys-man		.man
 ./usr/share/man/man4/mcd.4			man-sys-man		.man
+./usr/share/man/man4/mcp980x.4			man-sys-man		.man
 ./usr/share/man/man4/md.4			man-sys-man		.man
 ./usr/share/man/man4/mfb.4			man-sys-man		.man
 ./usr/share/man/man4/mfi.4			man-sys-man		.man



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

2013-05-07 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Tue May  7 23:01:55 UTC 2013

Modified Files:
src/sys/arch/arm/include: types.h
src/sys/arch/arm/include/arm32: types.h

Log Message:
Move #define __HAVE_OLD_DISKLABEL to arm/types.h


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/arm/include/types.h
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/arm/include/arm32/types.h

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

Modified files:

Index: src/sys/arch/arm/include/types.h
diff -u src/sys/arch/arm/include/types.h:1.23 src/sys/arch/arm/include/types.h:1.24
--- src/sys/arch/arm/include/types.h:1.23	Sun Aug 12 05:05:47 2012
+++ src/sys/arch/arm/include/types.h	Tue May  7 23:01:55 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: types.h,v 1.23 2012/08/12 05:05:47 matt Exp $	*/
+/*	$NetBSD: types.h,v 1.24 2013/05/07 23:01:55 matt Exp $	*/
 
 /*
  * Copyright (c) 1990 The Regents of the University of California.
@@ -88,6 +88,7 @@ typedef	volatile int		__cpu_simple_lock_
 #define	__HAVE___LWP_GETPRIVATE_FAST
 #define	__HAVE_COMMON___TLS_GET_ADDR
 #define	__HAVE_TLS_VARIANT_I
+#define	__HAVE_OLD_DISKLABEL
 
 #if defined(_KERNEL) || defined(_KMEMUSER)
 #define	PCU_FPU			0

Index: src/sys/arch/arm/include/arm32/types.h
diff -u src/sys/arch/arm/include/arm32/types.h:1.10 src/sys/arch/arm/include/arm32/types.h:1.11
--- src/sys/arch/arm/include/arm32/types.h:1.10	Tue May  7 20:42:47 2013
+++ src/sys/arch/arm/include/arm32/types.h	Tue May  7 23:01:55 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: types.h,v 1.10 2013/05/07 20:42:47 matt Exp $	*/
+/*	$NetBSD: types.h,v 1.11 2013/05/07 23:01:55 matt Exp $	*/
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -49,6 +49,5 @@
 #include arm/types.h		/* pull in generic ARM definitions */
 
 #define	__HAVE_CPU_LWP_SETPRIVATE
-#define __HAVE_OLD_DISKLABEL
 
 #endif /* _ARM_ARM32_TYPES_H_ */



CVS commit: src/sys/rump/include/rump

2013-05-07 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed May  8 00:25:31 UTC 2013

Modified Files:
src/sys/rump/include/rump: makerumpdefs.sh

Log Message:
Grab the sysvbfs args structure too, since the fs is useful for
simple testing.  Incidentally, the structure is exactly the same as
for UFS...


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/rump/include/rump/makerumpdefs.sh

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

Modified files:

Index: src/sys/rump/include/rump/makerumpdefs.sh
diff -u src/sys/rump/include/rump/makerumpdefs.sh:1.14 src/sys/rump/include/rump/makerumpdefs.sh:1.15
--- src/sys/rump/include/rump/makerumpdefs.sh:1.14	Tue Apr 30 11:29:12 2013
+++ src/sys/rump/include/rump/makerumpdefs.sh	Wed May  8 00:25:31 2013
@@ -8,7 +8,7 @@ echo Generating rumpdefs.h
 rm -f rumpdefs.h
 exec  rumpdefs.h
 
-printf '/*	$NetBSD: makerumpdefs.sh,v 1.14 2013/04/30 11:29:12 pooka Exp $	*/\n\n'
+printf '/*	$NetBSD: makerumpdefs.sh,v 1.15 2013/05/08 00:25:31 pooka Exp $	*/\n\n'
 printf '/*\n *\tAUTOMATICALLY GENERATED.  DO NOT EDIT.\n */\n\n'
 printf '#ifndef _RUMP_RUMPDEFS_H_\n'
 printf '#define _RUMP_RUMPDEFS_H_\n\n'
@@ -67,4 +67,7 @@ getstruct ../../../sys/module.h modctl_l
 fromvers ../../../ufs/ufs/ufsmount.h
 getstruct ../../../ufs/ufs/ufsmount.h ufs_args
 
+fromvers ../../../fs/sysvbfs/sysvbfs_args.h
+getstruct ../../../fs/sysvbfs/sysvbfs_args.h sysvbfs_args
+
 printf '\n#endif /* _RUMP_RUMPDEFS_H_ */\n'



CVS commit: src/sys/rump/include/rump

2013-05-07 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed May  8 00:25:55 UTC 2013

Modified Files:
src/sys/rump/include/rump: rumpdefs.h

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/rump/include/rump/rumpdefs.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/rump/include/rump/rumpdefs.h
diff -u src/sys/rump/include/rump/rumpdefs.h:1.18 src/sys/rump/include/rump/rumpdefs.h:1.19
--- src/sys/rump/include/rump/rumpdefs.h:1.18	Tue Apr 30 12:39:21 2013
+++ src/sys/rump/include/rump/rumpdefs.h	Wed May  8 00:25:55 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: rumpdefs.h,v 1.18 2013/04/30 12:39:21 pooka Exp $	*/
+/*	$NetBSD: rumpdefs.h,v 1.19 2013/05/08 00:25:55 pooka Exp $	*/
 
 /*
  *	AUTOMATICALLY GENERATED.  DO NOT EDIT.
@@ -291,4 +291,9 @@ struct rump_ufs_args {
 	char	*fspec;			/* block special device to mount */
 };
 
+/*	NetBSD: sysvbfs_args.h,v 1.1 2008/09/04 12:07:30 pooka Exp 	*/
+struct rump_sysvbfs_args {
+	char	*fspec;		/* blocks special holding the fs to mount */
+};
+
 #endif /* _RUMP_RUMPDEFS_H_ */



CVS commit: src/usr.bin/rpcinfo

2013-05-07 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May  8 00:34:50 UTC 2013

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

Log Message:
Simplify previous: instead of polluting the whole code with extra arguments
and dealing with byteorder, do the whole thing in where we need it.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/usr.bin/rpcinfo/rpcinfo.c

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

Modified files:

Index: src/usr.bin/rpcinfo/rpcinfo.c
diff -u src/usr.bin/rpcinfo/rpcinfo.c:1.35 src/usr.bin/rpcinfo/rpcinfo.c:1.36
--- src/usr.bin/rpcinfo/rpcinfo.c:1.35	Tue May  7 17:41:51 2013
+++ src/usr.bin/rpcinfo/rpcinfo.c	Tue May  7 20:34:50 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: rpcinfo.c,v 1.35 2013/05/07 21:41:51 christos Exp $	*/
+/*	$NetBSD: rpcinfo.c,v 1.36 2013/05/08 00:34:50 christos Exp $	*/
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -141,12 +141,12 @@ __dead static void	brdcst(int, char **);
 static void	addrping(const char *, const char *, int, char **);
 static void	progping(const char *, int, char **);
 static CLIENT	*clnt_addr_create(const char *, const struct netconfig *,
-rpcprog_t, rpcvers_t, in_port_t *);
+rpcprog_t, rpcvers_t);
 static CLIENT   *clnt_rpcbind_create(const char *, rpcvers_t, struct netbuf **);
 static CLIENT   *getclnthandle(const char *, const struct netconfig *,
 rpcvers_t, struct netbuf **);
 static CLIENT	*local_rpcb(rpcprog_t, rpcvers_t);
-static int	pstatus(CLIENT *, rpcprog_t, rpcvers_t, in_port_t);
+static int	pstatus(CLIENT *, rpcprog_t, rpcvers_t);
 static void	rpcbdump(int, const char *, int, char **);
 static void	rpcbgetstat(int, char **);
 static void	rpcbaddrlist(const char *, int, char **);
@@ -156,7 +156,6 @@ static void	print_getaddrstat(int, const
 static void	usage(void) __dead;
 static rpcprog_t	getprognum(const char *);
 static rpcvers_t	getvers(const char *);
-static in_port_t	getport(const struct netbuf *);
 static const char *spaces(size_t);
 static bool_t	add_version(struct rpcbdump_short *, rpcvers_t);
 static bool_t	add_netid(struct rpcbdump_short *, char *);
@@ -402,7 +401,7 @@ ip_ping(u_short portnum, const char *tra
 	NULL, (xdrproc_t)xdr_void, NULL, to);
 	if (argc != 2) {
 		/* Version number was known */
-		if (pstatus(client, prognum, vers, portnum)  0)
+		if (pstatus(client, prognum, vers)  0)
 			exit(1);
 		(void)CLNT_DESTROY(client);
 		return;
@@ -438,11 +437,11 @@ ip_ping(u_short portnum, const char *tra
 			minvers = 0;
 			maxvers = MAX_VERS;
 		} else {
-			(void)pstatus(client, prognum, MAX_VERS, portnum);
+			(void)pstatus(client, prognum, MAX_VERS);
 			exit(1);
 		}
 	} else {
-		(void)pstatus(client, prognum, MIN_VERS, portnum);
+		(void)pstatus(client, prognum, MIN_VERS);
 		exit(1);
 	}
 	(void)CLNT_DESTROY(client);
@@ -451,7 +450,7 @@ ip_ping(u_short portnum, const char *tra
 		client = clnt_com_create(addr, prognum, vers, fd, trans);
 		rpc_stat = CLNT_CALL(client, NULLPROC, (xdrproc_t)xdr_void,
 		NULL, (xdrproc_t)xdr_void, NULL, to);
-		if (pstatus(client, prognum, vers, portnum)  0)
+		if (pstatus(client, prognum, vers)  0)
 		failure = 1;
 		(void)CLNT_DESTROY(client);
 	}
@@ -1250,7 +1249,7 @@ deletereg(const char *netid, int argc, c
  */
 static CLIENT *
 clnt_addr_create(const char *address, const struct netconfig *nconf,
-rpcprog_t prog, rpcvers_t vers, in_port_t *port)
+rpcprog_t prog, rpcvers_t vers)
 {
 	CLIENT *client;
 	static struct netbuf *nbuf;
@@ -1266,7 +1265,6 @@ clnt_addr_create(const char *address, co
 		nbuf = uaddr2taddr(nconf, address);
 		if (nbuf == NULL)
 			errx(1, No address for client handle);
-		*port = getport(nbuf);
 	}
 	client = clnt_tli_create(fd, nconf, nbuf, prog, vers, 0, 0);
 	if (client == NULL) {
@@ -1292,7 +1290,6 @@ addrping(const char *address, const char
 	struct rpc_err rpcerr;
 	int failure = 0;
 	struct netconfig *nconf;
-	in_port_t portnum;
 	int fd;
 
 	if (argc  1 || argc  2 || (netid == NULL))
@@ -1312,12 +1309,12 @@ addrping(const char *address, const char
 	} else {
 		versnum = getvers(argv[1]);
 	}
-	client = clnt_addr_create(address, nconf, prognum, versnum, portnum);
+	client = clnt_addr_create(address, nconf, prognum, versnum);
 	rpc_stat = CLNT_CALL(client, NULLPROC, (xdrproc_t)xdr_void,
 	NULL, (xdrproc_t)xdr_void, NULL, to);
 	if (argc == 2) {
 		/* Version number was known */
-		if (pstatus(client, prognum, versnum, portnum)  0)
+		if (pstatus(client, prognum, versnum)  0)
 			failure = 1;
 		(void)CLNT_DESTROY(client);
 		if (failure)
@@ -1337,8 +1334,7 @@ addrping(const char *address, const char
 		 * Let's try version MAX_VERS.
 		 */
 		(void)CLNT_DESTROY(client);
-		client = clnt_addr_create(address, nconf, prognum, MAX_VERS,
-		portnum);
+		client = clnt_addr_create(address, nconf, prognum, MAX_VERS);
 		rpc_stat = CLNT_CALL(client, NULLPROC, (xdrproc_t)xdr_void,
 		

CVS commit: src/sys/rump/include/rump

2013-05-07 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed May  8 00:57:06 UTC 2013

Modified Files:
src/sys/rump/include/rump: makerumpdefs.sh

Log Message:
grab mount-related macros too


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/rump/include/rump/makerumpdefs.sh

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

Modified files:

Index: src/sys/rump/include/rump/makerumpdefs.sh
diff -u src/sys/rump/include/rump/makerumpdefs.sh:1.15 src/sys/rump/include/rump/makerumpdefs.sh:1.16
--- src/sys/rump/include/rump/makerumpdefs.sh:1.15	Wed May  8 00:25:31 2013
+++ src/sys/rump/include/rump/makerumpdefs.sh	Wed May  8 00:57:06 2013
@@ -8,7 +8,7 @@ echo Generating rumpdefs.h
 rm -f rumpdefs.h
 exec  rumpdefs.h
 
-printf '/*	$NetBSD: makerumpdefs.sh,v 1.15 2013/05/08 00:25:31 pooka Exp $	*/\n\n'
+printf '/*	$NetBSD: makerumpdefs.sh,v 1.16 2013/05/08 00:57:06 pooka Exp $	*/\n\n'
 printf '/*\n *\tAUTOMATICALLY GENERATED.  DO NOT EDIT.\n */\n\n'
 printf '#ifndef _RUMP_RUMPDEFS_H_\n'
 printf '#define _RUMP_RUMPDEFS_H_\n\n'
@@ -61,6 +61,12 @@ sed -n '/#define[ 	]*SO_[A-Z]/s/SO_/RUMP
 sed -n '/#define[ 	]*SOL_[A-Z]/s/SOL_/RUMP_/gp' ../../../sys/socket.h \
 | sed 's,/\*.*$,,'
 
+fromvers ../../../sys/mount.h
+sed -n '/#define[ 	]*MOUNT_[A-Z]/s/MOUNT_/RUMP_MOUNT_/gp' ../../../sys/mount.h | sed 's,/\*.*$,,'
+
+fromvers ../../../sys/fstypes.h
+sed -n '/#define[ 	]*MNT_[A-Z].*[^\]$/s/MNT_/RUMP_MNT_/gp' ../../../sys/fstypes.h | sed 's,/\*.*$,,'
+
 fromvers ../../../sys/module.h
 getstruct ../../../sys/module.h modctl_load
 



CVS commit: src/sys/rump/include/rump

2013-05-07 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed May  8 00:57:25 UTC 2013

Modified Files:
src/sys/rump/include/rump: rumpdefs.h

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/rump/include/rump/rumpdefs.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/rump/include/rump/rumpdefs.h
diff -u src/sys/rump/include/rump/rumpdefs.h:1.19 src/sys/rump/include/rump/rumpdefs.h:1.20
--- src/sys/rump/include/rump/rumpdefs.h:1.19	Wed May  8 00:25:55 2013
+++ src/sys/rump/include/rump/rumpdefs.h	Wed May  8 00:57:24 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: rumpdefs.h,v 1.19 2013/05/08 00:25:55 pooka Exp $	*/
+/*	$NetBSD: rumpdefs.h,v 1.20 2013/05/08 00:57:24 pooka Exp $	*/
 
 /*
  *	AUTOMATICALLY GENERATED.  DO NOT EDIT.
@@ -276,6 +276,78 @@ enum rump_vtype	{ RUMP_VNON, RUMP_VREG, 
 #define RUMP_SO_RCVTIMEO	0x100c		
 #define	RUMP_SOL_SOCKET	0x		
 
+/*	NetBSD: mount.h,v 1.209 2013/04/26 22:27:16 mlelstv Exp 	*/
+#define	RUMP_MOUNT_FFS	ffs		
+#define	RUMP_MOUNT_UFS	RUMP_MOUNT_FFS	
+#define	RUMP_MOUNT_NFS	nfs		
+#define	RUMP_MOUNT_MFS	mfs		
+#define	RUMP_MOUNT_MSDOS	msdos		
+#define	RUMP_MOUNT_LFS	lfs		
+#define	RUMP_MOUNT_FDESC	fdesc		
+#define	RUMP_MOUNT_NULL	null		
+#define	RUMP_MOUNT_OVERLAY	overlay	
+#define	RUMP_MOUNT_UMAP	umap	
+#define	RUMP_MOUNT_KERNFS	kernfs	
+#define	RUMP_MOUNT_PROCFS	procfs	
+#define	RUMP_MOUNT_AFS	afs		
+#define	RUMP_MOUNT_CD9660	cd9660	
+#define	RUMP_MOUNT_UNION	union		
+#define	RUMP_MOUNT_ADOSFS	adosfs	
+#define	RUMP_MOUNT_EXT2FS	ext2fs	
+#define	RUMP_MOUNT_CFS	coda		
+#define	RUMP_MOUNT_CODA	RUMP_MOUNT_CFS	
+#define	RUMP_MOUNT_FILECORE	filecore	
+#define	RUMP_MOUNT_NTFS	ntfs		
+#define	RUMP_MOUNT_SMBFS	smbfs		
+#define	RUMP_MOUNT_PTYFS	ptyfs		
+#define	RUMP_MOUNT_TMPFS	tmpfs		
+#define RUMP_MOUNT_UDF	udf		
+#define	RUMP_MOUNT_SYSVBFS	sysvbfs	
+#define RUMP_MOUNT_PUFFS	puffs		
+#define RUMP_MOUNT_HFS	hfs		
+#define RUMP_MOUNT_EFS	efs		
+#define RUMP_MOUNT_ZFS	zfs		
+#define RUMP_MOUNT_NILFS	nilfs		
+#define RUMP_MOUNT_RUMPFS	rumpfs	
+#define	RUMP_MOUNT_V7FS	v7fs		
+
+/*	NetBSD: fstypes.h,v 1.32 2012/11/26 16:22:21 drochner Exp 	*/
+#define	RUMP_MNT_RDONLY	0x0001	
+#define	RUMP_MNT_SYNCHRONOUS	0x0002	
+#define	RUMP_MNT_NOEXEC	0x0004	
+#define	RUMP_MNT_NOSUID	0x0008	
+#define	RUMP_MNT_NODEV	0x0010	
+#define	RUMP_MNT_UNION	0x0020	
+#define	RUMP_MNT_ASYNC	0x0040	
+#define	RUMP_MNT_NOCOREDUMP	0x8000	
+#define	RUMP_MNT_RELATIME	0x0002	
+#define	RUMP_MNT_IGNORE	0x0010	
+#define	RUMP_MNT_DISCARD	0x0080	
+#define	RUMP_MNT_EXTATTR	0x0100	
+#define	RUMP_MNT_LOG		0x0200	
+#define	RUMP_MNT_NOATIME	0x0400	
+#define	RUMP_MNT_SYMPERM	0x2000	
+#define	RUMP_MNT_NODEVMTIME	0x4000	
+#define	RUMP_MNT_SOFTDEP	0x8000	
+#define	RUMP_MNT_EXRDONLY	0x0080	
+#define	RUMP_MNT_EXPORTED	0x0100	
+#define	RUMP_MNT_DEFEXPORTED	0x0200	
+#define	RUMP_MNT_EXPORTANON	0x0400	
+#define	RUMP_MNT_EXKERB	0x0800	
+#define	RUMP_MNT_EXNORESPORT	0x0800	
+#define	RUMP_MNT_EXPUBLIC	0x1000	
+#define	RUMP_MNT_LOCAL	0x1000	
+#define	RUMP_MNT_QUOTA	0x2000	
+#define	RUMP_MNT_ROOTFS	0x4000	
+#define	RUMP_MNT_UPDATE	0x0001	
+#define	RUMP_MNT_RELOAD	0x0004	
+#define	RUMP_MNT_FORCE	0x0008	
+#define	RUMP_MNT_GETARGS	0x0040	
+#define	RUMP_MNT_OP_FLAGS	(RUMP_MNT_UPDATE|RUMP_MNT_RELOAD|RUMP_MNT_FORCE|RUMP_MNT_GETARGS)
+#define	RUMP_MNT_WAIT	1	
+#define	RUMP_MNT_NOWAIT	2	
+#define	RUMP_MNT_LAZY 	3	
+
 /*	NetBSD: module.h,v 1.32 2012/10/17 17:48:48 dyoung Exp 	*/
 struct rump_modctl_load {
 	const char *ml_filename;



CVS commit: src/sys/dev/pci

2013-05-07 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed May  8 03:13:36 UTC 2013

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

Log Message:
 Add missing bus_dmamap_sync() in bge_intr(). The status word is in DMAed area.
Same as *BSDs.


To generate a diff of this commit:
cvs rdiff -u -r1.239 -r1.240 src/sys/dev/pci/if_bge.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_bge.c
diff -u src/sys/dev/pci/if_bge.c:1.239 src/sys/dev/pci/if_bge.c:1.240
--- src/sys/dev/pci/if_bge.c:1.239	Sun May  5 11:28:34 2013
+++ src/sys/dev/pci/if_bge.c	Wed May  8 03:13:35 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_bge.c,v 1.239 2013/05/05 11:28:34 msaitoh Exp $	*/
+/*	$NetBSD: if_bge.c,v 1.240 2013/05/08 03:13:35 msaitoh Exp $	*/
 
 /*
  * Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: if_bge.c,v 1.239 2013/05/05 11:28:34 msaitoh Exp $);
+__KERNEL_RCSID(0, $NetBSD: if_bge.c,v 1.240 2013/05/08 03:13:35 msaitoh Exp $);
 
 #include vlan.h
 
@@ -4491,6 +4491,10 @@ bge_intr(void *xsc)
 	 */
 
 	/* read status word from status block */
+	bus_dmamap_sync(sc-bge_dmatag, sc-bge_ring_map,
+	offsetof(struct bge_ring_data, bge_status_block),
+	sizeof (struct bge_status_block),
+	BUS_DMASYNC_POSTREAD | BUS_DMASYNC_POSTWRITE);
 	statusword = sc-bge_rdata-bge_status_block.bge_status;
 
 	if ((statusword  BGE_STATFLAG_UPDATED) ||



CVS commit: src/sys/dev/pci

2013-05-07 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed May  8 04:05:46 UTC 2013

Modified Files:
src/sys/dev/pci: if_bge.c if_bgereg.h

Log Message:
 Check the hardware config words and print them. This change only read them
and print the values.


To generate a diff of this commit:
cvs rdiff -u -r1.240 -r1.241 src/sys/dev/pci/if_bge.c
cvs rdiff -u -r1.75 -r1.76 src/sys/dev/pci/if_bgereg.h

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

Modified files:

Index: src/sys/dev/pci/if_bge.c
diff -u src/sys/dev/pci/if_bge.c:1.240 src/sys/dev/pci/if_bge.c:1.241
--- src/sys/dev/pci/if_bge.c:1.240	Wed May  8 03:13:35 2013
+++ src/sys/dev/pci/if_bge.c	Wed May  8 04:05:46 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_bge.c,v 1.240 2013/05/08 03:13:35 msaitoh Exp $	*/
+/*	$NetBSD: if_bge.c,v 1.241 2013/05/08 04:05:46 msaitoh Exp $	*/
 
 /*
  * Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: if_bge.c,v 1.240 2013/05/08 03:13:35 msaitoh Exp $);
+__KERNEL_RCSID(0, $NetBSD: if_bge.c,v 1.241 2013/05/08 04:05:46 msaitoh Exp $);
 
 #include vlan.h
 
@@ -3260,7 +3260,7 @@ bge_attach(device_t parent, device_t sel
 	pci_chipset_tag_t	pc;
 	pci_intr_handle_t	ih;
 	const char		*intrstr = NULL;
-	uint32_t		hwcfg = 0;
+	uint32_t 		hwcfg, hwcfg2, hwcfg3, hwcfg4;
 	uint32_t		command;
 	struct ifnet		*ifp;
 	uint32_t		misccfg;
@@ -3593,6 +3593,33 @@ bge_attach(device_t parent, device_t sel
 		}
 	}
 
+	/*
+	 * Read the hardware config word in the first 32k of NIC internal
+	 * memory, or fall back to the config word in the EEPROM.
+	 * Note: on some BCM5700 cards, this value appears to be unset.
+	 */
+	hwcfg = hwcfg2 = hwcfg3 = hwcfg4 = 0;
+	if (bge_readmem_ind(sc, BGE_SRAM_DATA_SIG) ==
+	BGE_SRAM_DATA_SIG_MAGIC) {
+		uint32_t tmp;
+
+		hwcfg = bge_readmem_ind(sc, BGE_SRAM_DATA_CFG);
+		tmp = bge_readmem_ind(sc, BGE_SRAM_DATA_VER) 
+		BGE_SRAM_DATA_VER_SHIFT;
+		if ((0  tmp)  (tmp  0x100))
+			hwcfg2 = bge_readmem_ind(sc, BGE_SRAM_DATA_CFG_2);
+		if (sc-bge_flags  BGE_PCIE)
+			hwcfg3 = bge_readmem_ind(sc, BGE_SRAM_DATA_CFG_3);
+		if (BGE_ASICREV(sc-bge_chipid == BGE_ASICREV_BCM5785))
+			hwcfg4 = bge_readmem_ind(sc, BGE_SRAM_DATA_CFG_4);
+	} else if (!(sc-bge_flags  BGE_NO_EEPROM)) {
+		bge_read_eeprom(sc, (void *)hwcfg,
+		BGE_EE_HWCFG_OFFSET, sizeof(hwcfg));
+		hwcfg = be32toh(hwcfg);
+	}
+	aprint_normal_dev(sc-bge_dev, HW config %08x, %08x, %08x, %08x\n,
+	hwcfg, hwcfg2, hwcfg3, hwcfg4);
+
 #if 0
 	/*
 	 * Reset NVRAM before bge_reset(). It's required to acquire NVRAM
@@ -3758,20 +3785,11 @@ bge_attach(device_t parent, device_t sel
 
 	/*
 	 * Figure out what sort of media we have by checking the hardware
-	 * config word in the first 32k of NIC internal memory, or fall back to
-	 * the config word in the EEPROM. Note: on some BCM5700 cards,
-	 * this value appears to be unset. If that's the case, we have to rely
-	 * on identifying the NIC by its PCI subsystem ID, as we do below for
-	 * the SysKonnect SK-9D41.
+	 * config word.  Note: on some BCM5700 cards, this value appears to be
+	 * unset. If that's the case, we have to rely on identifying the NIC
+	 * by its PCI subsystem ID, as we do below for the SysKonnect SK-9D41.
+	 * The SysKonnect SK-9D41 is a 1000baseSX card.
 	 */
-	if (bge_readmem_ind(sc, BGE_SRAM_DATA_SIG) == BGE_SRAM_DATA_SIG_MAGIC) {
-		hwcfg = bge_readmem_ind(sc, BGE_SRAM_DATA_CFG);
-	} else if (!(sc-bge_flags  BGE_NO_EEPROM)) {
-		bge_read_eeprom(sc, (void *)hwcfg,
-		BGE_EE_HWCFG_OFFSET, sizeof(hwcfg));
-		hwcfg = be32toh(hwcfg);
-	}
-	/* The SysKonnect SK-9D41 is a 1000baseSX card. */
 	if (PCI_PRODUCT(pa-pa_id) == SK_SUBSYSID_9D41 ||
 	(hwcfg  BGE_HWCFG_MEDIA) == BGE_MEDIA_FIBER) {
 		if (BGE_IS_5714_FAMILY(sc))

Index: src/sys/dev/pci/if_bgereg.h
diff -u src/sys/dev/pci/if_bgereg.h:1.75 src/sys/dev/pci/if_bgereg.h:1.76
--- src/sys/dev/pci/if_bgereg.h:1.75	Sun Apr 21 19:59:40 2013
+++ src/sys/dev/pci/if_bgereg.h	Wed May  8 04:05:46 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_bgereg.h,v 1.75 2013/04/21 19:59:40 msaitoh Exp $	*/
+/*	$NetBSD: if_bgereg.h,v 1.76 2013/05/08 04:05:46 msaitoh Exp $	*/
 /*
  * Copyright (c) 2001 Wind River Systems
  * Copyright (c) 1997, 1998, 1999, 2001
@@ -75,12 +75,16 @@
 #define	BGE_SRAM_FW_MB			0x0B50
 #define	BGE_SRAM_DATA_SIG		0x0B54
 #define	BGE_SRAM_DATA_CFG		0x0B58
+#define	BGE_SRAM_DATA_VER		0x0B5C
 #define	BGE_SRAM_FW_CMD_MB		0x0B78
 #define	BGE_SRAM_FW_CMD_LEN_MB		0x0B7C
 #define	BGE_SRAM_FW_CMD_DATA_MB		0x0B80
 #define	BGE_SRAM_FW_DRV_STATE_MB	0x0C04
 #define	BGE_SRAM_MAC_ADDR_HIGH_MB	0x0C14
 #define	BGE_SRAM_MAC_ADDR_LOW_MB	0x0C18
+#define	BGE_SRAM_DATA_CFG_2		0x0D38
+#define	BGE_SRAM_DATA_CFG_3		0x0D3C
+#define	BGE_SRAM_DATA_CFG_4		0x0D60
 #define BGE_SOFTWARE_GENCOMM_END	0x0FFF
 #define BGE_UNMAPPED			0x1000
 #define BGE_UNMAPPED_END		0x1FFF
@@ 

CVS commit: src/share/man/man4

2013-05-07 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Wed May  8 04:33:15 UTC 2013

Modified Files:
src/share/man/man4: Makefile

Log Message:
Fix the build


To generate a diff of this commit:
cvs rdiff -u -r1.599 -r1.600 src/share/man/man4/Makefile

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/Makefile
diff -u src/share/man/man4/Makefile:1.599 src/share/man/man4/Makefile:1.600
--- src/share/man/man4/Makefile:1.599	Tue May  7 22:45:26 2013
+++ src/share/man/man4/Makefile	Wed May  8 04:33:15 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.599 2013/05/07 22:45:26 rkujawa Exp $
+#	$NetBSD: Makefile,v 1.600 2013/05/08 04:33:15 pgoyette Exp $
 #	@(#)Makefile	8.1 (Berkeley) 6/18/93
 
 MAN=	aac.4 ac97.4 acardide.4 aceride.4 acphy.4 \
@@ -121,7 +121,7 @@ MAN+=	sc.4 si.4
 MAN+=	fwohci.4 fwip.4 sbp.4
 
 # machine-independent I2C devices
-MAN+=	dbcool.4 g760a.4 lmtemp.4 mcp980x.4 sdtemp.4 smscmon.4 spdmem.4
+MAN+=	dbcool.4 g760a.4 lmtemp.4 mcp980x.4 sdtemp.4 smscmon.4 spdmem.4 \
 	tps65217pmic.4
 
 # machine-independent SPI devices



CVS commit: src/common/lib/libc/arch/arm

2013-05-07 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Wed May  8 05:13:56 UTC 2013

Modified Files:
src/common/lib/libc/arch/arm/gen: __aeabi_idiv0.c __aeabi_ldiv0.c
divide.S divsi3.S
src/common/lib/libc/arch/arm/quad: __aeabi_ldivmod.S __aeabi_uldivmod.S

Log Message:
When using EABI, call __aeabi_{i,l}div0 when diving by 0.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/common/lib/libc/arch/arm/gen/__aeabi_idiv0.c \
src/common/lib/libc/arch/arm/gen/__aeabi_ldiv0.c \
src/common/lib/libc/arch/arm/gen/divide.S
cvs rdiff -u -r1.4 -r1.5 src/common/lib/libc/arch/arm/gen/divsi3.S
cvs rdiff -u -r1.4 -r1.5 src/common/lib/libc/arch/arm/quad/__aeabi_ldivmod.S \
src/common/lib/libc/arch/arm/quad/__aeabi_uldivmod.S

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

Modified files:

Index: src/common/lib/libc/arch/arm/gen/__aeabi_idiv0.c
diff -u src/common/lib/libc/arch/arm/gen/__aeabi_idiv0.c:1.1 src/common/lib/libc/arch/arm/gen/__aeabi_idiv0.c:1.2
--- src/common/lib/libc/arch/arm/gen/__aeabi_idiv0.c:1.1	Wed Jan 23 07:38:19 2013
+++ src/common/lib/libc/arch/arm/gen/__aeabi_idiv0.c	Wed May  8 05:13:56 2013
@@ -29,9 +29,9 @@
 
 #include sys/cdefs.h
 
-__RCSID($NetBSD: __aeabi_idiv0.c,v 1.1 2013/01/23 07:38:19 matt Exp $);
+__RCSID($NetBSD: __aeabi_idiv0.c,v 1.2 2013/05/08 05:13:56 matt Exp $);
 
-#if !defined(_KERNEL)
+#if !defined(_KERNEL)  !defined(_STANDALONE)
 #include string.h
 #include unistd.h
 #include sys/types.h
@@ -44,8 +44,7 @@ __RCSID($NetBSD: __aeabi_idiv0.c,v 1.1 
 int
 __aeabi_idiv0(int result)
 {
-#ifdef _KERNEL
-#else
+#if !defined(_KERNEL) || !defined(_STANDALONE)
 	siginfo_t info;
 	
 	memset(info, 0, sizeof info);
Index: src/common/lib/libc/arch/arm/gen/__aeabi_ldiv0.c
diff -u src/common/lib/libc/arch/arm/gen/__aeabi_ldiv0.c:1.1 src/common/lib/libc/arch/arm/gen/__aeabi_ldiv0.c:1.2
--- src/common/lib/libc/arch/arm/gen/__aeabi_ldiv0.c:1.1	Wed Jan 23 07:38:19 2013
+++ src/common/lib/libc/arch/arm/gen/__aeabi_ldiv0.c	Wed May  8 05:13:56 2013
@@ -29,9 +29,9 @@
 
 #include sys/cdefs.h
 
-__RCSID($NetBSD: __aeabi_ldiv0.c,v 1.1 2013/01/23 07:38:19 matt Exp $);
+__RCSID($NetBSD: __aeabi_ldiv0.c,v 1.2 2013/05/08 05:13:56 matt Exp $);
 
-#if !defined(_KERNEL)
+#if !defined(_KERNEL)  !defined(_STANDALONE)
 #include string.h
 #include unistd.h
 #include sys/types.h
@@ -44,8 +44,7 @@ __RCSID($NetBSD: __aeabi_ldiv0.c,v 1.1 
 long long
 __aeabi_ldiv0(long long result)
 {
-#ifdef _KERNEL
-#else
+#if !defined(_KERNEL)  !defined(_STANDALONE)
 	siginfo_t info;
 	
 	memset(info, 0, sizeof info);
Index: src/common/lib/libc/arch/arm/gen/divide.S
diff -u src/common/lib/libc/arch/arm/gen/divide.S:1.1 src/common/lib/libc/arch/arm/gen/divide.S:1.2
--- src/common/lib/libc/arch/arm/gen/divide.S:1.1	Tue Oct 30 12:42:13 2012
+++ src/common/lib/libc/arch/arm/gen/divide.S	Wed May  8 05:13:56 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: divide.S,v 1.1 2012/10/30 12:42:13 christos Exp $	*/
+/*	$NetBSD: divide.S,v 1.2 2013/05/08 05:13:56 matt Exp $	*/
 
 /*
  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
@@ -23,14 +23,20 @@
 
 .L_overflow:
 #if !defined(_KERNEL)  !defined(_STANDALONE)
+#ifdef __ARM_EABI__
+	mov	r0, r1/* return quotient */
+	b	PLT_SYM(__aeabi_idiv0)
+#else
 	mov	r0, #8			/* SIGFPE */
-	bl	PIC_SYM(_C_LABEL(raise), PLT)	/* raise it */
+	bl	PLT_SYM(_C_LABEL(raise))	/* raise it */
 	mov	r0, #0
+	RET
+#endif
 #else
 	/* XXX should cause a fatal error */
 	mvn	r0, #0
-#endif
 	RET
+#endif
 
 	.globl	__udivide
 __udivide:/* r0 = r0 / r1; r1 = r0 % r1 */

Index: src/common/lib/libc/arch/arm/gen/divsi3.S
diff -u src/common/lib/libc/arch/arm/gen/divsi3.S:1.4 src/common/lib/libc/arch/arm/gen/divsi3.S:1.5
--- src/common/lib/libc/arch/arm/gen/divsi3.S:1.4	Tue Oct 30 12:42:13 2012
+++ src/common/lib/libc/arch/arm/gen/divsi3.S	Wed May  8 05:13:56 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: divsi3.S,v 1.4 2012/10/30 12:42:13 christos Exp $	*/
+/*	$NetBSD: divsi3.S,v 1.5 2013/05/08 05:13:56 matt Exp $	*/
 
 /*
  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
@@ -18,5 +18,9 @@
 
 ENTRY_NP(__aeabi_idivmod)
 ENTRY_NP(__aeabi_idiv)
+#if defined(__ARM_EABI__)  defined(PIC_SYMVER)
+	.symver	__aeabi_idiv,__aeabi_idiv@@GCC_3.5
+	.symver	__aeabi_idivmod,__aeabi_idivmod@@GCC_3.5
+#endif
 ENTRY(__divsi3)
 	b	__divide

Index: src/common/lib/libc/arch/arm/quad/__aeabi_ldivmod.S
diff -u src/common/lib/libc/arch/arm/quad/__aeabi_ldivmod.S:1.4 src/common/lib/libc/arch/arm/quad/__aeabi_ldivmod.S:1.5
--- src/common/lib/libc/arch/arm/quad/__aeabi_ldivmod.S:1.4	Sun May  5 19:02:22 2013
+++ src/common/lib/libc/arch/arm/quad/__aeabi_ldivmod.S	Wed May  8 05:13:56 2013
@@ -29,9 +29,12 @@
 
 #include machine/asm.h
 
-RCSID($NetBSD: __aeabi_ldivmod.S,v 1.4 2013/05/05 19:02:22 skrll Exp $)
+RCSID($NetBSD: __aeabi_ldivmod.S,v 1.5 2013/05/08 05:13:56 matt Exp $)
 
 ENTRY(__aeabi_ldivmod)
+	orrs	ip, 

CVS commit: src/sys/sys

2013-05-07 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Wed May  8 05:27:02 UTC 2013

Modified Files:
src/sys/sys: ieee754.h

Log Message:
Add two convenience macros for testing a zero fraction.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/sys/ieee754.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/sys/ieee754.h
diff -u src/sys/sys/ieee754.h:1.8 src/sys/sys/ieee754.h:1.9
--- src/sys/sys/ieee754.h:1.8	Wed Aug  8 16:56:53 2012
+++ src/sys/sys/ieee754.h	Wed May  8 05:27:01 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: ieee754.h,v 1.8 2012/08/08 16:56:53 matt Exp $	*/
+/*	$NetBSD: ieee754.h,v 1.9 2013/05/08 05:27:01 matt Exp $	*/
 
 /*
  * Copyright (c) 1992, 1993
@@ -148,6 +148,7 @@ union ieee_single_u {
 #define	sngu_sign	sngu_sng.sng_sign
 #define	sngu_exp	sngu_sng.sng_exp
 #define	sngu_frac	sngu_sng.sng_frac
+#define	SNGU_ZEROFRAC_P(u)	((u).sngu_frac != 0)
 
 union ieee_double_u {
 	double			dblu_d;
@@ -158,4 +159,6 @@ union ieee_double_u {
 #define	dblu_exp	dblu_dbl.dbl_exp
 #define	dblu_frach	dblu_dbl.dbl_frach
 #define	dblu_fracl	dblu_dbl.dbl_fracl
+#define	DBLU_ZEROFRAC_P(u)	(((u).dblu_frach|(u).dblu_fracl) != 0)
+
 #endif /* _SYS_IEEE754_H_ */



CVS commit: src/external/mit/xorg/lib/pixman

2013-05-07 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue May  7 07:01:39 UTC 2013

Modified Files:
src/external/mit/xorg/lib/pixman: Makefile

Log Message:
Enable SSE2 support for i386 - the -current compiler seems to get the
alignment right.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/external/mit/xorg/lib/pixman/Makefile

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



CVS commit: src/sys/ufs/ffs

2013-05-07 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Tue May  7 09:40:54 UTC 2013

Modified Files:
src/sys/ufs/ffs: ffs_snapshot.c

Log Message:
When invalidating short buffers on the snapshots clean list use bbusy()
to mark the buffer busy.  There exists a small window where a buffer is
done but not released and therefore still busy.


To generate a diff of this commit:
cvs rdiff -u -r1.121 -r1.122 src/sys/ufs/ffs/ffs_snapshot.c

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



CVS commit: src/usr.bin/ldd

2013-05-07 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue May  7 13:00:36 UTC 2013

Modified Files:
src/usr.bin/ldd: Makefile.elf

Log Message:
include symver.c


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/ldd/Makefile.elf

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



CVS commit: src/libexec/ld.elf_so

2013-05-07 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue May  7 13:01:07 UTC 2013

Modified Files:
src/libexec/ld.elf_so: symver.c

Log Message:
we don't need the versioning stuff for ldd


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/libexec/ld.elf_so/symver.c

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



CVS commit: src/share/misc

2013-05-07 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Tue May  7 14:55:37 UTC 2013

Modified Files:
src/share/misc: bsd-family-tree

Log Message:
Add DragonFly 3.2.1, DragonFly 3.4.1, FreeBSD 9.1, OpenBSD 5.2, OpenBSD 5.3.

Adapted from FreeBSD base/head/share/misc/bsd-family-tree (svn revision
250330), but the NetBSD version of this file includes entries for
NetBSD-5.0.1 and NetBSD-5.0.2 which are missing from the FreeBSD
version.

Resolves PR misc/47799 from Eitan Adler


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/share/misc/bsd-family-tree

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



CVS commit: src/lib/librumpuser

2013-05-07 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue May  7 15:18:35 UTC 2013

Modified Files:
src/lib/librumpuser: rumpuser_bio.c rumpuser_component.c
rumpuser_daemonize.c

Log Message:
include stdint.h before rumpuser.h (on some platforms it doesn't get
there automagically)


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/librumpuser/rumpuser_bio.c \
src/lib/librumpuser/rumpuser_component.c \
src/lib/librumpuser/rumpuser_daemonize.c

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



CVS commit: src/lib/librumpuser

2013-05-07 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue May  7 15:37:05 UTC 2013

Modified Files:
src/lib/librumpuser: rumpuser_pth_dummy.c

Log Message:
update to recent interface changes


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/lib/librumpuser/rumpuser_pth_dummy.c

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



CVS commit: src/sys/uvm

2013-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 15:49:09 UTC 2013

Modified Files:
src/sys/uvm: uvm_swap.c

Log Message:
Set bp-b_resid to bp-b_bcount on error in swstrategy as required.


To generate a diff of this commit:
cvs rdiff -u -r1.162 -r1.163 src/sys/uvm/uvm_swap.c

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



CVS commit: src/sys/rump/net/lib/libshmif

2013-05-07 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue May  7 16:18:49 UTC 2013

Modified Files:
src/sys/rump/net/lib/libshmif: rumpcomp_user.c

Log Message:
Include necessary headers on Linux


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/rump/net/lib/libshmif/rumpcomp_user.c

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



CVS commit: src/lib/librumpuser

2013-05-07 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue May  7 16:40:31 UTC 2013

Modified Files:
src/lib/librumpuser: rumpuser_pth_dummy.c

Log Message:
need the rw_downgrade/tryupgrade methods too


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/lib/librumpuser/rumpuser_pth_dummy.c

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



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

2013-05-07 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue May  7 20:11:55 UTC 2013

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

Log Message:
Enable putter. Shoot me now.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/evbarm/conf/RPI

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



CVS commit: src/sys/arch

2013-05-07 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Tue May  7 20:42:47 UTC 2013

Modified Files:
src/sys/arch/acorn26/include: disklabel.h types.h
src/sys/arch/acorn32/include: disklabel.h
src/sys/arch/arm/include: disklabel.h
src/sys/arch/arm/include/arm32: types.h
src/sys/arch/cats/include: disklabel.h
src/sys/arch/epoc32/include: disklabel.h types.h
src/sys/arch/evbarm/include: disklabel.h
src/sys/arch/hpcarm/include: disklabel.h types.h
src/sys/arch/iyonix/include: disklabel.h
src/sys/arch/netwinder/include: disklabel.h
src/sys/arch/shark/include: disklabel.h
src/sys/arch/zaurus/include: disklabel.h

Log Message:
Make all ports use a common disklabel.h with MAXPARTITIONS set to 16.
Only RAW_PART varies between ports.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/acorn26/include/disklabel.h
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/acorn26/include/types.h
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/acorn32/include/disklabel.h
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/arm/include/disklabel.h
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/arm/include/arm32/types.h
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/cats/include/disklabel.h
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/epoc32/include/disklabel.h \
src/sys/arch/epoc32/include/types.h
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/evbarm/include/disklabel.h
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/hpcarm/include/disklabel.h
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/hpcarm/include/types.h
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/iyonix/include/disklabel.h
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/netwinder/include/disklabel.h
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/shark/include/disklabel.h
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/zaurus/include/disklabel.h

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



CVS commit: src/lib/libc/rpc

2013-05-07 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue May  7 21:08:45 UTC 2013

Modified Files:
src/lib/libc/rpc: clnt_dg.c clnt_generic.c clnt_vc.c rpc_internal.h

Log Message:
- add __clnt_sigfillset() that does not blindly block all signals but excludes
  the tty generated ones (int, quit, tstp), plus term and hup. This makes
  command line clients behave on connect(2) where before they would need
  to be killed from a different tty. Much easier than making the file
  descriptor non-blocking for the duration of connect and then using
  pselect/pollts to detect when actual connection or timeout occured using
  a different sigmask.
- factor out some of the error paths.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/lib/libc/rpc/clnt_dg.c
cvs rdiff -u -r1.30 -r1.31 src/lib/libc/rpc/clnt_generic.c
cvs rdiff -u -r1.22 -r1.23 src/lib/libc/rpc/clnt_vc.c
cvs rdiff -u -r1.6 -r1.7 src/lib/libc/rpc/rpc_internal.h

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



CVS commit: src/share/man/man4

2013-05-07 Thread Radoslaw Kujawa
Module Name:src
Committed By:   rkujawa
Date:   Tue May  7 22:45:27 UTC 2013

Modified Files:
src/share/man/man4: Makefile
Added Files:
src/share/man/man4: mcp980x.4

Log Message:
Add mcp980x(4) man page.


To generate a diff of this commit:
cvs rdiff -u -r1.598 -r1.599 src/share/man/man4/Makefile
cvs rdiff -u -r0 -r1.1 src/share/man/man4/mcp980x.4

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



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

2013-05-07 Thread Radoslaw Kujawa
Module Name:src
Committed By:   rkujawa
Date:   Tue May  7 22:51:55 UTC 2013

Modified Files:
src/distrib/sets/lists/man: mi

Log Message:
Add mcp980x(4) man page to dist list.


To generate a diff of this commit:
cvs rdiff -u -r1.1427 -r1.1428 src/distrib/sets/lists/man/mi

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



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

2013-05-07 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Tue May  7 23:01:55 UTC 2013

Modified Files:
src/sys/arch/arm/include: types.h
src/sys/arch/arm/include/arm32: types.h

Log Message:
Move #define __HAVE_OLD_DISKLABEL to arm/types.h


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/arm/include/types.h
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/arm/include/arm32/types.h

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



CVS commit: src/sys/rump/include/rump

2013-05-07 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed May  8 00:25:31 UTC 2013

Modified Files:
src/sys/rump/include/rump: makerumpdefs.sh

Log Message:
Grab the sysvbfs args structure too, since the fs is useful for
simple testing.  Incidentally, the structure is exactly the same as
for UFS...


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/rump/include/rump/makerumpdefs.sh

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



CVS commit: src/sys/rump/include/rump

2013-05-07 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed May  8 00:25:55 UTC 2013

Modified Files:
src/sys/rump/include/rump: rumpdefs.h

Log Message:
regen


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

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



CVS commit: src/usr.bin/rpcinfo

2013-05-07 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May  8 00:34:50 UTC 2013

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

Log Message:
Simplify previous: instead of polluting the whole code with extra arguments
and dealing with byteorder, do the whole thing in where we need it.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/usr.bin/rpcinfo/rpcinfo.c

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



CVS commit: src/sys/rump/include/rump

2013-05-07 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed May  8 00:57:06 UTC 2013

Modified Files:
src/sys/rump/include/rump: makerumpdefs.sh

Log Message:
grab mount-related macros too


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/rump/include/rump/makerumpdefs.sh

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



CVS commit: src/sys/rump/include/rump

2013-05-07 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed May  8 00:57:25 UTC 2013

Modified Files:
src/sys/rump/include/rump: rumpdefs.h

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/rump/include/rump/rumpdefs.h

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



CVS commit: src/sys/dev/pci

2013-05-07 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed May  8 03:13:36 UTC 2013

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

Log Message:
 Add missing bus_dmamap_sync() in bge_intr(). The status word is in DMAed area.
Same as *BSDs.


To generate a diff of this commit:
cvs rdiff -u -r1.239 -r1.240 src/sys/dev/pci/if_bge.c

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



CVS commit: src/sys/dev/pci

2013-05-07 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed May  8 04:05:46 UTC 2013

Modified Files:
src/sys/dev/pci: if_bge.c if_bgereg.h

Log Message:
 Check the hardware config words and print them. This change only read them
and print the values.


To generate a diff of this commit:
cvs rdiff -u -r1.240 -r1.241 src/sys/dev/pci/if_bge.c
cvs rdiff -u -r1.75 -r1.76 src/sys/dev/pci/if_bgereg.h

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



CVS commit: src/share/man/man4

2013-05-07 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Wed May  8 04:33:15 UTC 2013

Modified Files:
src/share/man/man4: Makefile

Log Message:
Fix the build


To generate a diff of this commit:
cvs rdiff -u -r1.599 -r1.600 src/share/man/man4/Makefile

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



CVS commit: src/common/lib/libc/arch/arm

2013-05-07 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Wed May  8 05:13:56 UTC 2013

Modified Files:
src/common/lib/libc/arch/arm/gen: __aeabi_idiv0.c __aeabi_ldiv0.c
divide.S divsi3.S
src/common/lib/libc/arch/arm/quad: __aeabi_ldivmod.S __aeabi_uldivmod.S

Log Message:
When using EABI, call __aeabi_{i,l}div0 when diving by 0.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/common/lib/libc/arch/arm/gen/__aeabi_idiv0.c \
src/common/lib/libc/arch/arm/gen/__aeabi_ldiv0.c \
src/common/lib/libc/arch/arm/gen/divide.S
cvs rdiff -u -r1.4 -r1.5 src/common/lib/libc/arch/arm/gen/divsi3.S
cvs rdiff -u -r1.4 -r1.5 src/common/lib/libc/arch/arm/quad/__aeabi_ldivmod.S \
src/common/lib/libc/arch/arm/quad/__aeabi_uldivmod.S

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



CVS commit: src/sys/sys

2013-05-07 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Wed May  8 05:27:02 UTC 2013

Modified Files:
src/sys/sys: ieee754.h

Log Message:
Add two convenience macros for testing a zero fraction.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/sys/ieee754.h

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



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

2013-05-07 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed May  8 05:40:15 UTC 2013

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

Log Message:
Add libgmp files for earmeb.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/lgpl3/gmp/lib/libgmp/arch/earmeb/Makefile.inc \
src/external/lgpl3/gmp/lib/libgmp/arch/earmeb/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/earmeb/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/earmeb/gmp-mparam.h \
src/external/lgpl3/gmp/lib/libgmp/arch/earmeb/gmp.h \
src/external/lgpl3/gmp/lib/libgmp/arch/earmeb/mp.h

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



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

2013-05-07 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed May  8 05:42:17 UTC 2013

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

Log Message:
Add earmhfeb libgmp files.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/lgpl3/gmp/lib/libgmp/arch/earmhfeb/Makefile.inc \
src/external/lgpl3/gmp/lib/libgmp/arch/earmhfeb/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/earmhfeb/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/earmhfeb/gmp-mparam.h \
src/external/lgpl3/gmp/lib/libgmp/arch/earmhfeb/gmp.h \
src/external/lgpl3/gmp/lib/libgmp/arch/earmhfeb/mp.h

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