re: CVS commit: src/usr.bin/man

2014-08-14 Thread matthew green

Alan Barrett writes:
 Module Name:  src
 Committed By: apb
 Date: Thu Aug 14 15:31:12 UTC 2014
 
 Modified Files:
   src/usr.bin/man: man.c
 
 Log Message:
 For an argument to be interpreted as a local file name, bypassing the
 search rules in man.conf or MANPATH, it must begin with /, ./, or
 ../.  Simply testing whether it contains / is wrong, because it
 breaks usage like man 8 vax/boot.
 
 This reverts revision 1.57 dated 2013-10-06,
 Be more permissive in interpreting man pages as filenames.

what about trying to stat() it and use it, as a last resort?
it's always kind of bothered me man file.1 doesn't work,
and the ./ workaround always seems sleezy.


.mrg.


CVS commit: [netbsd-7] src/sys/arch/sparc64/sparc64

2014-08-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Aug 14 06:50:37 UTC 2014

Modified Files:
src/sys/arch/sparc64/sparc64 [netbsd-7]: locore.s

Log Message:
Pull up following revision(s) (requested by nakayama in ticket #14):
sys/arch/sparc64/sparc64/locore.s: revision 1.370
Add missing delay slot in DEBUG kernel.


To generate a diff of this commit:
cvs rdiff -u -r1.369 -r1.369.2.1 src/sys/arch/sparc64/sparc64/locore.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/sparc64/sparc64/locore.s
diff -u src/sys/arch/sparc64/sparc64/locore.s:1.369 src/sys/arch/sparc64/sparc64/locore.s:1.369.2.1
--- src/sys/arch/sparc64/sparc64/locore.s:1.369	Wed Jul 30 13:50:33 2014
+++ src/sys/arch/sparc64/sparc64/locore.s	Thu Aug 14 06:50:37 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: locore.s,v 1.369 2014/07/30 13:50:33 palle Exp $	*/
+/*	$NetBSD: locore.s,v 1.369.2.1 2014/08/14 06:50:37 martin Exp $	*/
 
 /*
  * Copyright (c) 2006-2010 Matthew R. Green
@@ -4465,6 +4465,7 @@ ENTRY_NOPROFILE(cpu_initialize)	/* for c
 	
 	set	1f, %o0		! Debug printf
 	call	_C_LABEL(prom_printf)
+	 nop
 	.data
 1:
 	.asciz	Setting trap base...\r\n



CVS commit: [netbsd-7] src/sys/arch/x86/pci

2014-08-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Aug 14 06:52:38 UTC 2014

Modified Files:
src/sys/arch/x86/pci [netbsd-7]: if_vmx.c

Log Message:
Pull up following revision(s) (requested by hikaru in ticket #15):
sys/arch/x86/pci/if_vmx.c: revision 1.5
Set ifflags callback so that the device can enter promiscuous mode.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.4.4.1 src/sys/arch/x86/pci/if_vmx.c

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

Modified files:

Index: src/sys/arch/x86/pci/if_vmx.c
diff -u src/sys/arch/x86/pci/if_vmx.c:1.4 src/sys/arch/x86/pci/if_vmx.c:1.4.4.1
--- src/sys/arch/x86/pci/if_vmx.c:1.4	Sat Jul 19 06:12:24 2014
+++ src/sys/arch/x86/pci/if_vmx.c	Thu Aug 14 06:52:38 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_vmx.c,v 1.4 2014/07/19 06:12:24 hikaru Exp $	*/
+/*	$NetBSD: if_vmx.c,v 1.4.4.1 2014/08/14 06:52:38 martin Exp $	*/
 /*	$OpenBSD: if_vmx.c,v 1.16 2014/01/22 06:04:17 brad Exp $	*/
 
 /*
@@ -18,7 +18,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: if_vmx.c,v 1.4 2014/07/19 06:12:24 hikaru Exp $);
+__KERNEL_RCSID(0, $NetBSD: if_vmx.c,v 1.4.4.1 2014/08/14 06:52:38 martin Exp $);
 
 #include sys/param.h
 #include sys/bus.h
@@ -158,6 +158,7 @@ void vmxnet3_evintr(struct vmxnet3_softc
 void vmxnet3_txintr(struct vmxnet3_softc *, struct vmxnet3_txqueue *);
 void vmxnet3_rxintr(struct vmxnet3_softc *, struct vmxnet3_rxqueue *);
 void vmxnet3_iff(struct vmxnet3_softc *);
+int vmxnet3_ifflags_cb(struct ethercom *);
 void vmxnet3_rx_csum(struct vmxnet3_rxcompdesc *, struct mbuf *);
 int vmxnet3_getbuf(struct vmxnet3_softc *, struct vmxnet3_rxring *);
 void vmxnet3_stop(struct ifnet *, int disable);
@@ -308,6 +309,7 @@ vmxnet3_attach(device_t parent, device_t
 
 	if_attach(ifp);
 	ether_ifattach(ifp, enaddr);
+	ether_set_ifflags_cb(sc-sc_ethercom, vmxnet3_ifflags_cb);
 	vmxnet3_link_state(sc);
 }
 
@@ -859,6 +861,15 @@ setit:
 	WRITE_CMD(sc, VMXNET3_CMD_SET_RXMODE);
 }
 
+int
+vmxnet3_ifflags_cb(struct ethercom *ec)
+{
+
+	vmxnet3_iff((struct vmxnet3_softc *)ec-ec_if.if_softc);
+
+	return 0;
+}
+
 
 void
 vmxnet3_rx_csum(struct vmxnet3_rxcompdesc *rxcd, struct mbuf *m)



CVS commit: [netbsd-7] src/sys/dev/usb

2014-08-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Aug 14 06:56:55 UTC 2014

Modified Files:
src/sys/dev/usb [netbsd-7]: usb.h

Log Message:
Pull up following revision(s) (requested by skrll in ticket #10):
sys/dev/usb/usb.h: revision 1.107
Define AXEN_DEBUG.  From Takahiro HAYASHI.


To generate a diff of this commit:
cvs rdiff -u -r1.106.4.1 -r1.106.4.2 src/sys/dev/usb/usb.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/usb/usb.h
diff -u src/sys/dev/usb/usb.h:1.106.4.1 src/sys/dev/usb/usb.h:1.106.4.2
--- src/sys/dev/usb/usb.h:1.106.4.1	Wed Aug 13 21:50:39 2014
+++ src/sys/dev/usb/usb.h	Thu Aug 14 06:56:55 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: usb.h,v 1.106.4.1 2014/08/13 21:50:39 riz Exp $	*/
+/*	$NetBSD: usb.h,v 1.106.4.2 2014/08/14 06:56:55 martin Exp $	*/
 /*	$FreeBSD: src/sys/dev/usb/usb.h,v 1.14 1999/11/17 22:33:46 n_hibma Exp $	*/
 
 /*
@@ -60,6 +60,7 @@ MALLOC_DECLARE(M_USBHC);
 #define AUE_DEBUG 1
 #define AUVITEK_I2C_DEBUG 1
 #define AXE_DEBUG 1
+#define AXEN_DEBUG 1
 #define CUE_DEBUG 1
 #define DWC2_DEBUG 1
 #define EHCI_DEBUG 1



CVS commit: [netbsd-7] src/doc

2014-08-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Aug 14 06:58:39 UTC 2014

Modified Files:
src/doc [netbsd-7]: CHANGES-7.0

Log Message:
Tickets 10, 14 and 15


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.8 -r1.1.2.9 src/doc/CHANGES-7.0

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-7.0
diff -u src/doc/CHANGES-7.0:1.1.2.8 src/doc/CHANGES-7.0:1.1.2.9
--- src/doc/CHANGES-7.0:1.1.2.8	Wed Aug 13 21:50:56 2014
+++ src/doc/CHANGES-7.0	Thu Aug 14 06:58:39 2014
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-7.0,v 1.1.2.8 2014/08/13 21:50:56 riz Exp $
+# $NetBSD: CHANGES-7.0,v 1.1.2.9 2014/08/14 06:58:39 martin Exp $
 
 A complete list of changes from the initial NetBSD 7.0 branch on 11 Aug 2014
 until the 7.0 release:
@@ -93,3 +93,18 @@ sys/dev/usb/usb.h1.108
 	Add XHCI_DEBUG.
 	[skrll, ticket #12]
 
+sys/arch/sparc64/sparc64/locore.s		1.370
+
+	Add missing delay slot in DEBUG kernel.
+	[nakayama, ticket #14]
+
+sys/arch/x86/pci/if_vmx.c			1.5
+
+	Set ifflags callback so that the device can enter promiscuous mode.
+	[hikaru, ticket #15]
+
+sys/dev/usb/usb.h1.107
+
+	Define AXEN_DEBUG.  From Takahiro HAYASHI.
+	[skrll, ticket #10]
+



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

2014-08-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Aug 14 09:02:18 UTC 2014

Modified Files:
src/sys/arch/vax/include: mutex.h

Log Message:
Previously we used unsigned long int as __uintptr_t, but gcc prefers
__UINTPTR_TYPE__ as unsigned int, and now we use that for __uintptr_t
as well, so adapt MUTEX_CAS() accordingly.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/vax/include/mutex.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/vax/include/mutex.h
diff -u src/sys/arch/vax/include/mutex.h:1.12 src/sys/arch/vax/include/mutex.h:1.13
--- src/sys/arch/vax/include/mutex.h:1.12	Mon Apr 28 20:23:39 2008
+++ src/sys/arch/vax/include/mutex.h	Thu Aug 14 09:02:18 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: mutex.h,v 1.12 2008/04/28 20:23:39 martin Exp $	*/
+/*	$NetBSD: mutex.h,v 1.13 2014/08/14 09:02:18 martin Exp $	*/
 
 /*-
  * Copyright (c) 2002, 2007 The NetBSD Foundation, Inc.
@@ -82,7 +82,7 @@ struct kmutex {
  */
 #define	MUTEX_GIVE(mtx)		/* nothing */
 
-#define	MUTEX_CAS(p, o, n)	(atomic_cas_ulong((p), (o), (n)) == (o))
+#define	MUTEX_CAS(p, o, n)	(atomic_cas_uint((p), (o), (n)) == (o))
 
 #endif	/* __MUTEX_PRIVATE */
 



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

2014-08-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Aug 14 09:17:32 UTC 2014

Modified Files:
src/sys/arch/vax/include: int_fmtio.h

Log Message:
intptr_t and uintptr_t are not long any more.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/vax/include/int_fmtio.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/vax/include/int_fmtio.h
diff -u src/sys/arch/vax/include/int_fmtio.h:1.5 src/sys/arch/vax/include/int_fmtio.h:1.6
--- src/sys/arch/vax/include/int_fmtio.h:1.5	Wed Aug 13 19:48:17 2014
+++ src/sys/arch/vax/include/int_fmtio.h	Thu Aug 14 09:17:32 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: int_fmtio.h,v 1.5 2014/08/13 19:48:17 matt Exp $	*/
+/*	$NetBSD: int_fmtio.h,v 1.6 2014/08/14 09:17:32 martin Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -69,7 +69,7 @@
 #define	PRIiFAST32	i	/* int_fast32_t		*/
 #define	PRIiFAST64	lli	/* int_fast64_t		*/
 #define	PRIiMAX		lli	/* intmax_t		*/
-#define	PRIiPTR		li	/* intptr_t		*/
+#define	PRIiPTR		i	/* intptr_t		*/
 
 /* fprintf macros for unsigned integers */
 
@@ -101,7 +101,7 @@
 #define	PRIuFAST32	u	/* uint_fast32_t	*/
 #define	PRIuFAST64	llu	/* uint_fast64_t	*/
 #define	PRIuMAX		llu	/* uintmax_t		*/
-#define	PRIuPTR		lu	/* uintptr_t		*/
+#define	PRIuPTR		u	/* uintptr_t		*/
 
 #define	PRIx8		x	/* uint8_t		*/
 #define	PRIx16		x	/* uint16_t		*/



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

2014-08-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Aug 14 11:28:13 UTC 2014

Modified Files:
src/sys/arch/vax/include: int_fmtio.h mutex.h

Log Message:
Revert previous changes, gcc configuration will be adapted instead.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/vax/include/int_fmtio.h
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/vax/include/mutex.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/vax/include/int_fmtio.h
diff -u src/sys/arch/vax/include/int_fmtio.h:1.6 src/sys/arch/vax/include/int_fmtio.h:1.7
--- src/sys/arch/vax/include/int_fmtio.h:1.6	Thu Aug 14 09:17:32 2014
+++ src/sys/arch/vax/include/int_fmtio.h	Thu Aug 14 11:28:13 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: int_fmtio.h,v 1.6 2014/08/14 09:17:32 martin Exp $	*/
+/*	$NetBSD: int_fmtio.h,v 1.7 2014/08/14 11:28:13 martin Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -69,7 +69,7 @@
 #define	PRIiFAST32	i	/* int_fast32_t		*/
 #define	PRIiFAST64	lli	/* int_fast64_t		*/
 #define	PRIiMAX		lli	/* intmax_t		*/
-#define	PRIiPTR		i	/* intptr_t		*/
+#define	PRIiPTR		li	/* intptr_t		*/
 
 /* fprintf macros for unsigned integers */
 
@@ -101,7 +101,7 @@
 #define	PRIuFAST32	u	/* uint_fast32_t	*/
 #define	PRIuFAST64	llu	/* uint_fast64_t	*/
 #define	PRIuMAX		llu	/* uintmax_t		*/
-#define	PRIuPTR		u	/* uintptr_t		*/
+#define	PRIuPTR		lu	/* uintptr_t		*/
 
 #define	PRIx8		x	/* uint8_t		*/
 #define	PRIx16		x	/* uint16_t		*/

Index: src/sys/arch/vax/include/mutex.h
diff -u src/sys/arch/vax/include/mutex.h:1.13 src/sys/arch/vax/include/mutex.h:1.14
--- src/sys/arch/vax/include/mutex.h:1.13	Thu Aug 14 09:02:18 2014
+++ src/sys/arch/vax/include/mutex.h	Thu Aug 14 11:28:13 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: mutex.h,v 1.13 2014/08/14 09:02:18 martin Exp $	*/
+/*	$NetBSD: mutex.h,v 1.14 2014/08/14 11:28:13 martin Exp $	*/
 
 /*-
  * Copyright (c) 2002, 2007 The NetBSD Foundation, Inc.
@@ -82,7 +82,7 @@ struct kmutex {
  */
 #define	MUTEX_GIVE(mtx)		/* nothing */
 
-#define	MUTEX_CAS(p, o, n)	(atomic_cas_uint((p), (o), (n)) == (o))
+#define	MUTEX_CAS(p, o, n)	(atomic_cas_ulong((p), (o), (n)) == (o))
 
 #endif	/* __MUTEX_PRIVATE */
 



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

2014-08-14 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Aug 14 11:32:18 UTC 2014

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/vax: netbsd-elf.h

Log Message:
Force INTPTR_TYPE/UINTPTR_TYPE to long int/unsigned long int.
(same types as PTRDIFF_TYPE/SIZE_TYPE)


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 \
src/external/gpl3/gcc/dist/gcc/config/vax/netbsd-elf.h

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

Modified files:

Index: src/external/gpl3/gcc/dist/gcc/config/vax/netbsd-elf.h
diff -u src/external/gpl3/gcc/dist/gcc/config/vax/netbsd-elf.h:1.1.1.2 src/external/gpl3/gcc/dist/gcc/config/vax/netbsd-elf.h:1.2
--- src/external/gpl3/gcc/dist/gcc/config/vax/netbsd-elf.h:1.1.1.2	Sat Mar  1 08:43:34 2014
+++ src/external/gpl3/gcc/dist/gcc/config/vax/netbsd-elf.h	Thu Aug 14 11:32:18 2014
@@ -63,6 +63,12 @@ along with GCC; see the file COPYING3.  
 #define EXTRA_SPECS\
   { netbsd_entry_point, NETBSD_ENTRY_POINT },
 
+#undef INTPTR_TYPE
+#define INTPTR_TYPE long int
+
+#undef UINTPTR_TYPE
+#define UINTPTR_TYPE long unsigned int
+
 /* We use gas, not the UNIX assembler.  */
 #undef TARGET_DEFAULT
 #define TARGET_DEFAULT MASK_QMATH



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

2014-08-14 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Thu Aug 14 12:48:52 UTC 2014

Modified Files:
src/sys/arch/evbarm/conf: std.odroid

Log Message:
Set __NO_FIQ for the Exynos processors are shipped with SecureCore enabled
gics and FIQs are for the secure part only.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/evbarm/conf/std.odroid

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/std.odroid
diff -u src/sys/arch/evbarm/conf/std.odroid:1.2 src/sys/arch/evbarm/conf/std.odroid:1.3
--- src/sys/arch/evbarm/conf/std.odroid:1.2	Fri Jun  6 15:00:20 2014
+++ src/sys/arch/evbarm/conf/std.odroid	Thu Aug 14 12:48:52 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: std.odroid,v 1.2 2014/06/06 15:00:20 reinoud Exp $
+#	$NetBSD: std.odroid,v 1.3 2014/08/14 12:48:52 reinoud Exp $
 #
 # standard NetBSD/evbarm for ODROID options
 
@@ -23,6 +23,7 @@ options 	FPU_VFP
 
 # All shipped Samsung SoC's that are not Samsung products have this
 options 	ARM_TRUSTZONE_FIRMWARE
+options		__NO_FIQ
 
 makeoptions	KERNEL_BASE_PHYS=0x8000
 makeoptions	KERNEL_BASE_VIRT=0x8000



CVS commit: src/sys/fs/ptyfs

2014-08-14 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Thu Aug 14 14:06:53 UTC 2014

Modified Files:
src/sys/fs/ptyfs: ptyfs_vfsops.c

Log Message:
Overflow if *data_len == OSIZE and args-version = PTYFS_ARGSVERSION.

Sent on tech-kern@, ok christos@


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/fs/ptyfs/ptyfs_vfsops.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/fs/ptyfs/ptyfs_vfsops.c
diff -u src/sys/fs/ptyfs/ptyfs_vfsops.c:1.51 src/sys/fs/ptyfs/ptyfs_vfsops.c:1.52
--- src/sys/fs/ptyfs/ptyfs_vfsops.c:1.51	Wed Aug 13 14:10:00 2014
+++ src/sys/fs/ptyfs/ptyfs_vfsops.c	Thu Aug 14 14:06:53 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: ptyfs_vfsops.c,v 1.51 2014/08/13 14:10:00 hannken Exp $	*/
+/*	$NetBSD: ptyfs_vfsops.c,v 1.52 2014/08/14 14:06:53 maxv Exp $	*/
 
 /*
  * Copyright (c) 1992, 1993, 1995
@@ -38,7 +38,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: ptyfs_vfsops.c,v 1.51 2014/08/13 14:10:00 hannken Exp $);
+__KERNEL_RCSID(0, $NetBSD: ptyfs_vfsops.c,v 1.52 2014/08/14 14:06:53 maxv Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -266,8 +266,10 @@ ptyfs_mount(struct mount *mp, const char
 
 	if (args == NULL)
 		return EINVAL;
-	if (*data_len != sizeof *args  *data_len != OSIZE)
-		return EINVAL;
+	if (*data_len != sizeof *args) {
+		if (*data_len != OSIZE || args-version = PTYFS_ARGSVERSION)
+			return EINVAL;
+	}
 
 	if (UIO_MX  (UIO_MX - 1)) {
 		log(LOG_ERR, ptyfs: invalid directory entry size);



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

2014-08-14 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Aug 14 14:21:03 UTC 2014

Modified Files:
src/sys/arch/vax/include: int_fmtio.h

Log Message:
Fix SCN?FAST{8,16} formats to match reality (int) in gcc4.8.3


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/vax/include/int_fmtio.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/vax/include/int_fmtio.h
diff -u src/sys/arch/vax/include/int_fmtio.h:1.7 src/sys/arch/vax/include/int_fmtio.h:1.8
--- src/sys/arch/vax/include/int_fmtio.h:1.7	Thu Aug 14 11:28:13 2014
+++ src/sys/arch/vax/include/int_fmtio.h	Thu Aug 14 14:21:03 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: int_fmtio.h,v 1.7 2014/08/14 11:28:13 martin Exp $	*/
+/*	$NetBSD: int_fmtio.h,v 1.8 2014/08/14 14:21:03 matt Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -143,8 +143,8 @@
 #define	SCNdLEAST16	hd	/* int_least16_t	*/
 #define	SCNdLEAST32	d	/* int_least32_t	*/
 #define	SCNdLEAST64	lld	/* int_least64_t	*/
-#define	SCNdFAST8	hhd	/* int_fast8_t		*/
-#define	SCNdFAST16	hd	/* int_fast16_t		*/
+#define	SCNdFAST8	d	/* int_fast8_t		*/
+#define	SCNdFAST16	d	/* int_fast16_t		*/
 #define	SCNdFAST32	d	/* int_fast32_t		*/
 #define	SCNdFAST64	lld	/* int_fast64_t		*/
 #define	SCNdMAX		lld	/* intmax_t		*/
@@ -158,8 +158,8 @@
 #define	SCNiLEAST16	hi	/* int_least16_t	*/
 #define	SCNiLEAST32	i	/* int_least32_t	*/
 #define	SCNiLEAST64	lli	/* int_least64_t	*/
-#define	SCNiFAST8	hhi	/* int_fast8_t		*/
-#define	SCNiFAST16	hi	/* int_fast16_t		*/
+#define	SCNiFAST8	i	/* int_fast8_t		*/
+#define	SCNiFAST16	i	/* int_fast16_t		*/
 #define	SCNiFAST32	i	/* int_fast32_t		*/
 #define	SCNiFAST64	lli	/* int_fast64_t		*/
 #define	SCNiMAX		lli	/* intmax_t		*/
@@ -175,8 +175,8 @@
 #define	SCNoLEAST16	ho	/* uint_least16_t	*/
 #define	SCNoLEAST32	o	/* uint_least32_t	*/
 #define	SCNoLEAST64	llo	/* uint_least64_t	*/
-#define	SCNoFAST8	hho	/* uint_fast8_t		*/
-#define	SCNoFAST16	ho	/* uint_fast16_t	*/
+#define	SCNoFAST8	o	/* uint_fast8_t		*/
+#define	SCNoFAST16	o	/* uint_fast16_t	*/
 #define	SCNoFAST32	o	/* uint_fast32_t	*/
 #define	SCNoFAST64	llo	/* uint_fast64_t	*/
 #define	SCNoMAX		llo	/* uintmax_t		*/
@@ -190,8 +190,8 @@
 #define	SCNuLEAST16	hu	/* uint_least16_t	*/
 #define	SCNuLEAST32	u	/* uint_least32_t	*/
 #define	SCNuLEAST64	llu	/* uint_least64_t	*/
-#define	SCNuFAST8	hhu	/* uint_fast8_t		*/
-#define	SCNuFAST16	hu	/* uint_fast16_t	*/
+#define	SCNuFAST8	u	/* uint_fast8_t		*/
+#define	SCNuFAST16	u	/* uint_fast16_t	*/
 #define	SCNuFAST32	u	/* uint_fast32_t	*/
 #define	SCNuFAST64	llu	/* uint_fast64_t	*/
 #define	SCNuMAX		llu	/* uintmax_t		*/
@@ -205,8 +205,8 @@
 #define	SCNxLEAST16	hx	/* uint_least16_t	*/
 #define	SCNxLEAST32	x	/* uint_least32_t	*/
 #define	SCNxLEAST64	llx	/* uint_least64_t	*/
-#define	SCNxFAST8	hhx	/* uint_fast8_t		*/
-#define	SCNxFAST16	hx	/* uint_fast16_t	*/
+#define	SCNxFAST8	x	/* uint_fast8_t		*/
+#define	SCNxFAST16	x	/* uint_fast16_t	*/
 #define	SCNxFAST32	x	/* uint_fast32_t	*/
 #define	SCNxFAST64	llx	/* uint_fast64_t	*/
 #define	SCNxMAX		llx	/* uintmax_t		*/



CVS commit: src/share/mk

2014-08-14 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Aug 14 15:14:45 UTC 2014

Modified Files:
src/share/mk: bsd.sys.mk

Log Message:
Fix typo in OBJCOPYLIBFLAGS_EXTRA for aarch64eb.


To generate a diff of this commit:
cvs rdiff -u -r1.242 -r1.243 src/share/mk/bsd.sys.mk

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

Modified files:

Index: src/share/mk/bsd.sys.mk
diff -u src/share/mk/bsd.sys.mk:1.242 src/share/mk/bsd.sys.mk:1.243
--- src/share/mk/bsd.sys.mk:1.242	Sun Aug 10 17:44:26 2014
+++ src/share/mk/bsd.sys.mk	Thu Aug 14 15:14:45 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.sys.mk,v 1.242 2014/08/10 17:44:26 joerg Exp $
+#	$NetBSD: bsd.sys.mk,v 1.243 2014/08/14 15:14:45 matt Exp $
 #
 # Build definitions used for NetBSD source tree builds.
 
@@ -261,7 +261,7 @@ YFLAGS+=	${YPREFIX:D-p${YPREFIX}} ${YHEA
 # Objcopy
 .if ${MACHINE_ARCH} == aarch64eb
 # AARCH64 big endian needs to preserve $x/$d symbols for the linker.
-OBJCOPYLIBFALGS_EXTRA=-K '\$x' -K '\$d'
+OBJCOPYLIBFLAGS_EXTRA=-K '\$x' -K '\$d'
 .elif !empty(MACHINE_ARCH:M*arm*eb)
 # ARM big endian needs to preserve $a/$d/$t symbols for the linker.
 OBJCOPYLIBFLAGS_EXTRA=-K '\$a' -K '\$d' -K '\$t'



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

2014-08-14 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Aug 14 15:16:21 UTC 2014

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/mips: netbsd.h

Log Message:
Fix INTPTR_TYPE/UINTPTR_TYPE for n32.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h

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

Modified files:

Index: src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h
diff -u src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h:1.4 src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h:1.5
--- src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h:1.4	Sat Mar  1 09:04:12 2014
+++ src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h	Thu Aug 14 15:16:20 2014
@@ -231,6 +231,12 @@ along with GCC; see the file COPYING3.  
 #define PTRDIFF_TYPE ((POINTER_SIZE == 64 || TARGET_NEWABI) \
 		  ? long int : int)
 
+#undef INTPTR_TYPE
+#define INTPTR_TYPE PTRDIFF_TYPE
+
+#undef UINTPTR_TYPE
+#define UINTPTR_TYPE SIZE_TYPE
+
 #undef WCHAR_TYPE
 #define WCHAR_TYPE int
 



CVS commit: src/usr.bin/man

2014-08-14 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Thu Aug 14 15:31:12 UTC 2014

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

Log Message:
For an argument to be interpreted as a local file name, bypassing the
search rules in man.conf or MANPATH, it must begin with /, ./, or
../.  Simply testing whether it contains / is wrong, because it
breaks usage like man 8 vax/boot.

This reverts revision 1.57 dated 2013-10-06,
Be more permissive in interpreting man pages as filenames.


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/usr.bin/man/man.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/man/man.c
diff -u src/usr.bin/man/man.c:1.61 src/usr.bin/man/man.c:1.62
--- src/usr.bin/man/man.c:1.61	Mon Feb 17 03:10:12 2014
+++ src/usr.bin/man/man.c	Thu Aug 14 15:31:12 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: man.c,v 1.61 2014/02/17 03:10:12 uwe Exp $	*/
+/*	$NetBSD: man.c,v 1.62 2014/08/14 15:31:12 apb Exp $	*/
 
 /*
  * Copyright (c) 1987, 1993, 1994, 1995
@@ -40,7 +40,7 @@ __COPYRIGHT(@(#) Copyright (c) 1987, 19
 #if 0
 static char sccsid[] = @(#)man.c	8.17 (Berkeley) 1/31/95;
 #else
-__RCSID($NetBSD: man.c,v 1.61 2014/02/17 03:10:12 uwe Exp $);
+__RCSID($NetBSD: man.c,v 1.62 2014/08/14 15:31:12 apb Exp $);
 #endif
 #endif /* not lint */
 
@@ -574,10 +574,14 @@ manual(char *page, struct manstate *mp, 
 	*eptr = '\0';
 
 	/*
-	 * If 'page' contains a slash then it's
-	 * interpreted as a file specification.
+	 * If 'page' is given with an absolute path,
+	 * or a relative path explicitly beginning with ./
+	 * or ../, then interpret it as a file specification.
 	 */
-	if (strchr(page, '/') != NULL) {
+	if ((page[0] == '/')
+	|| (page[0] == '.'  page[1] == '/')
+	|| (page[0] == '.'  page[1] == '.'  page[2] == '/')
+	) {
 		/* check if file actually exists */
 		(void)strlcpy(buf, escpage, sizeof(buf));
 		error = glob(buf, GLOB_APPEND | GLOB_BRACE | GLOB_NOSORT, NULL, pg);



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

2014-08-14 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Thu Aug 14 15:39:31 UTC 2014

Modified Files:
src/sys/arch/arm/samsung: exynos4_reg.h

Log Message:
Adjust AUDIOCORE mapping for exynos4 to map in entire piece.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/samsung/exynos4_reg.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/samsung/exynos4_reg.h
diff -u src/sys/arch/arm/samsung/exynos4_reg.h:1.7 src/sys/arch/arm/samsung/exynos4_reg.h:1.8
--- src/sys/arch/arm/samsung/exynos4_reg.h:1.7	Wed Jun 11 14:49:50 2014
+++ src/sys/arch/arm/samsung/exynos4_reg.h	Thu Aug 14 15:39:31 2014
@@ -262,12 +262,12 @@
 #define EXYNOS4_PWMTIMER_OFFSET			0x039D
 
 /* AUDIOCORE */
-#define EXYNOS4_AUDIOCORE_OFFSET		0x0406	/* on 1Mb L1 chunk */
+#define EXYNOS4_AUDIOCORE_OFFSET		0x0400	/* on 1Mb L1 chunk */
 #define EXYNOS4_AUDIOCORE_VBASE			(EXYNOS_CORE_VBASE + EXYNOS4_AUDIOCORE_OFFSET)
-#define EXYNOS4_AUDIOCORE_PBASE			0x0386	/* Audio SFR */
-#define EXYNOS4_AUDIOCORE_SIZE			0x1000
+#define EXYNOS4_AUDIOCORE_PBASE			0x0380	/* Audio SFR */
+#define EXYNOS4_AUDIOCORE_SIZE			0x0010
 
-#define EXYNOS4_GPIO_I2S0_OFFSET		(EXYNOS4_AUDIOCORE_OFFSET + 0x)
+#define EXYNOS4_GPIO_I2S0_OFFSET		(EXYNOS4_AUDIOCORE_OFFSET + 0x0006)
 
 
 #endif /* _ARM_SAMSUNG_EXYNOS5_REG_H_ */



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

2014-08-14 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Thu Aug 14 15:41:07 UTC 2014

Modified Files:
src/sys/arch/arm/samsung: exynos5_reg.h

Log Message:
Rename C2C gpio to match the naming scheme
Add I2S gpio offset


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/arm/samsung/exynos5_reg.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/samsung/exynos5_reg.h
diff -u src/sys/arch/arm/samsung/exynos5_reg.h:1.10 src/sys/arch/arm/samsung/exynos5_reg.h:1.11
--- src/sys/arch/arm/samsung/exynos5_reg.h:1.10	Wed Jun 11 14:49:50 2014
+++ src/sys/arch/arm/samsung/exynos5_reg.h	Thu Aug 14 15:41:07 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: exynos5_reg.h,v 1.10 2014/06/11 14:49:50 reinoud Exp $	*/
+/*	$NetBSD: exynos5_reg.h,v 1.11 2014/08/14 15:41:07 reinoud Exp $	*/
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -94,7 +94,7 @@
 #define EXYNOS5_AS_A_LEFT_BUS_OFFSET		0x00CE
 #define EXYNOS5_AS_A_RIGHT0_BUS_OFFSET		0x00CF
 #define EXYNOS5_AS_A_DISP1_BUS_OFFSET		0x00D0
-#define EXYNOS5_C2C_GPIO_OFFSET			0x00D1
+#define EXYNOS5_GPIO_C2C_OFFSET			0x00D1
 #define EXYNOS5_DREXII_OFFSET			0x00DD
 #define EXYNOS5_AS_A_EFCON_OFFSET		0x00DE
 #define EXYNOS5_AP_C2C_OFFSET			0x00E0
@@ -347,6 +347,7 @@
 /* AUDIOCORE */
 #define EXYNOS5_AUDIOCORE_VBASE			(EXYNOS_CORE_VBASE + EXYNOS5_CORE_SIZE)
 #define EXYNOS5_AUDIOCORE_PBASE			0x0380	/* Audio SFR */
+#define EXYNOS5_GPIO_I2S_OFFSET			(EXYNOS5_CORE_SIZE + 0x0006)
 #define EXYNOS5_AUDIOCORE_SIZE			0x0007
 
 #endif /* _ARM_SAMSUNG_EXYNOS5_REG_H_ */



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

2014-08-14 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Thu Aug 14 15:42:31 UTC 2014

Modified Files:
src/sys/arch/arm/samsung: exynos_gpio.c

Log Message:
Add GPIO definitions for Exynos5 series (taken from 5250)


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

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

Modified files:

Index: src/sys/arch/arm/samsung/exynos_gpio.c
diff -u src/sys/arch/arm/samsung/exynos_gpio.c:1.6 src/sys/arch/arm/samsung/exynos_gpio.c:1.7
--- src/sys/arch/arm/samsung/exynos_gpio.c:1.6	Wed May 21 12:18:24 2014
+++ src/sys/arch/arm/samsung/exynos_gpio.c	Thu Aug 14 15:42:31 2014
@@ -32,7 +32,7 @@
 #include gpio.h
 
 #include sys/cdefs.h
-__KERNEL_RCSID(1, $NetBSD: exynos_gpio.c,v 1.6 2014/05/21 12:18:24 reinoud Exp $);
+__KERNEL_RCSID(1, $NetBSD: exynos_gpio.c,v 1.7 2014/08/14 15:42:31 reinoud Exp $);
 
 #include sys/param.h
 #include sys/bus.h
@@ -197,7 +197,110 @@ static struct exynos_gpio_pin_group exyn
 
 
 #ifdef EXYNOS5
+
+/*
+ * Exynos 5250 contains 253 multi-functional input/output port pins and 160
+ * memory port pins. There are 39 general port groups and 2 memory port
+ * groups. They are:
+ *
+ * GPA0, GPA1: 14 in/out ports-2xUART with flow control, UART without flow
+ * control, and/or 2xI2C , and/or2xHS-I2C
+ *
+ * GPA2: 8 in/out ports-2xSPI, and/or I2C
+ *
+ * GPB0, GPB1: 10 in/out ports-2xI2S, and/or 2xPCM, and/or AC97, SPDIF, I2C,
+ * and/or SPI
+ *
+ * GPB2, GPB3: 8 in/out ports-PWM, I2C, and/or I2C ,and/or HS-I2C
+ *
+ * GPC0, GPC1: 11 in/out ports-1xMMC (8-bit MMC) I/F
+ *
+ * GPC2: 7 in/out ports-1xMMC (4-bit MMC) I/F
+ *
+ * GPC3, GPC4: 14 in/out ports-2xMMC (4-bit MMC) and/or 1xMMC (8-bit MMC) I/F
+ *
+ * GPD0: 4 pin/out ports-1xUART with flow control I/F
+ *
+ * GPD1: 8 pin/out ports-HSI I/F
+ *
+ * GPE0, GPE1, GPF0, GPF1, GPG0, GPG1, GPG2, GPH0, GPH1: 48 in/out ports-CAM
+ * I/F, and/or Trace I/F
+ *
+ * GPV0, GPV1, GPV2, GPV3, GPV4: 34 in/out ports-C2C I/F
+ *
+ * GPX0, 1, 2, 3: 32 in/out port-external wake-up interrupts (up-to 32-bit),
+ * and/or AUD I/F, and/or MFC I/F (GPX groups are in alive region)
+ *
+ * GPY0, GPY1, GPY2: 16 in/out ports-control signals of EBI (SROM)
+ *
+ * GPY3, GPY4, GPY5, GPY6: 32 in/out memory ports-EBI
+ *
+ * GPZ: 7 in/out ports-low power I2S and/or PCM
+ *
+ * MP1_0-MP1_10: 80 DRAM1 ports NOTE: GPIO registers do not control these
+ * ports.
+ *
+ * MP2_0-MP2_10: 80 DRAM2 ports NOTE: GPIO registers do not control these
+ * ports.
+ * 
+ * ETC0, ETC5, ETC6, ETC7, ETC8: 22 in/out ETC ports-JTAG, C2C_CLK (Rx),
+ * RESET, CLOCK, USBOTG and USB3, C2C_CLK (Tx)
+ */
+
 static struct exynos_gpio_pin_group exynos5_pin_groups[] = {
+	GPIO_GRP(5, LEFT,  0x, GPA0, 8),
+	GPIO_GRP(5, LEFT,  0x0020, GPA1, 6),
+	GPIO_GRP(5, LEFT,  0x0040, GPA2, 8),
+	GPIO_GRP(5, LEFT,  0x0060, GPB0, 5),
+	GPIO_GRP(5, LEFT,  0x0080, GPB1, 5),
+	GPIO_GRP(5, LEFT,  0x00A0, GPB2, 4),
+	GPIO_GRP(5, LEFT,  0x00C0, GPB3, 4),
+	GPIO_GRP(5, LEFT,  0x00E0, GPC0, 7),
+	GPIO_GRP(5, LEFT,  0x0100, GPC1, 4),
+	GPIO_GRP(5, LEFT,  0x0120, GPC2, 7),
+	GPIO_GRP(5, LEFT,  0x0140, GPC3, 7),
+	GPIO_GRP(5, LEFT,  0x0160, GPD0, 4),
+	GPIO_GRP(5, LEFT,  0x0180, GPD1, 8),
+	GPIO_GRP(5, LEFT,  0x01A0, GPY0, 6),
+	GPIO_GRP(5, LEFT,  0x01C0, GPY1, 4),
+	GPIO_GRP(5, LEFT,  0x01E0, GPY2, 6),
+	GPIO_GRP(5, LEFT,  0x0200, GPY3, 8),
+	GPIO_GRP(5, LEFT,  0x0220, GPY4, 8),
+	GPIO_GRP(5, LEFT,  0x0240, GPY5, 8),
+	GPIO_GRP(5, LEFT,  0x0260, GPY6, 8),
+	GPIO_GRP(5, LEFT,  0x0280, ETC0, 6),
+	GPIO_GRP(5, LEFT,  0x02A0, ETC6, 7),
+	GPIO_GRP(5, LEFT,  0x02C0, ETC7, 5),
+	GPIO_GRP(5, LEFT,  0x02E0, GPC4, 7),
+	/* EXTINT skipped */
+	GPIO_GRP(5, LEFT,  0x0C00, GPX0, 8),
+	GPIO_GRP(5, LEFT,  0x0C20, GPX1, 8),
+	GPIO_GRP(5, LEFT,  0x0C40, GPX2, 8),
+	GPIO_GRP(5, LEFT,  0x0C60, GPX3, 8),
+	/* EXTINT skipped */
+
+	GPIO_GRP(5, RIGHT, 0x, GPE0, 8),
+	GPIO_GRP(5, RIGHT, 0x0020, GPE1, 2),
+	GPIO_GRP(5, RIGHT, 0x0040, GPF0, 4),
+	GPIO_GRP(5, RIGHT, 0x0060, GPF1, 4),
+	GPIO_GRP(5, RIGHT, 0x0080, GPG0, 8),
+	GPIO_GRP(5, RIGHT, 0x00A0, GPG1, 8),
+	GPIO_GRP(5, RIGHT, 0x00C0, GPG2, 2),
+	GPIO_GRP(5, RIGHT, 0x00E0, GPH0, 4),
+	GPIO_GRP(5, RIGHT, 0x0100, GPH1, 8),
+	/* EXTINT skipped */
+
+	GPIO_GRP(5, C2C,   0x, GPV0, 8),
+	GPIO_GRP(5, C2C,   0x0020, GPV1, 8),
+	GPIO_GRP(5, C2C,   0x0040, ETC5, 2),
+	GPIO_GRP(5, C2C,   0x0060, GPV2, 8),
+	GPIO_GRP(5, C2C,   0x0080, GPV3, 8),
+	GPIO_GRP(5, C2C,   0x00A0, ETC8, 2),
+	GPIO_GRP(5, C2C,   0x00C0, GPV4, 2),
+	/* EXTINT skipped */
+
+	GPIO_GRP(5, I2S,   0x, GPZ,  7),
+	/* EXTINT skipped */
 };
 #endif
 



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

2014-08-14 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Thu Aug 14 15:44:42 UTC 2014

Modified Files:
src/sys/arch/evbarm/odroid: odroid_machdep.c

Log Message:
Add gpio not connected definitions for Exynos5

While here, increase delay around lan9730 powercycle timing to improve its
reset.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/evbarm/odroid/odroid_machdep.c

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

Modified files:

Index: src/sys/arch/evbarm/odroid/odroid_machdep.c
diff -u src/sys/arch/evbarm/odroid/odroid_machdep.c:1.24 src/sys/arch/evbarm/odroid/odroid_machdep.c:1.25
--- src/sys/arch/evbarm/odroid/odroid_machdep.c:1.24	Mon Aug  4 18:14:43 2014
+++ src/sys/arch/evbarm/odroid/odroid_machdep.c	Thu Aug 14 15:44:42 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: odroid_machdep.c,v 1.24 2014/08/04 18:14:43 reinoud Exp $ */
+/*	$NetBSD: odroid_machdep.c,v 1.25 2014/08/14 15:44:42 reinoud Exp $ */
 
 /*
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: odroid_machdep.c,v 1.24 2014/08/04 18:14:43 reinoud Exp $);
+__KERNEL_RCSID(0, $NetBSD: odroid_machdep.c,v 1.25 2014/08/14 15:44:42 reinoud Exp $);
 
 #include opt_evbarm_boardtype.h
 #include opt_exynos.h
@@ -536,7 +536,7 @@ odroid_exynos4_gpio_ncs(device_t self, p
 	prop_dictionary_set_uint32(dict, nc-GPA1, 0x3f - 0b1000);
 	prop_dictionary_set_uint32(dict, nc-GPB,  0xff - 0b);
 	prop_dictionary_set_uint32(dict, nc-GPC0, 0x1f - 0b);
-	/* blue led at bit 0 : */
+	/* blue led at bit 0 : heartbeat */
 	prop_dictionary_set_uint32(dict, nc-GPC1, 0x1f - 0b0001);
 	prop_dictionary_set_uint32(dict, nc-GPD0, 0x0f - 0b);
 	/* i2c0 at pin 0,1 and i2c1 at pin 2,3 : */
@@ -595,7 +595,54 @@ odroid_exynos5_gpio_ncs(device_t self, p
 	 * generated by the gpio bootstrap and the values substracted are
 	 * explicitly allowed
 	 */
-	/* TBD: generate these values, see exynos_gpio.c boostrap */
+	prop_dictionary_set_uint32(dict, nc-GPA0, 0xff - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPA1, 0x3f - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPA2, 0xff - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPB0, 0x1f - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPB1, 0x1f - 0b);
+	/* green led at bit 1 : eMMC activity */
+	/* red   led at bit 2 : heartbeat */
+	prop_dictionary_set_uint32(dict, nc-GPB2, 0x0f - 0b0110);
+	prop_dictionary_set_uint32(dict, nc-GPB3, 0x0f - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPC0, 0x7f - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPC1, 0x0f - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPC2, 0x7f - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPC3, 0x7f - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPD0, 0x0f - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPD1, 0xff - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPY0, 0x3f - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPY1, 0x0f - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPY2, 0x3f - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPY3, 0xff - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPY4, 0xff - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPY5, 0xff - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPY6, 0xff - 0b);
+	prop_dictionary_set_uint32(dict, nc-ETC0, 0x3f - 0b);
+	prop_dictionary_set_uint32(dict, nc-ETC6, 0x7f - 0b);
+	prop_dictionary_set_uint32(dict, nc-ETC7, 0x1f - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPC4, 0x3f - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPX0, 0xff - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPX1, 0xff - 0b);
+	/* blue led at bit 3 : microSD activity */
+	prop_dictionary_set_uint32(dict, nc-GPX2, 0xff - 0b1000);
+	prop_dictionary_set_uint32(dict, nc-GPX3, 0xff - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPE0, 0xff - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPE1, 0x03 - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPF0, 0x0f - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPF1, 0x0f - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPG0, 0xff - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPG1, 0xff - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPG2, 0x03 - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPH0, 0x0f - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPH1, 0xff - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPV0, 0xff - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPV1, 0xff - 0b);
+	prop_dictionary_set_uint32(dict, nc-ETC5, 0x03 - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPV2, 0xff - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPV3, 0xff - 0b);
+	prop_dictionary_set_uint32(dict, nc-ETC8, 0x03 - 0b);
+	prop_dictionary_set_uint32(dict, nc-GPV4, 0x03 - 

CVS commit: src/usr.bin/man

2014-08-14 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Thu Aug 14 15:44:47 UTC 2014

Modified Files:
src/usr.bin/man: man.1

Log Message:
More detail about treating a local file as a man page,
and about how to request machine-specific man pages.
re


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/usr.bin/man/man.1

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/man/man.1
diff -u src/usr.bin/man/man.1:1.27 src/usr.bin/man/man.1:1.28
--- src/usr.bin/man/man.1:1.27	Tue Mar 18 18:20:45 2014
+++ src/usr.bin/man/man.1	Thu Aug 14 15:44:47 2014
@@ -1,4 +1,4 @@
-.\	$NetBSD: man.1,v 1.27 2014/03/18 18:20:45 riastradh Exp $
+.\	$NetBSD: man.1,v 1.28 2014/08/14 15:44:47 apb Exp $
 .\
 .\ Copyright (c) 1989, 1990, 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\
 .\ @(#)man.1	8.2 (Berkeley) 1/2/94
 .\
-.Dd October 7, 2011
+.Dd August 14, 2014
 .Dt MAN 1
 .Os
 .Sh NAME
@@ -175,7 +175,13 @@ option.
 .Pp
 If
 .Ar name
-is given with a full or relative path then
+is given with a full path (beginning with
+.Ql Pa \/ )
+or a relative path that begins with
+.Ql Pa .\/
+or
+.Ql Pa .\./ ,
+then
 .Nm
 interprets it as a file specification, so that you can do
 .Nm
@@ -183,6 +189,14 @@ interprets it as a file specification, s
 or even
 .Nm
 .Cm /cd/foo/bar.1.gz .
+If
+.Ar name
+contains
+.Ql Pa /
+but does not match one of the above cases, then the
+search path is used; this allows you to request
+machine-specific man pages, such as
+.Nm Cm vax/boot .
 .Sh ENVIRONMENT
 .Bl -tag -width MANPATHX
 .It Ev MACHINE
@@ -196,6 +210,10 @@ The current machine type may be overridd
 variable
 .Ev MACHINE
 to the name of a specific architecture.
+Machine-specific man pages may also be requested by
+prepending the relevant subdirectory name to the page name,
+separated by
+.Ql Pa \/ .
 .It Ev MANPATH
 The standard search path used by
 .Nm



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

2014-08-14 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Thu Aug 14 15:46:57 UTC 2014

Modified Files:
src/sys/arch/arm/samsung: exynos5_loc.c

Log Message:
Add exyogpio device attachment for exynos5


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/samsung/exynos5_loc.c

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

Modified files:

Index: src/sys/arch/arm/samsung/exynos5_loc.c
diff -u src/sys/arch/arm/samsung/exynos5_loc.c:1.7 src/sys/arch/arm/samsung/exynos5_loc.c:1.8
--- src/sys/arch/arm/samsung/exynos5_loc.c:1.7	Wed Jun 11 14:54:32 2014
+++ src/sys/arch/arm/samsung/exynos5_loc.c	Thu Aug 14 15:46:57 2014
@@ -213,6 +213,7 @@
 	EXYNOS5##p##_##n##_OFFSET, 0x1
 
 static const struct exyo_locators exynos5_locators[] = {
+	{ exyogpio, 0, 0, NOPORT, NOINTR, 0 },
 	{ exyowdt, OFFANDSIZE(,WDT), NOPORT, IRQ_WDT, 0 },
 	{ sscom, OFFANDSIZE(,UART0), 0, IRQ_UART0, 0 },
 	{ sscom, OFFANDSIZE(,UART1), 1, IRQ_UART1, 0 },



CVS commit: src/share/man/man8

2014-08-14 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Thu Aug 14 15:50:42 UTC 2014

Modified Files:
src/share/man/man8: boot.8

Log Message:
Add some examples of machine-specific foo/boot.8 man pages.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/share/man/man8/boot.8

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/man8/boot.8
diff -u src/share/man/man8/boot.8:1.12 src/share/man/man8/boot.8:1.13
--- src/share/man/man8/boot.8:1.12	Fri Sep  4 23:29:02 2009
+++ src/share/man/man8/boot.8	Thu Aug 14 15:50:42 2014
@@ -1,4 +1,4 @@
-.\	$NetBSD: boot.8,v 1.12 2009/09/04 23:29:02 apb Exp $
+.\	$NetBSD: boot.8,v 1.13 2014/08/14 15:50:42 apb Exp $
 .\
 .\ Copyright (c) 1991, 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -32,7 +32,7 @@
 .\
 .\ @(#)boot_i386.8	8.2 (Berkeley) 4/19/94
 .\
-.Dd September 4, 2009
+.Dd August 14, 2014
 .Dt BOOT 8
 .Os
 .Sh NAME
@@ -266,7 +266,10 @@ partition by
 .Sh SEE ALSO
 Architecture-specific
 .Xr boot 8
-manual pages,
+manual pages (such as
+.Xr emips/boot 8 ,
+.Xr sparc64/boot 8 ,
+.Xr x86/boot 8 ) ,
 .Xr ddb 4 ,
 .Xr userconf 4 ,
 .\ .Xr boot.cfg 5 ,



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

2014-08-14 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Thu Aug 14 15:57:51 UTC 2014

Modified Files:
src/sys/arch/evbarm/odroid: odroid_machdep.c

Log Message:
Allow bits to be used for the usb hub on Odroid-XU


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/evbarm/odroid/odroid_machdep.c

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

Modified files:

Index: src/sys/arch/evbarm/odroid/odroid_machdep.c
diff -u src/sys/arch/evbarm/odroid/odroid_machdep.c:1.25 src/sys/arch/evbarm/odroid/odroid_machdep.c:1.26
--- src/sys/arch/evbarm/odroid/odroid_machdep.c:1.25	Thu Aug 14 15:44:42 2014
+++ src/sys/arch/evbarm/odroid/odroid_machdep.c	Thu Aug 14 15:57:51 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: odroid_machdep.c,v 1.25 2014/08/14 15:44:42 reinoud Exp $ */
+/*	$NetBSD: odroid_machdep.c,v 1.26 2014/08/14 15:57:51 reinoud Exp $ */
 
 /*
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: odroid_machdep.c,v 1.25 2014/08/14 15:44:42 reinoud Exp $);
+__KERNEL_RCSID(0, $NetBSD: odroid_machdep.c,v 1.26 2014/08/14 15:57:51 reinoud Exp $);
 
 #include opt_evbarm_boardtype.h
 #include opt_exynos.h
@@ -573,7 +573,7 @@ odroid_exynos4_gpio_ncs(device_t self, p
 	/* expansion connector bits at pin 0,1,5 : */
 	prop_dictionary_set_uint32(dict, nc-GPX1, 0xff - 0b00100011);
 	prop_dictionary_set_uint32(dict, nc-GPX2, 0xff - 0b);
-	/* hub communication at pin 0,4,5 : */
+	/* usb hub communication at pin 0,4,5 : */
 	prop_dictionary_set_uint32(dict, nc-GPX3, 0xff - 0b00110001);
 	prop_dictionary_set_uint32(dict, nc-GPZ,  0xff - 0b);
 	prop_dictionary_set_uint32(dict, nc-GPV0, 0xff - 0b);
@@ -621,8 +621,10 @@ odroid_exynos5_gpio_ncs(device_t self, p
 	prop_dictionary_set_uint32(dict, nc-ETC6, 0x7f - 0b);
 	prop_dictionary_set_uint32(dict, nc-ETC7, 0x1f - 0b);
 	prop_dictionary_set_uint32(dict, nc-GPC4, 0x3f - 0b);
-	prop_dictionary_set_uint32(dict, nc-GPX0, 0xff - 0b);
-	prop_dictionary_set_uint32(dict, nc-GPX1, 0xff - 0b);
+	/* usb hub communication at bit 6,7 : */
+	prop_dictionary_set_uint32(dict, nc-GPX0, 0xff - 0b1100);
+	/* usb hub communication at bit 4 : */
+	prop_dictionary_set_uint32(dict, nc-GPX1, 0xff - 0b0001);
 	/* blue led at bit 3 : microSD activity */
 	prop_dictionary_set_uint32(dict, nc-GPX2, 0xff - 0b1000);
 	prop_dictionary_set_uint32(dict, nc-GPX3, 0xff - 0b);



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

2014-08-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Aug 14 16:25:20 UTC 2014

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

Log Message:
Add tar.debug and cpio.debug to lists for MKBSDTAR=yes MKDEBUG=yes.


To generate a diff of this commit:
cvs rdiff -u -r1.81 -r1.82 src/distrib/sets/lists/debug/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/debug/mi
diff -u src/distrib/sets/lists/debug/mi:1.81 src/distrib/sets/lists/debug/mi:1.82
--- src/distrib/sets/lists/debug/mi:1.81	Sat Aug  9 11:33:53 2014
+++ src/distrib/sets/lists/debug/mi	Thu Aug 14 16:25:20 2014
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.81 2014/08/09 11:33:53 apb Exp $
+# $NetBSD: mi,v 1.82 2014/08/14 16:25:20 riastradh Exp $
 
 ./etc/mtree/set.debug   comp-sys-root
 ./usr/lib/i18n/libBIG5_g.a			comp-c-debuglib		debuglib
@@ -251,6 +251,7 @@
 ./usr/libdata/debug/bin/chio.debug		comp-util-debug		debug
 ./usr/libdata/debug/bin/chmod.debug		comp-util-debug		debug
 ./usr/libdata/debug/bin/cp.debug		comp-util-debug		debug
+./usr/libdata/debug/bin/cpio.debug		comp-util-debug		debug,bsdtar
 ./usr/libdata/debug/bin/csh.debug		comp-util-debug		debug
 ./usr/libdata/debug/bin/date.debug		comp-util-debug		debug
 ./usr/libdata/debug/bin/dd.debug		comp-util-debug		debug
@@ -280,6 +281,7 @@
 ./usr/libdata/debug/bin/stty.debug		comp-util-debug		debug
 ./usr/libdata/debug/bin/sync.debug		comp-util-debug		debug
 ./usr/libdata/debug/bin/systrace.debug		comp-obsolete		obsolete
+./usr/libdata/debug/bin/tar.debug		comp-util-debug		debug,bsdtar
 ./usr/libdata/debug/bin/test.debug		comp-util-debug		debug
 ./usr/libdata/debug/libexec/lfs_cleanerd.debug	comp-sysutil-debug	debug
 ./usr/libdata/debug/sbin/amrctl.debug		comp-sysutil-debug	debug



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

2014-08-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Aug 14 16:26:21 UTC 2014

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

Log Message:
Add dtrace modules to amd64-xen module set list.  Hi jnemeth!


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/distrib/sets/lists/modules/md.amd64

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

Modified files:

Index: src/distrib/sets/lists/modules/md.amd64
diff -u src/distrib/sets/lists/modules/md.amd64:1.41 src/distrib/sets/lists/modules/md.amd64:1.42
--- src/distrib/sets/lists/modules/md.amd64:1.41	Mon Aug 11 05:19:16 2014
+++ src/distrib/sets/lists/modules/md.amd64	Thu Aug 14 16:26:21 2014
@@ -1,4 +1,4 @@
-# $NetBSD: md.amd64,v 1.41 2014/08/11 05:19:16 jnemeth Exp $
+# $NetBSD: md.amd64,v 1.42 2014/08/14 16:26:21 riastradh Exp $
 #
 # NOTE that there are two sets of files here:
 # @MODULEDIR@ and amd64-xen
@@ -234,6 +234,8 @@
 ./stand/amd64-xen/@OSRELEASE@/modules/coretemp/coretemp.kmod		base-kernel-modules	kmod,compatmodules
 ./stand/amd64-xen/@OSRELEASE@/modules/cryptobase-kernel-modules	kmod,compatmodules
 ./stand/amd64-xen/@OSRELEASE@/modules/crypto/crypto.kmod		base-kernel-modules	kmod,compatmodules
+./stand/amd64-xen/@OSRELEASE@/modules/cyclicbase-kernel-modules	kmod,dtrace,compatmodules
+./stand/amd64-xen/@OSRELEASE@/modules/cyclic/cyclic.kmod		base-kernel-modules	kmod,dtrace,compatmodules
 ./stand/amd64-xen/@OSRELEASE@/modules/cx24227base-kernel-modules	kmod,compatmodules
 ./stand/amd64-xen/@OSRELEASE@/modules/cx24227/cx24227.kmod		base-kernel-modules	kmod,compatmodules
 ./stand/amd64-xen/@OSRELEASE@/modules/cxdtvbase-kernel-modules	kmod,compatmodules
@@ -246,6 +248,8 @@
 ./stand/amd64-xen/@OSRELEASE@/modules/dk_subr/dk_subr.kmod		base-kernel-modules	kmod,compatmodules
 ./stand/amd64-xen/@OSRELEASE@/modules/dmbase-kernel-modules	kmod,compatmodules
 ./stand/amd64-xen/@OSRELEASE@/modules/dm/dm.kmod			base-kernel-modules	kmod,compatmodules
+./stand/amd64-xen/@OSRELEASE@/modules/dtracebase-kernel-modules	kmod,dtrace,compatmodules
+./stand/amd64-xen/@OSRELEASE@/modules/dtrace/dtrace.kmod		base-kernel-modules	kmod,dtrace,compatmodules
 ./stand/amd64-xen/@OSRELEASE@/modules/drmbase-kernel-modules	kmod,compatmodules
 ./stand/amd64-xen/@OSRELEASE@/modules/drm/drm.kmod			base-kernel-modules	kmod,compatmodules
 ./stand/amd64-xen/@OSRELEASE@/modules/dtvbase-kernel-modules	kmod,compatmodules
@@ -266,6 +270,8 @@
 ./stand/amd64-xen/@OSRELEASE@/modules/exec_script/exec_script.kmod		base-kernel-modules	kmod,compatmodules
 ./stand/amd64-xen/@OSRELEASE@/modules/ext2fsbase-kernel-modules	kmod,compatmodules
 ./stand/amd64-xen/@OSRELEASE@/modules/ext2fs/ext2fs.kmod		base-kernel-modules	kmod,compatmodules
+./stand/amd64-xen/@OSRELEASE@/modules/fbtbase-kernel-modules	kmod,dtrace,compatmodules
+./stand/amd64-xen/@OSRELEASE@/modules/fbt/fbt.kmod			base-kernel-modules	kmod,dtrace,compatmodules
 ./stand/amd64-xen/@OSRELEASE@/modules/fdescbase-kernel-modules	kmod,compatmodules
 ./stand/amd64-xen/@OSRELEASE@/modules/fdesc/fdesc.kmod			base-kernel-modules	kmod,compatmodules
 ./stand/amd64-xen/@OSRELEASE@/modules/ffsbase-kernel-modules	kmod,compatmodules
@@ -404,6 +410,8 @@
 ./stand/amd64-xen/@OSRELEASE@/modules/ppp_deflate/ppp_deflate.kmod		base-kernel-modules	kmod,compatmodules
 ./stand/amd64-xen/@OSRELEASE@/modules/procfsbase-kernel-modules	kmod,compatmodules
 ./stand/amd64-xen/@OSRELEASE@/modules/procfs/procfs.kmod		base-kernel-modules	kmod,compatmodules
+./stand/amd64-xen/@OSRELEASE@/modules/profilebase-kernel-modules	kmod,dtrace,compatmodules
+./stand/amd64-xen/@OSRELEASE@/modules/profile/profile.kmod		base-kernel-modules	kmod,dtrace,compatmodules
 ./stand/amd64-xen/@OSRELEASE@/modules/ptyfsbase-kernel-modules	kmod,compatmodules
 ./stand/amd64-xen/@OSRELEASE@/modules/ptyfs/ptyfs.kmod			base-kernel-modules	kmod,compatmodules
 ./stand/amd64-xen/@OSRELEASE@/modules/puffsbase-kernel-modules	kmod,compatmodules
@@ -414,6 +422,8 @@
 ./stand/amd64-xen/@OSRELEASE@/modules/pwdog/pwdog.kmod			base-kernel-modules	kmod,compatmodules
 ./stand/amd64-xen/@OSRELEASE@/modules/scsiverbose			base-kernel-modules	kmod,compatmodules
 ./stand/amd64-xen/@OSRELEASE@/modules/scsiverbose/scsiverbose.kmod		base-kernel-modules	kmod,compatmodules
+./stand/amd64-xen/@OSRELEASE@/modules/sdtbase-kernel-modules	kmod,dtrace,compatmodules
+./stand/amd64-xen/@OSRELEASE@/modules/sdt/sdt.kmod			base-kernel-modules	kmod,dtrace,compatmodules
 ./stand/amd64-xen/@OSRELEASE@/modules/sdtempbase-kernel-modules	kmod,compatmodules
 ./stand/amd64-xen/@OSRELEASE@/modules/sdtemp/sdtemp.kmod		base-kernel-modules	kmod,compatmodules
 ./stand/amd64-xen/@OSRELEASE@/modules/secmodel_bsd44			base-kernel-modules	kmod,compatmodules



CVS commit: src/distrib

2014-08-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Aug 14 16:27:18 UTC 2014

Modified Files:
src/distrib/amd64/cdroms: Makefile.cdrom
src/distrib/i386/cdroms: Makefile.cdrom
src/distrib/sparc64/cdroms/installcd: Makefile
src/distrib/vax/cdroms/installcd: Makefile

Log Message:
CD images need libarchive if MKBSDTAR is yes.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/distrib/amd64/cdroms/Makefile.cdrom
cvs rdiff -u -r1.30 -r1.31 src/distrib/i386/cdroms/Makefile.cdrom
cvs rdiff -u -r1.18 -r1.19 src/distrib/sparc64/cdroms/installcd/Makefile
cvs rdiff -u -r1.8 -r1.9 src/distrib/vax/cdroms/installcd/Makefile

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

Modified files:

Index: src/distrib/amd64/cdroms/Makefile.cdrom
diff -u src/distrib/amd64/cdroms/Makefile.cdrom:1.10 src/distrib/amd64/cdroms/Makefile.cdrom:1.11
--- src/distrib/amd64/cdroms/Makefile.cdrom:1.10	Sat Jul 26 19:34:08 2014
+++ src/distrib/amd64/cdroms/Makefile.cdrom	Thu Aug 14 16:27:17 2014
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.cdrom,v 1.10 2014/07/26 19:34:08 dholland Exp $
+# $NetBSD: Makefile.cdrom,v 1.11 2014/08/14 16:27:17 riastradh Exp $
 
 .include bsd.own.mk
 
@@ -37,6 +37,9 @@ CDRUNTIME+=	./usr/bin/tip
 CDRUNTIME+=	./usr/bin/tput
 CDRUNTIME+=	./usr/bin/vi
 CDRUNTIME+=	./usr/bin/vmstat
+.if ${MKBSDTAR} != no
+CDRUNTIME+=	./usr/lib/libarchive.so*
+.endif
 CDRUNTIME+=	./usr/lib/libbz2.so*
 CDRUNTIME+=	./usr/lib/libc.so*
 CDRUNTIME+=	./usr/lib/libcurses.so*

Index: src/distrib/i386/cdroms/Makefile.cdrom
diff -u src/distrib/i386/cdroms/Makefile.cdrom:1.30 src/distrib/i386/cdroms/Makefile.cdrom:1.31
--- src/distrib/i386/cdroms/Makefile.cdrom:1.30	Sat Jul 26 19:34:08 2014
+++ src/distrib/i386/cdroms/Makefile.cdrom	Thu Aug 14 16:27:18 2014
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.cdrom,v 1.30 2014/07/26 19:34:08 dholland Exp $
+# $NetBSD: Makefile.cdrom,v 1.31 2014/08/14 16:27:18 riastradh Exp $
 
 .include bsd.own.mk
 
@@ -37,6 +37,9 @@ CDRUNTIME+=	./usr/bin/tip
 CDRUNTIME+=	./usr/bin/tput
 CDRUNTIME+=	./usr/bin/vi
 CDRUNTIME+=	./usr/bin/vmstat
+.if ${MKBSDTAR} != no
+CDRUNTIME+=	./usr/lib/libarchive.so*
+.endif
 CDRUNTIME+=	./usr/lib/libbz2.so*
 CDRUNTIME+=	./usr/lib/libc.so*
 CDRUNTIME+=	./usr/lib/libcurses.so*

Index: src/distrib/sparc64/cdroms/installcd/Makefile
diff -u src/distrib/sparc64/cdroms/installcd/Makefile:1.18 src/distrib/sparc64/cdroms/installcd/Makefile:1.19
--- src/distrib/sparc64/cdroms/installcd/Makefile:1.18	Sat Jul 26 19:34:08 2014
+++ src/distrib/sparc64/cdroms/installcd/Makefile	Thu Aug 14 16:27:18 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.18 2014/07/26 19:34:08 dholland Exp $
+#	$NetBSD: Makefile,v 1.19 2014/08/14 16:27:18 riastradh Exp $
 CDBASE=		sparc64cd		# gives ${CDBASE}.iso
 CDRELEASE=	true			# include $RELEASEDIR/$MACHINE
 
@@ -38,6 +38,9 @@ CDRUNTIME+=	./usr/bin/tip
 CDRUNTIME+=	./usr/bin/tput
 CDRUNTIME+=	./usr/bin/vi
 CDRUNTIME+=	./usr/bin/vmstat
+.if ${MKBSDTAR} != no
+CDRUNTIME+=	./usr/lib/libarchive.so*
+.endif
 CDRUNTIME+=	./usr/lib/libbz2.so*
 CDRUNTIME+=	./usr/lib/libc.so*
 CDRUNTIME+=	./usr/lib/libcurses.so*

Index: src/distrib/vax/cdroms/installcd/Makefile
diff -u src/distrib/vax/cdroms/installcd/Makefile:1.8 src/distrib/vax/cdroms/installcd/Makefile:1.9
--- src/distrib/vax/cdroms/installcd/Makefile:1.8	Sat Jul 26 19:34:08 2014
+++ src/distrib/vax/cdroms/installcd/Makefile	Thu Aug 14 16:27:18 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.8 2014/07/26 19:34:08 dholland Exp $
+#	$NetBSD: Makefile,v 1.9 2014/08/14 16:27:18 riastradh Exp $
 CDBASE=		vaxcd			# gives ${CDBASE}.iso
 CDRELEASE=	true			# include $RELEASEDIR/$MACHINE
 CDKERNELS=	${RELEASEDIR}/${MACHINE}/binary/kernel/netbsd-GENERIC.gz	netbsd.gz
@@ -68,6 +68,9 @@ CDRUNTIME+=	./usr/bin/tip
 CDRUNTIME+=	./usr/bin/tput
 CDRUNTIME+=	./usr/bin/vi
 CDRUNTIME+=	./usr/bin/vmstat
+.if ${MKBSDTAR} != no
+CDRUNTIME+=	./usr/lib/libarchive.so*
+.endif
 CDRUNTIME+=	./usr/lib/libbz2.so*
 CDRUNTIME+=	./usr/lib/libc.so*
 CDRUNTIME+=	./usr/lib/libcurses.so*



CVS commit: src/sys

2014-08-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Aug 14 16:27:56 UTC 2014

Modified Files:
src/sys/kern: init_main.c
src/sys/rump/librump/rumpkern: rump.c

Log Message:
Defer cprng_fast_init until CPUs are detected.


To generate a diff of this commit:
cvs rdiff -u -r1.458 -r1.459 src/sys/kern/init_main.c
cvs rdiff -u -r1.308 -r1.309 src/sys/rump/librump/rumpkern/rump.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/init_main.c
diff -u src/sys/kern/init_main.c:1.458 src/sys/kern/init_main.c:1.459
--- src/sys/kern/init_main.c:1.458	Sun Aug 10 16:44:36 2014
+++ src/sys/kern/init_main.c	Thu Aug 14 16:27:55 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: init_main.c,v 1.458 2014/08/10 16:44:36 tls Exp $	*/
+/*	$NetBSD: init_main.c,v 1.459 2014/08/14 16:27:55 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: init_main.c,v 1.458 2014/08/10 16:44:36 tls Exp $);
+__KERNEL_RCSID(0, $NetBSD: init_main.c,v 1.459 2014/08/14 16:27:55 riastradh Exp $);
 
 #include opt_ddb.h
 #include opt_ipsec.h
@@ -501,8 +501,6 @@ main(void)
 	kern_cprng = cprng_strong_create(kernel, IPL_VM,
 	 CPRNG_INIT_ANY|CPRNG_REKEY_ANY);
 
-	cprng_fast_init();
-	 
 	/* Initialize interfaces. */
 	ifinit1();
 
@@ -514,6 +512,9 @@ main(void)
 	/* Configure the system hardware.  This will enable interrupts. */
 	configure();
 
+	/* Once all CPUs are detected, initialize the per-CPU cprng_fast.  */
+	cprng_fast_init();
+
 	ssp_init();
 
 	ubc_init();		/* must be after autoconfig */

Index: src/sys/rump/librump/rumpkern/rump.c
diff -u src/sys/rump/librump/rumpkern/rump.c:1.308 src/sys/rump/librump/rumpkern/rump.c:1.309
--- src/sys/rump/librump/rumpkern/rump.c:1.308	Mon Aug 11 04:27:24 2014
+++ src/sys/rump/librump/rumpkern/rump.c	Thu Aug 14 16:27:56 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: rump.c,v 1.308 2014/08/11 04:27:24 ozaki-r Exp $	*/
+/*	$NetBSD: rump.c,v 1.309 2014/08/14 16:27:56 riastradh Exp $	*/
 
 /*
  * Copyright (c) 2007-2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: rump.c,v 1.308 2014/08/11 04:27:24 ozaki-r Exp $);
+__KERNEL_RCSID(0, $NetBSD: rump.c,v 1.309 2014/08/14 16:27:56 riastradh Exp $);
 
 #include sys/systm.h
 #define ELFSIZE ARCH_ELFSIZE
@@ -305,7 +305,6 @@ rump_init(void)
 	kern_cprng = cprng_strong_create(kernel, IPL_VM,
 	CPRNG_INIT_ANY|CPRNG_REKEY_ANY);
 
-	cprng_fast_init();
 	rump_hyperentropy_init();
 
 	procinit();
@@ -364,6 +363,9 @@ rump_init(void)
 		aprint_verbose(cpu%d at thinair0: rump virtual cpu\n, i);
 	}
 
+	/* Once all CPUs are detected, initialize the per-CPU cprng_fast.  */
+	cprng_fast_init();
+
 	/* CPUs are up.  allow kernel threads to run */
 	rump_thread_allow(NULL);
 



CVS commit: src/sys/rump/librump/rumpkern

2014-08-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Aug 14 16:28:49 UTC 2014

Modified Files:
src/sys/rump/librump/rumpkern: rump.c

Log Message:
Restore placement of percpu_init in rump_init.

Probably doesn't matter, but let's avoid needless churn around the
real bug fix.


To generate a diff of this commit:
cvs rdiff -u -r1.309 -r1.310 src/sys/rump/librump/rumpkern/rump.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/librump/rumpkern/rump.c
diff -u src/sys/rump/librump/rumpkern/rump.c:1.309 src/sys/rump/librump/rumpkern/rump.c:1.310
--- src/sys/rump/librump/rumpkern/rump.c:1.309	Thu Aug 14 16:27:56 2014
+++ src/sys/rump/librump/rumpkern/rump.c	Thu Aug 14 16:28:49 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: rump.c,v 1.309 2014/08/14 16:27:56 riastradh Exp $	*/
+/*	$NetBSD: rump.c,v 1.310 2014/08/14 16:28:49 riastradh Exp $	*/
 
 /*
  * Copyright (c) 2007-2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: rump.c,v 1.309 2014/08/14 16:27:56 riastradh Exp $);
+__KERNEL_RCSID(0, $NetBSD: rump.c,v 1.310 2014/08/14 16:28:49 riastradh Exp $);
 
 #include sys/systm.h
 #define ELFSIZE ARCH_ELFSIZE
@@ -286,8 +286,6 @@ rump_init(void)
 	uvm_ra_init();
 	uao_init();
 
-	percpu_init();
-
 	mutex_obj_init();
 	callout_startup();
 
@@ -327,6 +325,7 @@ rump_init(void)
 	rump_schedule();
 	bootlwp = curlwp;
 
+	percpu_init();
 	inittimecounter();
 	ntp_init();
 



CVS commit: src/sys/kern

2014-08-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Aug 14 16:28:30 UTC 2014

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

Log Message:
Lock cprng-cs_lock around rndsink_request to avoid race with callback.


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

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

Modified files:

Index: src/sys/kern/subr_cprng.c
diff -u src/sys/kern/subr_cprng.c:1.24 src/sys/kern/subr_cprng.c:1.25
--- src/sys/kern/subr_cprng.c:1.24	Sun Aug 10 16:44:36 2014
+++ src/sys/kern/subr_cprng.c	Thu Aug 14 16:28:30 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: subr_cprng.c,v 1.24 2014/08/10 16:44:36 tls Exp $ */
+/*	$NetBSD: subr_cprng.c,v 1.25 2014/08/14 16:28:30 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2011-2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: subr_cprng.c,v 1.24 2014/08/10 16:44:36 tls Exp $);
+__KERNEL_RCSID(0, $NetBSD: subr_cprng.c,v 1.25 2014/08/14 16:28:30 riastradh Exp $);
 
 #include sys/param.h
 #include sys/types.h
@@ -151,6 +151,7 @@ cprng_strong_create(const char *name, in
 
 	/* Get some initial entropy.  Record whether it is full entropy.  */
 	uint8_t seed[NIST_BLOCK_KEYLEN_BYTES];
+	mutex_enter(cprng-cs_lock);
 	cprng-cs_ready = rndsink_request(cprng-cs_rndsink, seed,
 	sizeof(seed));
 	if (nist_ctr_drbg_instantiate(cprng-cs_drbg, seed, sizeof(seed),
@@ -168,6 +169,7 @@ cprng_strong_create(const char *name, in
 	if (!cprng-cs_ready  !ISSET(flags, CPRNG_INIT_ANY))
 		printf(cprng %s: creating with partial entropy\n,
 		cprng-cs_name);
+	mutex_exit(cprng-cs_lock);
 
 	return cprng;
 }



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

2014-08-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Aug 14 16:32:11 UTC 2014

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

Log Message:
Bump ramdisk size (since we added loads of firmware to it)


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/evbarm/conf/RPI_INSTALL

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_INSTALL
diff -u src/sys/arch/evbarm/conf/RPI_INSTALL:1.3 src/sys/arch/evbarm/conf/RPI_INSTALL:1.4
--- src/sys/arch/evbarm/conf/RPI_INSTALL:1.3	Thu May  1 18:43:45 2014
+++ src/sys/arch/evbarm/conf/RPI_INSTALL	Thu Aug 14 16:32:11 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: RPI_INSTALL,v 1.3 2014/05/01 18:43:45 martin Exp $
+#	$NetBSD: RPI_INSTALL,v 1.4 2014/08/14 16:32:11 martin Exp $
 #
 #	RPI_INSTALL -- RPI kernel with installation-sized
 #	ramdisk
@@ -7,5 +7,8 @@
 include arch/evbarm/conf/RPI
 include arch/evbarm/conf/INSTALL
 
+no options	MEMORY_DISK_ROOT_SIZE
+options 	MEMORY_DISK_ROOT_SIZE=17250
+
 makeoptions	RAMDISKNAME=sshramdisk
 no makeoptions	DEBUG



CVS commit: src/sys/external/bsd/drm2/ttm

2014-08-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Aug 14 16:47:52 UTC 2014

Modified Files:
src/sys/external/bsd/drm2/ttm: ttm_agp_backend.c

Log Message:
Use ttm_dma_tt_init in ttm_agp_tt_create so we can use ttm_bus_dma.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/external/bsd/drm2/ttm/ttm_agp_backend.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/external/bsd/drm2/ttm/ttm_agp_backend.c
diff -u src/sys/external/bsd/drm2/ttm/ttm_agp_backend.c:1.1 src/sys/external/bsd/drm2/ttm/ttm_agp_backend.c:1.2
--- src/sys/external/bsd/drm2/ttm/ttm_agp_backend.c:1.1	Wed Jul 16 20:59:58 2014
+++ src/sys/external/bsd/drm2/ttm/ttm_agp_backend.c	Thu Aug 14 16:47:52 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: ttm_agp_backend.c,v 1.1 2014/07/16 20:59:58 riastradh Exp $	*/
+/*	$NetBSD: ttm_agp_backend.c,v 1.2 2014/08/14 16:47:52 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: ttm_agp_backend.c,v 1.1 2014/07/16 20:59:58 riastradh Exp $);
+__KERNEL_RCSID(0, $NetBSD: ttm_agp_backend.c,v 1.2 2014/08/14 16:47:52 riastradh Exp $);
 
 #include sys/types.h
 #include sys/kmem.h
@@ -61,7 +61,7 @@ ttm_agp_tt_create(struct ttm_bo_device *
 	ttm_agp-agp = bridge-abd_sc;
 	ttm_agp-ttm_dma.ttm.func = ttm_agp_backend_func;
 
-	if (ttm_tt_init(ttm_agp-ttm_dma.ttm, bdev, size, page_flags,
+	if (ttm_dma_tt_init(ttm_agp-ttm_dma, bdev, size, page_flags,
 		dummy_read_page) != 0)
 		goto fail;
 



CVS commit: src/sys/external/bsd/drm2/ttm

2014-08-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Aug 14 16:50:22 UTC 2014

Modified Files:
src/sys/external/bsd/drm2/ttm: ttm_agp_backend.c

Log Message:
Zero ttm_agp objects on creation.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/external/bsd/drm2/ttm/ttm_agp_backend.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/external/bsd/drm2/ttm/ttm_agp_backend.c
diff -u src/sys/external/bsd/drm2/ttm/ttm_agp_backend.c:1.2 src/sys/external/bsd/drm2/ttm/ttm_agp_backend.c:1.3
--- src/sys/external/bsd/drm2/ttm/ttm_agp_backend.c:1.2	Thu Aug 14 16:47:52 2014
+++ src/sys/external/bsd/drm2/ttm/ttm_agp_backend.c	Thu Aug 14 16:50:22 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: ttm_agp_backend.c,v 1.2 2014/08/14 16:47:52 riastradh Exp $	*/
+/*	$NetBSD: ttm_agp_backend.c,v 1.3 2014/08/14 16:50:22 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: ttm_agp_backend.c,v 1.2 2014/08/14 16:47:52 riastradh Exp $);
+__KERNEL_RCSID(0, $NetBSD: ttm_agp_backend.c,v 1.3 2014/08/14 16:50:22 riastradh Exp $);
 
 #include sys/types.h
 #include sys/kmem.h
@@ -57,7 +57,7 @@ ttm_agp_tt_create(struct ttm_bo_device *
 {
 	struct ttm_agp *ttm_agp;
 
-	ttm_agp = kmem_alloc(sizeof(*ttm_agp), KM_SLEEP);
+	ttm_agp = kmem_zalloc(sizeof(*ttm_agp), KM_SLEEP);
 	ttm_agp-agp = bridge-abd_sc;
 	ttm_agp-ttm_dma.ttm.func = ttm_agp_backend_func;
 



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

2014-08-14 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Aug 14 16:55:02 UTC 2014

Modified Files:
src/sys/arch/arm/xscale: ixp425_npe.c

Log Message:
Remove tautologies.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/arm/xscale/ixp425_npe.c

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

Modified files:

Index: src/sys/arch/arm/xscale/ixp425_npe.c
diff -u src/sys/arch/arm/xscale/ixp425_npe.c:1.10 src/sys/arch/arm/xscale/ixp425_npe.c:1.11
--- src/sys/arch/arm/xscale/ixp425_npe.c:1.10	Thu Mar 20 06:48:54 2014
+++ src/sys/arch/arm/xscale/ixp425_npe.c	Thu Aug 14 16:55:02 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: ixp425_npe.c,v 1.10 2014/03/20 06:48:54 skrll Exp $	*/
+/*	$NetBSD: ixp425_npe.c,v 1.11 2014/08/14 16:55:02 joerg Exp $	*/
 
 /*-
  * Copyright (c) 2006 Sam Leffler, Errno Consulting
@@ -62,7 +62,7 @@
 #if 0
 __FBSDID($FreeBSD: src/sys/arm/xscale/ixp425/ixp425_npe.c,v 1.1 2006/11/19 23:55:23 sam Exp $);
 #endif
-__KERNEL_RCSID(0, $NetBSD: ixp425_npe.c,v 1.10 2014/03/20 06:48:54 skrll Exp $);
+__KERNEL_RCSID(0, $NetBSD: ixp425_npe.c,v 1.11 2014/08/14 16:55:02 joerg Exp $);
 
 /*
  * Intel XScale Network Processing Engine (NPE) support.
@@ -594,13 +594,13 @@ npe_load_stateinfo(struct ixpnpe_softc *
 	IX_NPEDL_OFFSET_STATE_ADDR_CTXT_NUM;
 	
 	/* error-check Context Register No. and Context Number values  */
-	if (!(0 = reg  reg  IX_NPEDL_CTXT_REG_MAX)) {
+	if (reg = IX_NPEDL_CTXT_REG_MAX) {
 	printf(%s: invalid Context Register %u\n, device_xname(sc-sc_dev),
 		reg);
 	error = EINVAL;
 	break;
 	}
-	if (!(0 = cNum  cNum  IX_NPEDL_CTXT_NUM_MAX)) {
+	if (cNum = IX_NPEDL_CTXT_NUM_MAX) {
 	printf(%s: invalid Context Number %u\n, device_xname(sc-sc_dev),
 	cNum);
 	error = EINVAL;



CVS commit: src/sys/compat/svr4

2014-08-14 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Thu Aug 14 17:29:30 UTC 2014

Modified Files:
src/sys/compat/svr4: svr4_stat.c

Log Message:
http://m00nbsd.net/ae123a9bae03f7dde5c6d654412daf5a.html#Report-2

#06-0x01: Empty compiler block

ok christos@


To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/sys/compat/svr4/svr4_stat.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/compat/svr4/svr4_stat.c
diff -u src/sys/compat/svr4/svr4_stat.c:1.69 src/sys/compat/svr4/svr4_stat.c:1.70
--- src/sys/compat/svr4/svr4_stat.c:1.69	Sun Jan 11 02:45:50 2009
+++ src/sys/compat/svr4/svr4_stat.c	Thu Aug 14 17:29:30 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: svr4_stat.c,v 1.69 2009/01/11 02:45:50 christos Exp $	 */
+/*	$NetBSD: svr4_stat.c,v 1.70 2014/08/14 17:29:30 maxv Exp $	 */
 
 /*-
  * Copyright (c) 1994, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: svr4_stat.c,v 1.69 2009/01/11 02:45:50 christos Exp $);
+__KERNEL_RCSID(0, $NetBSD: svr4_stat.c,v 1.70 2014/08/14 17:29:30 maxv Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -478,7 +478,6 @@ svr4_sys_systeminfo(struct lwp *l, const
 #if defined(__i386__)
 		str = i86pc;
 #elif defined(__sparc__)
-#elif defined(__sparc__)
 		{
 			extern char machine_model[];
 



CVS commit: src

2014-08-14 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Aug 14 18:38:30 UTC 2014

Modified Files:
src/distrib/evbarm/instkernel/sshramdisk: Makefile
src/sys/arch/evbarm/conf: RPI_INSTALL

Log Message:
LLVM sshramdisk needs 8.9MB, so bump again.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/distrib/evbarm/instkernel/sshramdisk/Makefile
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/evbarm/conf/RPI_INSTALL

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

Modified files:

Index: src/distrib/evbarm/instkernel/sshramdisk/Makefile
diff -u src/distrib/evbarm/instkernel/sshramdisk/Makefile:1.4 src/distrib/evbarm/instkernel/sshramdisk/Makefile:1.5
--- src/distrib/evbarm/instkernel/sshramdisk/Makefile:1.4	Tue Aug 12 11:49:04 2014
+++ src/distrib/evbarm/instkernel/sshramdisk/Makefile	Thu Aug 14 18:38:29 2014
@@ -1,10 +1,10 @@
-#	$NetBSD: Makefile,v 1.4 2014/08/12 11:49:04 martin Exp $
+#	$NetBSD: Makefile,v 1.5 2014/08/14 18:38:29 joerg Exp $
 
 .include bsd.own.mk
 .include ${NETBSDSRCDIR}/distrib/common/Makefile.distrib
 
 IMAGE=		sshramdisk.fs
-IMAGESIZE=	8600k
+IMAGESIZE=	8900k
 MAKEFS_FLAGS=	-f 15
 
 WARNS=		1

Index: src/sys/arch/evbarm/conf/RPI_INSTALL
diff -u src/sys/arch/evbarm/conf/RPI_INSTALL:1.4 src/sys/arch/evbarm/conf/RPI_INSTALL:1.5
--- src/sys/arch/evbarm/conf/RPI_INSTALL:1.4	Thu Aug 14 16:32:11 2014
+++ src/sys/arch/evbarm/conf/RPI_INSTALL	Thu Aug 14 18:38:29 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: RPI_INSTALL,v 1.4 2014/08/14 16:32:11 martin Exp $
+#	$NetBSD: RPI_INSTALL,v 1.5 2014/08/14 18:38:29 joerg Exp $
 #
 #	RPI_INSTALL -- RPI kernel with installation-sized
 #	ramdisk
@@ -8,7 +8,7 @@ include arch/evbarm/conf/RPI
 include arch/evbarm/conf/INSTALL
 
 no options	MEMORY_DISK_ROOT_SIZE
-options 	MEMORY_DISK_ROOT_SIZE=17250
+options 	MEMORY_DISK_ROOT_SIZE=17800
 
 makeoptions	RAMDISKNAME=sshramdisk
 no makeoptions	DEBUG



CVS commit: src

2014-08-14 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Aug 14 18:39:39 UTC 2014

Modified Files:
src/share/mk: bsd.sys.mk
src/sys/arch/aarch64/conf: Makefile.aarch64
src/sys/arch/arm/conf: Makefile.arm

Log Message:
Use wildcards for stripping/preserving the mapping symbols on ARM and
AArch64. LLVM creates unique symbols in each file of the form $a.n etc.


To generate a diff of this commit:
cvs rdiff -u -r1.243 -r1.244 src/share/mk/bsd.sys.mk
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/aarch64/conf/Makefile.aarch64
cvs rdiff -u -r1.42 -r1.43 src/sys/arch/arm/conf/Makefile.arm

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

Modified files:

Index: src/share/mk/bsd.sys.mk
diff -u src/share/mk/bsd.sys.mk:1.243 src/share/mk/bsd.sys.mk:1.244
--- src/share/mk/bsd.sys.mk:1.243	Thu Aug 14 15:14:45 2014
+++ src/share/mk/bsd.sys.mk	Thu Aug 14 18:39:38 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.sys.mk,v 1.243 2014/08/14 15:14:45 matt Exp $
+#	$NetBSD: bsd.sys.mk,v 1.244 2014/08/14 18:39:38 joerg Exp $
 #
 # Build definitions used for NetBSD source tree builds.
 
@@ -261,10 +261,10 @@ YFLAGS+=	${YPREFIX:D-p${YPREFIX}} ${YHEA
 # Objcopy
 .if ${MACHINE_ARCH} == aarch64eb
 # AARCH64 big endian needs to preserve $x/$d symbols for the linker.
-OBJCOPYLIBFLAGS_EXTRA=-K '\$x' -K '\$d'
+OBJCOPYLIBFLAGS_EXTRA=-w -K '[$$][dx]' -K '[$$][dx]\.*'
 .elif !empty(MACHINE_ARCH:M*arm*eb)
 # ARM big endian needs to preserve $a/$d/$t symbols for the linker.
-OBJCOPYLIBFLAGS_EXTRA=-K '\$a' -K '\$d' -K '\$t'
+OBJCOPYLIBFLAGS_EXTRA=-w -K '[$$][adt]' -K '[$$][adt]\.*'
 .endif
 OBJCOPYLIBFLAGS?=${${.TARGET:M*.po} != :?-X:-x} ${OBJCOPYLIBFLAGS_EXTRA}
 

Index: src/sys/arch/aarch64/conf/Makefile.aarch64
diff -u src/sys/arch/aarch64/conf/Makefile.aarch64:1.1 src/sys/arch/aarch64/conf/Makefile.aarch64:1.2
--- src/sys/arch/aarch64/conf/Makefile.aarch64:1.1	Sun Aug 10 05:47:37 2014
+++ src/sys/arch/aarch64/conf/Makefile.aarch64	Thu Aug 14 18:39:39 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.aarch64,v 1.1 2014/08/10 05:47:37 matt Exp $
+#	$NetBSD: Makefile.aarch64,v 1.2 2014/08/14 18:39:39 joerg Exp $
 
 # Makefile for NetBSD
 #
@@ -69,8 +69,8 @@ LINKFLAGS_NORMAL+=	-T ${LDSCRIPT}
 # with ddb. Do it differently if 'makeoptions DEBUG=-g' was specified.
 .if !defined(DEBUG) || empty(DEBUG:M-g*)
 SYSTEM_LD_TAIL?=	${SYSTEM_LD_TAIL_DBSYM}; \
-			${OBJCOPY} --strip-symbol='$$k'	\
-   --strip-symbol='$$d' $@ ;\
+			${OBJCOPY} -w --strip-symbol='[$$][dx]'	\
+   --strip-symbol='[$$][dx]\.*' $@ ;\
 			${SIZE} $@; chmod 755 $@
 .else
 STRIPFLAGS=-g --strip-symbol='$$x' --strip-symbol='$$d'

Index: src/sys/arch/arm/conf/Makefile.arm
diff -u src/sys/arch/arm/conf/Makefile.arm:1.42 src/sys/arch/arm/conf/Makefile.arm:1.43
--- src/sys/arch/arm/conf/Makefile.arm:1.42	Sun Mar  2 13:21:59 2014
+++ src/sys/arch/arm/conf/Makefile.arm	Thu Aug 14 18:39:39 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.arm,v 1.42 2014/03/02 13:21:59 joerg Exp $
+#	$NetBSD: Makefile.arm,v 1.43 2014/08/14 18:39:39 joerg Exp $
 
 # Makefile for NetBSD
 #
@@ -83,9 +83,8 @@ LINKFLAGS_NORMAL=	-X
 # with ddb. Do it differently if 'makeoptions DEBUG=-g' was specified.
 .if !defined(DEBUG) || empty(DEBUG:M-g*)
 SYSTEM_LD_TAIL?=	${SYSTEM_LD_TAIL_DBSYM} ; \
-			${OBJCOPY} --strip-symbol='$$a'	 \
---strip-symbol='$$t'	 \
---strip-symbol='$$d' $@	;\
+			${OBJCOPY} --wildcard --strip-symbol='[$$][atd]' \
+--strip-symbol='[$$][atd]\.*' $@;   \
 			${SIZE} $@; chmod 755 $@
 .else
 STRIPFLAGS=-g --strip-symbol='$$a' --strip-symbol='$$t' --strip-symbol='$$d'



CVS commit: xsrc/external/mit/libdrm/dist/radeon

2014-08-14 Thread matthew green
Module Name:xsrc
Committed By:   mrg
Date:   Thu Aug 14 20:56:10 UTC 2014

Modified Files:
xsrc/external/mit/libdrm/dist/radeon: radeon_bo_gem.c

Log Message:
convert an mmap() to drmMap().


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 xsrc/external/mit/libdrm/dist/radeon/radeon_bo_gem.c

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

Modified files:

Index: xsrc/external/mit/libdrm/dist/radeon/radeon_bo_gem.c
diff -u xsrc/external/mit/libdrm/dist/radeon/radeon_bo_gem.c:1.3 xsrc/external/mit/libdrm/dist/radeon/radeon_bo_gem.c:1.4
--- xsrc/external/mit/libdrm/dist/radeon/radeon_bo_gem.c:1.3	Mon Mar 17 07:52:19 2014
+++ xsrc/external/mit/libdrm/dist/radeon/radeon_bo_gem.c	Thu Aug 14 20:56:10 2014
@@ -178,8 +178,8 @@ static int bo_map(struct radeon_bo_int *
 boi, boi-handle, r);
 return r;
 }
-ptr = mmap(0, args.size, PROT_READ|PROT_WRITE, MAP_SHARED, boi-bom-fd, args.addr_ptr);
-if (ptr == MAP_FAILED)
+r = drmMap(boi-bom-fd, args.addr_ptr, args.size, ptr);
+if (r)
 return -errno;
 bo_gem-priv_ptr = ptr;
 wait:



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

2014-08-14 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Aug 14 20:59:54 UTC 2014

Modified Files:
src/sys/arch/arm/conf: Makefile.arm

Log Message:
Do the wildcard symbol dance for the debug case as well.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/sys/arch/arm/conf/Makefile.arm

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/conf/Makefile.arm
diff -u src/sys/arch/arm/conf/Makefile.arm:1.43 src/sys/arch/arm/conf/Makefile.arm:1.44
--- src/sys/arch/arm/conf/Makefile.arm:1.43	Thu Aug 14 18:39:39 2014
+++ src/sys/arch/arm/conf/Makefile.arm	Thu Aug 14 20:59:54 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.arm,v 1.43 2014/08/14 18:39:39 joerg Exp $
+#	$NetBSD: Makefile.arm,v 1.44 2014/08/14 20:59:54 joerg Exp $
 
 # Makefile for NetBSD
 #
@@ -87,7 +87,8 @@ SYSTEM_LD_TAIL?=	${SYSTEM_LD_TAIL_DBSYM}
 --strip-symbol='[$$][atd]\.*' $@;   \
 			${SIZE} $@; chmod 755 $@
 .else
-STRIPFLAGS=-g --strip-symbol='$$a' --strip-symbol='$$t' --strip-symbol='$$d'
+STRIPFLAGS=-g --wildcard --strip-symbol='[$$][atd]' \
+	   --strip-symbol='[$$][atd]\.*'
 .endif
 
 ##



CVS commit: [netbsd-7] src/sys/arch/sparc64/sparc64

2014-08-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Aug 14 06:50:37 UTC 2014

Modified Files:
src/sys/arch/sparc64/sparc64 [netbsd-7]: locore.s

Log Message:
Pull up following revision(s) (requested by nakayama in ticket #14):
sys/arch/sparc64/sparc64/locore.s: revision 1.370
Add missing delay slot in DEBUG kernel.


To generate a diff of this commit:
cvs rdiff -u -r1.369 -r1.369.2.1 src/sys/arch/sparc64/sparc64/locore.s

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



CVS commit: [netbsd-7] src/sys/arch/x86/pci

2014-08-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Aug 14 06:52:38 UTC 2014

Modified Files:
src/sys/arch/x86/pci [netbsd-7]: if_vmx.c

Log Message:
Pull up following revision(s) (requested by hikaru in ticket #15):
sys/arch/x86/pci/if_vmx.c: revision 1.5
Set ifflags callback so that the device can enter promiscuous mode.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.4.4.1 src/sys/arch/x86/pci/if_vmx.c

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



CVS commit: [netbsd-7] src/sys/dev/usb

2014-08-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Aug 14 06:56:55 UTC 2014

Modified Files:
src/sys/dev/usb [netbsd-7]: usb.h

Log Message:
Pull up following revision(s) (requested by skrll in ticket #10):
sys/dev/usb/usb.h: revision 1.107
Define AXEN_DEBUG.  From Takahiro HAYASHI.


To generate a diff of this commit:
cvs rdiff -u -r1.106.4.1 -r1.106.4.2 src/sys/dev/usb/usb.h

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



CVS commit: [netbsd-7] src/doc

2014-08-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Aug 14 06:58:39 UTC 2014

Modified Files:
src/doc [netbsd-7]: CHANGES-7.0

Log Message:
Tickets 10, 14 and 15


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.8 -r1.1.2.9 src/doc/CHANGES-7.0

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



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

2014-08-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Aug 14 09:02:18 UTC 2014

Modified Files:
src/sys/arch/vax/include: mutex.h

Log Message:
Previously we used unsigned long int as __uintptr_t, but gcc prefers
__UINTPTR_TYPE__ as unsigned int, and now we use that for __uintptr_t
as well, so adapt MUTEX_CAS() accordingly.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/vax/include/mutex.h

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



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

2014-08-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Aug 14 09:17:32 UTC 2014

Modified Files:
src/sys/arch/vax/include: int_fmtio.h

Log Message:
intptr_t and uintptr_t are not long any more.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/vax/include/int_fmtio.h

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



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

2014-08-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Aug 14 11:28:13 UTC 2014

Modified Files:
src/sys/arch/vax/include: int_fmtio.h mutex.h

Log Message:
Revert previous changes, gcc configuration will be adapted instead.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/vax/include/int_fmtio.h
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/vax/include/mutex.h

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



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

2014-08-14 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Aug 14 11:32:18 UTC 2014

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/vax: netbsd-elf.h

Log Message:
Force INTPTR_TYPE/UINTPTR_TYPE to long int/unsigned long int.
(same types as PTRDIFF_TYPE/SIZE_TYPE)


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 \
src/external/gpl3/gcc/dist/gcc/config/vax/netbsd-elf.h

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



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

2014-08-14 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Thu Aug 14 12:48:52 UTC 2014

Modified Files:
src/sys/arch/evbarm/conf: std.odroid

Log Message:
Set __NO_FIQ for the Exynos processors are shipped with SecureCore enabled
gics and FIQs are for the secure part only.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/evbarm/conf/std.odroid

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



CVS commit: src/sys/fs/ptyfs

2014-08-14 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Thu Aug 14 14:06:53 UTC 2014

Modified Files:
src/sys/fs/ptyfs: ptyfs_vfsops.c

Log Message:
Overflow if *data_len == OSIZE and args-version = PTYFS_ARGSVERSION.

Sent on tech-kern@, ok christos@


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/fs/ptyfs/ptyfs_vfsops.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/vax/include

2014-08-14 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Aug 14 14:21:03 UTC 2014

Modified Files:
src/sys/arch/vax/include: int_fmtio.h

Log Message:
Fix SCN?FAST{8,16} formats to match reality (int) in gcc4.8.3


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/vax/include/int_fmtio.h

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



CVS commit: src/share/mk

2014-08-14 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Aug 14 15:14:45 UTC 2014

Modified Files:
src/share/mk: bsd.sys.mk

Log Message:
Fix typo in OBJCOPYLIBFLAGS_EXTRA for aarch64eb.


To generate a diff of this commit:
cvs rdiff -u -r1.242 -r1.243 src/share/mk/bsd.sys.mk

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



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

2014-08-14 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Aug 14 15:16:21 UTC 2014

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/mips: netbsd.h

Log Message:
Fix INTPTR_TYPE/UINTPTR_TYPE for n32.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.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/man

2014-08-14 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Thu Aug 14 15:31:12 UTC 2014

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

Log Message:
For an argument to be interpreted as a local file name, bypassing the
search rules in man.conf or MANPATH, it must begin with /, ./, or
../.  Simply testing whether it contains / is wrong, because it
breaks usage like man 8 vax/boot.

This reverts revision 1.57 dated 2013-10-06,
Be more permissive in interpreting man pages as filenames.


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/usr.bin/man/man.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/arm/samsung

2014-08-14 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Thu Aug 14 15:39:31 UTC 2014

Modified Files:
src/sys/arch/arm/samsung: exynos4_reg.h

Log Message:
Adjust AUDIOCORE mapping for exynos4 to map in entire piece.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/samsung/exynos4_reg.h

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



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

2014-08-14 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Thu Aug 14 15:41:07 UTC 2014

Modified Files:
src/sys/arch/arm/samsung: exynos5_reg.h

Log Message:
Rename C2C gpio to match the naming scheme
Add I2S gpio offset


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/arm/samsung/exynos5_reg.h

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



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

2014-08-14 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Thu Aug 14 15:42:31 UTC 2014

Modified Files:
src/sys/arch/arm/samsung: exynos_gpio.c

Log Message:
Add GPIO definitions for Exynos5 series (taken from 5250)


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/arm/samsung/exynos_gpio.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/odroid

2014-08-14 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Thu Aug 14 15:44:42 UTC 2014

Modified Files:
src/sys/arch/evbarm/odroid: odroid_machdep.c

Log Message:
Add gpio not connected definitions for Exynos5

While here, increase delay around lan9730 powercycle timing to improve its
reset.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/evbarm/odroid/odroid_machdep.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/man

2014-08-14 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Thu Aug 14 15:44:47 UTC 2014

Modified Files:
src/usr.bin/man: man.1

Log Message:
More detail about treating a local file as a man page,
and about how to request machine-specific man pages.
re


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/usr.bin/man/man.1

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

2014-08-14 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Thu Aug 14 15:46:57 UTC 2014

Modified Files:
src/sys/arch/arm/samsung: exynos5_loc.c

Log Message:
Add exyogpio device attachment for exynos5


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/samsung/exynos5_loc.c

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



CVS commit: src/share/man/man8

2014-08-14 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Thu Aug 14 15:50:42 UTC 2014

Modified Files:
src/share/man/man8: boot.8

Log Message:
Add some examples of machine-specific foo/boot.8 man pages.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/share/man/man8/boot.8

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

2014-08-14 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Thu Aug 14 15:57:51 UTC 2014

Modified Files:
src/sys/arch/evbarm/odroid: odroid_machdep.c

Log Message:
Allow bits to be used for the usb hub on Odroid-XU


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/evbarm/odroid/odroid_machdep.c

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

2014-08-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Aug 14 16:25:20 UTC 2014

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

Log Message:
Add tar.debug and cpio.debug to lists for MKBSDTAR=yes MKDEBUG=yes.


To generate a diff of this commit:
cvs rdiff -u -r1.81 -r1.82 src/distrib/sets/lists/debug/mi

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



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

2014-08-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Aug 14 16:26:21 UTC 2014

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

Log Message:
Add dtrace modules to amd64-xen module set list.  Hi jnemeth!


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/distrib/sets/lists/modules/md.amd64

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



CVS commit: src/distrib

2014-08-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Aug 14 16:27:18 UTC 2014

Modified Files:
src/distrib/amd64/cdroms: Makefile.cdrom
src/distrib/i386/cdroms: Makefile.cdrom
src/distrib/sparc64/cdroms/installcd: Makefile
src/distrib/vax/cdroms/installcd: Makefile

Log Message:
CD images need libarchive if MKBSDTAR is yes.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/distrib/amd64/cdroms/Makefile.cdrom
cvs rdiff -u -r1.30 -r1.31 src/distrib/i386/cdroms/Makefile.cdrom
cvs rdiff -u -r1.18 -r1.19 src/distrib/sparc64/cdroms/installcd/Makefile
cvs rdiff -u -r1.8 -r1.9 src/distrib/vax/cdroms/installcd/Makefile

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



CVS commit: src/sys

2014-08-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Aug 14 16:27:56 UTC 2014

Modified Files:
src/sys/kern: init_main.c
src/sys/rump/librump/rumpkern: rump.c

Log Message:
Defer cprng_fast_init until CPUs are detected.


To generate a diff of this commit:
cvs rdiff -u -r1.458 -r1.459 src/sys/kern/init_main.c
cvs rdiff -u -r1.308 -r1.309 src/sys/rump/librump/rumpkern/rump.c

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



CVS commit: src/sys/kern

2014-08-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Aug 14 16:28:30 UTC 2014

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

Log Message:
Lock cprng-cs_lock around rndsink_request to avoid race with callback.


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

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



CVS commit: src/sys/rump/librump/rumpkern

2014-08-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Aug 14 16:28:49 UTC 2014

Modified Files:
src/sys/rump/librump/rumpkern: rump.c

Log Message:
Restore placement of percpu_init in rump_init.

Probably doesn't matter, but let's avoid needless churn around the
real bug fix.


To generate a diff of this commit:
cvs rdiff -u -r1.309 -r1.310 src/sys/rump/librump/rumpkern/rump.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

2014-08-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Aug 14 16:32:11 UTC 2014

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

Log Message:
Bump ramdisk size (since we added loads of firmware to it)


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/evbarm/conf/RPI_INSTALL

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



CVS commit: src/sys/external/bsd/drm2/ttm

2014-08-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Aug 14 16:47:52 UTC 2014

Modified Files:
src/sys/external/bsd/drm2/ttm: ttm_agp_backend.c

Log Message:
Use ttm_dma_tt_init in ttm_agp_tt_create so we can use ttm_bus_dma.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/external/bsd/drm2/ttm/ttm_agp_backend.c

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



CVS commit: src/sys/external/bsd/drm2/ttm

2014-08-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Aug 14 16:50:22 UTC 2014

Modified Files:
src/sys/external/bsd/drm2/ttm: ttm_agp_backend.c

Log Message:
Zero ttm_agp objects on creation.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/external/bsd/drm2/ttm/ttm_agp_backend.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/arm/xscale

2014-08-14 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Aug 14 16:55:02 UTC 2014

Modified Files:
src/sys/arch/arm/xscale: ixp425_npe.c

Log Message:
Remove tautologies.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/arm/xscale/ixp425_npe.c

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



CVS commit: src/sys/compat/svr4

2014-08-14 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Thu Aug 14 17:29:30 UTC 2014

Modified Files:
src/sys/compat/svr4: svr4_stat.c

Log Message:
http://m00nbsd.net/ae123a9bae03f7dde5c6d654412daf5a.html#Report-2

#06-0x01: Empty compiler block

ok christos@


To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/sys/compat/svr4/svr4_stat.c

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



CVS commit: src

2014-08-14 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Aug 14 18:38:30 UTC 2014

Modified Files:
src/distrib/evbarm/instkernel/sshramdisk: Makefile
src/sys/arch/evbarm/conf: RPI_INSTALL

Log Message:
LLVM sshramdisk needs 8.9MB, so bump again.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/distrib/evbarm/instkernel/sshramdisk/Makefile
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/evbarm/conf/RPI_INSTALL

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



CVS commit: src

2014-08-14 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Aug 14 18:39:39 UTC 2014

Modified Files:
src/share/mk: bsd.sys.mk
src/sys/arch/aarch64/conf: Makefile.aarch64
src/sys/arch/arm/conf: Makefile.arm

Log Message:
Use wildcards for stripping/preserving the mapping symbols on ARM and
AArch64. LLVM creates unique symbols in each file of the form $a.n etc.


To generate a diff of this commit:
cvs rdiff -u -r1.243 -r1.244 src/share/mk/bsd.sys.mk
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/aarch64/conf/Makefile.aarch64
cvs rdiff -u -r1.42 -r1.43 src/sys/arch/arm/conf/Makefile.arm

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



CVS commit: xsrc/external/mit/libdrm/dist/radeon

2014-08-14 Thread matthew green
Module Name:xsrc
Committed By:   mrg
Date:   Thu Aug 14 20:56:10 UTC 2014

Modified Files:
xsrc/external/mit/libdrm/dist/radeon: radeon_bo_gem.c

Log Message:
convert an mmap() to drmMap().


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 xsrc/external/mit/libdrm/dist/radeon/radeon_bo_gem.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/arm/conf

2014-08-14 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Aug 14 20:59:54 UTC 2014

Modified Files:
src/sys/arch/arm/conf: Makefile.arm

Log Message:
Do the wildcard symbol dance for the debug case as well.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/sys/arch/arm/conf/Makefile.arm

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