CVS commit: src/lib/libc/sys

2022-05-20 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Sat May 21 01:38:14 UTC 2022

Modified Files:
src/lib/libc/sys: sigaction.2

Log Message:
fix typo in sigaction(2)


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/lib/libc/sys/sigaction.2

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



CVS commit: src/lib/libc/sys

2022-05-20 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Sat May 21 01:38:14 UTC 2022

Modified Files:
src/lib/libc/sys: sigaction.2

Log Message:
fix typo in sigaction(2)


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/lib/libc/sys/sigaction.2

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

Modified files:

Index: src/lib/libc/sys/sigaction.2
diff -u src/lib/libc/sys/sigaction.2:1.51 src/lib/libc/sys/sigaction.2:1.52
--- src/lib/libc/sys/sigaction.2:1.51	Tue May 22 05:39:44 2018
+++ src/lib/libc/sys/sigaction.2	Sat May 21 01:38:14 2022
@@ -1,4 +1,4 @@
-.\"	$NetBSD: sigaction.2,v 1.51 2018/05/22 05:39:44 wiz Exp $
+.\"	$NetBSD: sigaction.2,v 1.52 2022/05/21 01:38:14 dholland Exp $
 .\"
 .\" Copyright (c) 1980, 1990, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -287,7 +287,7 @@ flag in
 .Xr termios 4 .
 .El
 .Pp
-If the signal handler is called due to signal delively resulting from reasons
+If the signal handler is called due to signal delivery resulting from reasons
 other than direct calls to
 .Xr kill 2
 or



CVS commit: src

2022-05-20 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri May 20 21:31:24 UTC 2022

Modified Files:
src/include: vis.h
src/share/mk: bsd.README
src/sys/dev/sysmon: sysmon_envsys.c
src/usr.sbin/wsmoused: wsmoused.c

Log Message:
s/appropiate/appropriate/ in comments and readme file.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/include/vis.h
cvs rdiff -u -r1.428 -r1.429 src/share/mk/bsd.README
cvs rdiff -u -r1.150 -r1.151 src/sys/dev/sysmon/sysmon_envsys.c
cvs rdiff -u -r1.28 -r1.29 src/usr.sbin/wsmoused/wsmoused.c

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

Modified files:

Index: src/include/vis.h
diff -u src/include/vis.h:1.25 src/include/vis.h:1.26
--- src/include/vis.h:1.25	Sun Apr 23 01:57:36 2017
+++ src/include/vis.h	Fri May 20 21:31:24 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: vis.h,v 1.25 2017/04/23 01:57:36 christos Exp $	*/
+/*	$NetBSD: vis.h,v 1.26 2022/05/20 21:31:24 andvar Exp $	*/
 
 /*-
  * Copyright (c) 1990, 1993
@@ -40,7 +40,7 @@
  * to select alternate encoding format
  */
 #define	VIS_OCTAL	0x0001	/* use octal \ddd format */
-#define	VIS_CSTYLE	0x0002	/* use \[nrft0..] where appropiate */
+#define	VIS_CSTYLE	0x0002	/* use \[nrft0..] where appropriate */
 
 /*
  * to alter set of characters encoded (default is to encode all

Index: src/share/mk/bsd.README
diff -u src/share/mk/bsd.README:1.428 src/share/mk/bsd.README:1.429
--- src/share/mk/bsd.README:1.428	Thu Dec 23 20:08:07 2021
+++ src/share/mk/bsd.README	Fri May 20 21:31:24 2022
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.README,v 1.428 2021/12/23 20:08:07 christos Exp $
+#	$NetBSD: bsd.README,v 1.429 2022/05/20 21:31:24 andvar Exp $
 #	@(#)bsd.README	8.2 (Berkeley) 4/2/94
 
 This is the README file for the make "include" files for the NetBSD
@@ -892,7 +892,7 @@ EXTERNAL_TOOLCHAIN
 		compiler may not be able to build the library components of
 		the in-tree compiler.
 
-		This variable should be used in conjunction with an appropiate
+		This variable should be used in conjunction with an appropriate
 		HAVE_GCC or HAVE_LLVM setting to control the compiler flags.
 
 		NOTE: This variable is not yet used in as many places as

Index: src/sys/dev/sysmon/sysmon_envsys.c
diff -u src/sys/dev/sysmon/sysmon_envsys.c:1.150 src/sys/dev/sysmon/sysmon_envsys.c:1.151
--- src/sys/dev/sysmon/sysmon_envsys.c:1.150	Fri Dec 31 14:30:04 2021
+++ src/sys/dev/sysmon/sysmon_envsys.c	Fri May 20 21:31:24 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: sysmon_envsys.c,v 1.150 2021/12/31 14:30:04 riastradh Exp $	*/
+/*	$NetBSD: sysmon_envsys.c,v 1.151 2022/05/20 21:31:24 andvar Exp $	*/
 
 /*-
  * Copyright (c) 2007, 2008 Juan Romero Pardines.
@@ -64,7 +64,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys.c,v 1.150 2021/12/31 14:30:04 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys.c,v 1.151 2022/05/20 21:31:24 andvar Exp $");
 
 #include 
 #include 
@@ -1815,7 +1815,7 @@ sme_update_sensor_dictionary(prop_object
 /*
  * sme_userset_dictionary:
  *
- * 	+ Parse the userland dictionary and run the appropiate tasks
+ * 	+ Parse the userland dictionary and run the appropriate tasks
  * 	  that were specified.
  */
 int

Index: src/usr.sbin/wsmoused/wsmoused.c
diff -u src/usr.sbin/wsmoused/wsmoused.c:1.28 src/usr.sbin/wsmoused/wsmoused.c:1.29
--- src/usr.sbin/wsmoused/wsmoused.c:1.28	Wed Nov 24 14:34:51 2021
+++ src/usr.sbin/wsmoused/wsmoused.c	Fri May 20 21:31:24 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: wsmoused.c,v 1.28 2021/11/24 14:34:51 uwe Exp $ */
+/* $NetBSD: wsmoused.c,v 1.29 2022/05/20 21:31:24 andvar Exp $ */
 
 /*
  * Copyright (c) 2002, 2003, 2004 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
 #ifndef lint
 __COPYRIGHT("@(#) Copyright (c) 2002, 2003\
  The NetBSD Foundation, Inc.  All rights reserved.");
-__RCSID("$NetBSD: wsmoused.c,v 1.28 2021/11/24 14:34:51 uwe Exp $");
+__RCSID("$NetBSD: wsmoused.c,v 1.29 2022/05/20 21:31:24 andvar Exp $");
 #endif /* not lint */
 
 #include 
@@ -298,8 +298,8 @@ open_device(unsigned int secs)
 
 /* Main program event loop.  This function polls the wscons status
  * device and the mouse device; whenever an event is received, the
- * appropiate callback is fired for all attached modes.  If the polls
- * times out (which only appens when the mouse is disabled), another
+ * appropriate callback is fired for all attached modes.  If the polls
+ * times out (which only happens when the mouse is disabled), another
  * callback is launched. */
 static void
 event_loop(void)



CVS commit: src

2022-05-20 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri May 20 21:31:24 UTC 2022

Modified Files:
src/include: vis.h
src/share/mk: bsd.README
src/sys/dev/sysmon: sysmon_envsys.c
src/usr.sbin/wsmoused: wsmoused.c

Log Message:
s/appropiate/appropriate/ in comments and readme file.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/include/vis.h
cvs rdiff -u -r1.428 -r1.429 src/share/mk/bsd.README
cvs rdiff -u -r1.150 -r1.151 src/sys/dev/sysmon/sysmon_envsys.c
cvs rdiff -u -r1.28 -r1.29 src/usr.sbin/wsmoused/wsmoused.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/xlint

2022-05-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Fri May 20 21:18:55 UTC 2022

Modified Files:
src/usr.bin/xlint/common: emit.c inittyp.c mem.c tyname.c
src/usr.bin/xlint/lint1: cgram.y ckbool.c ckctype.c ckgetopt.c debug.c
decl.c emit1.c err.c func.c init.c lex.c main1.c mem1.c scan.l
tree.c
src/usr.bin/xlint/lint2: chk.c emit2.c hash.c main2.c mem2.c msg.c
read.c
src/usr.bin/xlint/xlint: xlint.c

Log Message:
lint: use __RCSID in lint mode as well

Since 1995-10-02, lint supports __asm statements and __asm modifiers.

No binary change.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/usr.bin/xlint/common/emit.c
cvs rdiff -u -r1.30 -r1.31 src/usr.bin/xlint/common/inittyp.c
cvs rdiff -u -r1.19 -r1.20 src/usr.bin/xlint/common/mem.c
cvs rdiff -u -r1.50 -r1.51 src/usr.bin/xlint/common/tyname.c
cvs rdiff -u -r1.415 -r1.416 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.14 -r1.15 src/usr.bin/xlint/lint1/ckbool.c
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/xlint/lint1/ckctype.c
cvs rdiff -u -r1.15 -r1.16 src/usr.bin/xlint/lint1/ckgetopt.c
cvs rdiff -u -r1.17 -r1.18 src/usr.bin/xlint/lint1/debug.c
cvs rdiff -u -r1.280 -r1.281 src/usr.bin/xlint/lint1/decl.c
cvs rdiff -u -r1.61 -r1.62 src/usr.bin/xlint/lint1/emit1.c \
src/usr.bin/xlint/lint1/main1.c
cvs rdiff -u -r1.165 -r1.166 src/usr.bin/xlint/lint1/err.c
cvs rdiff -u -r1.135 -r1.136 src/usr.bin/xlint/lint1/func.c \
src/usr.bin/xlint/lint1/scan.l
cvs rdiff -u -r1.234 -r1.235 src/usr.bin/xlint/lint1/init.c
cvs rdiff -u -r1.130 -r1.131 src/usr.bin/xlint/lint1/lex.c
cvs rdiff -u -r1.62 -r1.63 src/usr.bin/xlint/lint1/mem1.c
cvs rdiff -u -r1.441 -r1.442 src/usr.bin/xlint/lint1/tree.c
cvs rdiff -u -r1.47 -r1.48 src/usr.bin/xlint/lint2/chk.c
cvs rdiff -u -r1.27 -r1.28 src/usr.bin/xlint/lint2/emit2.c
cvs rdiff -u -r1.23 -r1.24 src/usr.bin/xlint/lint2/hash.c \
src/usr.bin/xlint/lint2/main2.c
cvs rdiff -u -r1.14 -r1.15 src/usr.bin/xlint/lint2/mem2.c
cvs rdiff -u -r1.16 -r1.17 src/usr.bin/xlint/lint2/msg.c
cvs rdiff -u -r1.75 -r1.76 src/usr.bin/xlint/lint2/read.c
cvs rdiff -u -r1.91 -r1.92 src/usr.bin/xlint/xlint/xlint.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/xlint/common/emit.c
diff -u src/usr.bin/xlint/common/emit.c:1.16 src/usr.bin/xlint/common/emit.c:1.17
--- src/usr.bin/xlint/common/emit.c:1.16	Sat Sep  4 14:48:27 2021
+++ src/usr.bin/xlint/common/emit.c	Fri May 20 21:18:54 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: emit.c,v 1.16 2021/09/04 14:48:27 rillig Exp $	*/
+/*	$NetBSD: emit.c,v 1.17 2022/05/20 21:18:54 rillig Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -36,8 +36,8 @@
 #endif
 
 #include 
-#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: emit.c,v 1.16 2021/09/04 14:48:27 rillig Exp $");
+#if defined(__RCSID)
+__RCSID("$NetBSD: emit.c,v 1.17 2022/05/20 21:18:54 rillig Exp $");
 #endif
 
 #include 

Index: src/usr.bin/xlint/common/inittyp.c
diff -u src/usr.bin/xlint/common/inittyp.c:1.30 src/usr.bin/xlint/common/inittyp.c:1.31
--- src/usr.bin/xlint/common/inittyp.c:1.30	Sun Sep  5 18:17:15 2021
+++ src/usr.bin/xlint/common/inittyp.c	Fri May 20 21:18:54 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: inittyp.c,v 1.30 2021/09/05 18:17:15 rillig Exp $	*/
+/*	$NetBSD: inittyp.c,v 1.31 2022/05/20 21:18:54 rillig Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -36,8 +36,8 @@
 #endif
 
 #include 
-#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: inittyp.c,v 1.30 2021/09/05 18:17:15 rillig Exp $");
+#if defined(__RCSID)
+__RCSID("$NetBSD: inittyp.c,v 1.31 2022/05/20 21:18:54 rillig Exp $");
 #endif
 
 #if defined(IS_LINT1)

Index: src/usr.bin/xlint/common/mem.c
diff -u src/usr.bin/xlint/common/mem.c:1.19 src/usr.bin/xlint/common/mem.c:1.20
--- src/usr.bin/xlint/common/mem.c:1.19	Tue Aug 31 17:22:24 2021
+++ src/usr.bin/xlint/common/mem.c	Fri May 20 21:18:54 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: mem.c,v 1.19 2021/08/31 17:22:24 rillig Exp $	*/
+/*	$NetBSD: mem.c,v 1.20 2022/05/20 21:18:54 rillig Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -36,8 +36,8 @@
 #endif
 
 #include 
-#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: mem.c,v 1.19 2021/08/31 17:22:24 rillig Exp $");
+#if defined(__RCSID)
+__RCSID("$NetBSD: mem.c,v 1.20 2022/05/20 21:18:54 rillig Exp $");
 #endif
 
 #include 

Index: src/usr.bin/xlint/common/tyname.c
diff -u src/usr.bin/xlint/common/tyname.c:1.50 src/usr.bin/xlint/common/tyname.c:1.51
--- src/usr.bin/xlint/common/tyname.c:1.50	Sun Sep  5 18:34:50 2021
+++ src/usr.bin/xlint/common/tyname.c	Fri May 20 21:18:54 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: tyname.c,v 1.50 2021/09/05 18:34:50 rillig Exp $	*/
+/*	$NetBSD: tyname.c,v 1.51 2022/05/20 21:18:54 rillig Exp $	*/
 
 /*-
  * Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -34,8 +34,8 @@
 #endif
 
 #include 
-#if defined(__RCSID) && !defined(lint)

CVS commit: src/usr.bin/xlint

2022-05-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Fri May 20 21:18:55 UTC 2022

Modified Files:
src/usr.bin/xlint/common: emit.c inittyp.c mem.c tyname.c
src/usr.bin/xlint/lint1: cgram.y ckbool.c ckctype.c ckgetopt.c debug.c
decl.c emit1.c err.c func.c init.c lex.c main1.c mem1.c scan.l
tree.c
src/usr.bin/xlint/lint2: chk.c emit2.c hash.c main2.c mem2.c msg.c
read.c
src/usr.bin/xlint/xlint: xlint.c

Log Message:
lint: use __RCSID in lint mode as well

Since 1995-10-02, lint supports __asm statements and __asm modifiers.

No binary change.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/usr.bin/xlint/common/emit.c
cvs rdiff -u -r1.30 -r1.31 src/usr.bin/xlint/common/inittyp.c
cvs rdiff -u -r1.19 -r1.20 src/usr.bin/xlint/common/mem.c
cvs rdiff -u -r1.50 -r1.51 src/usr.bin/xlint/common/tyname.c
cvs rdiff -u -r1.415 -r1.416 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.14 -r1.15 src/usr.bin/xlint/lint1/ckbool.c
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/xlint/lint1/ckctype.c
cvs rdiff -u -r1.15 -r1.16 src/usr.bin/xlint/lint1/ckgetopt.c
cvs rdiff -u -r1.17 -r1.18 src/usr.bin/xlint/lint1/debug.c
cvs rdiff -u -r1.280 -r1.281 src/usr.bin/xlint/lint1/decl.c
cvs rdiff -u -r1.61 -r1.62 src/usr.bin/xlint/lint1/emit1.c \
src/usr.bin/xlint/lint1/main1.c
cvs rdiff -u -r1.165 -r1.166 src/usr.bin/xlint/lint1/err.c
cvs rdiff -u -r1.135 -r1.136 src/usr.bin/xlint/lint1/func.c \
src/usr.bin/xlint/lint1/scan.l
cvs rdiff -u -r1.234 -r1.235 src/usr.bin/xlint/lint1/init.c
cvs rdiff -u -r1.130 -r1.131 src/usr.bin/xlint/lint1/lex.c
cvs rdiff -u -r1.62 -r1.63 src/usr.bin/xlint/lint1/mem1.c
cvs rdiff -u -r1.441 -r1.442 src/usr.bin/xlint/lint1/tree.c
cvs rdiff -u -r1.47 -r1.48 src/usr.bin/xlint/lint2/chk.c
cvs rdiff -u -r1.27 -r1.28 src/usr.bin/xlint/lint2/emit2.c
cvs rdiff -u -r1.23 -r1.24 src/usr.bin/xlint/lint2/hash.c \
src/usr.bin/xlint/lint2/main2.c
cvs rdiff -u -r1.14 -r1.15 src/usr.bin/xlint/lint2/mem2.c
cvs rdiff -u -r1.16 -r1.17 src/usr.bin/xlint/lint2/msg.c
cvs rdiff -u -r1.75 -r1.76 src/usr.bin/xlint/lint2/read.c
cvs rdiff -u -r1.91 -r1.92 src/usr.bin/xlint/xlint/xlint.c

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



CVS commit: src/tests/usr.bin/xlint/lint1

2022-05-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Fri May 20 21:03:04 UTC 2022

Modified Files:
src/tests/usr.bin/xlint/lint1: d_c99_bool_strict_syshdr.c

Log Message:
tests/lint: sync comment with reality


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 \
src/tests/usr.bin/xlint/lint1/d_c99_bool_strict_syshdr.c

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

Modified files:

Index: src/tests/usr.bin/xlint/lint1/d_c99_bool_strict_syshdr.c
diff -u src/tests/usr.bin/xlint/lint1/d_c99_bool_strict_syshdr.c:1.14 src/tests/usr.bin/xlint/lint1/d_c99_bool_strict_syshdr.c:1.15
--- src/tests/usr.bin/xlint/lint1/d_c99_bool_strict_syshdr.c:1.14	Thu May 19 17:24:14 2022
+++ src/tests/usr.bin/xlint/lint1/d_c99_bool_strict_syshdr.c	Fri May 20 21:03:04 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: d_c99_bool_strict_syshdr.c,v 1.14 2022/05/19 17:24:14 rillig Exp $	*/
+/*	$NetBSD: d_c99_bool_strict_syshdr.c,v 1.15 2022/05/20 21:03:04 rillig Exp $	*/
 # 3 "d_c99_bool_strict_syshdr.c"
 
 /*
@@ -213,9 +213,9 @@ void take_bool(_Bool);
  * warnings in user code; that's irrelevant for this test though.
  *
  * Several curses functions take bool as a parameter, for example keypad or
- * leaveok.  As of 2022-05-19, lint does not complain when these functions
- * get 0 instead of 'false' as an argument.  It does complain about 1 instead
- * of 'true' though.
+ * leaveok.  Before ckbool.c 1.14 from 2022-05-19, lint did not complain when
+ * these functions get 0 instead of 'false' as an argument.  It did complain
+ * about 1 instead of 'true' though.
  */
 void
 pass_bool_to_function(void)



CVS commit: src/tests/usr.bin/xlint/lint1

2022-05-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Fri May 20 21:03:04 UTC 2022

Modified Files:
src/tests/usr.bin/xlint/lint1: d_c99_bool_strict_syshdr.c

Log Message:
tests/lint: sync comment with reality


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 \
src/tests/usr.bin/xlint/lint1/d_c99_bool_strict_syshdr.c

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



CVS commit: src

2022-05-20 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri May 20 19:34:23 UTC 2022

Modified Files:
src/sys/arch/arm/include: armreg.h
src/sys/arch/powerpc/powerpc: powerpc_machdep.c
src/sys/arch/sparc64/dev: ffbreg.h
src/sys/arch/sun3/dev: fd.c
src/sys/coda: coda_namecache.c
src/sys/compat/linux/common: linux_emuldata.h
src/sys/dev/ic: ds1687reg.h nec7210reg.h
src/sys/dev/isa: if_elreg.h
src/usr.sbin/syslogd: syslogd.c

Log Message:
s/auxillary/auxiliary/ in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.134 -r1.135 src/sys/arch/arm/include/armreg.h
cvs rdiff -u -r1.84 -r1.85 src/sys/arch/powerpc/powerpc/powerpc_machdep.c
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/sparc64/dev/ffbreg.h
cvs rdiff -u -r1.86 -r1.87 src/sys/arch/sun3/dev/fd.c
cvs rdiff -u -r1.27 -r1.28 src/sys/coda/coda_namecache.c
cvs rdiff -u -r1.19 -r1.20 src/sys/compat/linux/common/linux_emuldata.h
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/ic/ds1687reg.h
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/ic/nec7210reg.h
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/isa/if_elreg.h
cvs rdiff -u -r1.138 -r1.139 src/usr.sbin/syslogd/syslogd.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/include/armreg.h
diff -u src/sys/arch/arm/include/armreg.h:1.134 src/sys/arch/arm/include/armreg.h:1.135
--- src/sys/arch/arm/include/armreg.h:1.134	Sat Nov 27 08:25:18 2021
+++ src/sys/arch/arm/include/armreg.h	Fri May 20 19:34:22 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: armreg.h,v 1.134 2021/11/27 08:25:18 skrll Exp $	*/
+/*	$NetBSD: armreg.h,v 1.135 2022/05/20 19:34:22 andvar Exp $	*/
 
 /*
  * Copyright (c) 1998, 2001 Ben Harris
@@ -270,7 +270,7 @@
 #define	MPCORE_AUXCTL_EX	0x0010 /* exclusive L1/L2 cache */
 #define	MPCORE_AUXCTL_SA	0x0020 /* SMP/AMP */
 
-/* Marvell PJ4B Auxillary Control Register (CP15.0.R1.c0.1) */
+/* Marvell PJ4B Auxiliary Control Register (CP15.0.R1.c0.1) */
 #define PJ4B_AUXCTL_FW		__BIT(0)   /* Cache and TLB updates broadcast */
 #define PJ4B_AUXCTL_SMPNAMP	__BIT(6)   /* 0 = AMP, 1 = SMP */
 #define PJ4B_AUXCTL_L1PARITY	__BIT(9)   /* L1 parity checking */

Index: src/sys/arch/powerpc/powerpc/powerpc_machdep.c
diff -u src/sys/arch/powerpc/powerpc/powerpc_machdep.c:1.84 src/sys/arch/powerpc/powerpc/powerpc_machdep.c:1.85
--- src/sys/arch/powerpc/powerpc/powerpc_machdep.c:1.84	Tue May  3 20:52:31 2022
+++ src/sys/arch/powerpc/powerpc/powerpc_machdep.c	Fri May 20 19:34:22 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: powerpc_machdep.c,v 1.84 2022/05/03 20:52:31 andvar Exp $	*/
+/*	$NetBSD: powerpc_machdep.c,v 1.85 2022/05/20 19:34:22 andvar Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: powerpc_machdep.c,v 1.84 2022/05/03 20:52:31 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: powerpc_machdep.c,v 1.85 2022/05/20 19:34:22 andvar Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_altivec.h"
@@ -139,7 +139,7 @@ setregs(struct lwp *l, struct exec_packa
 	tf->tf_fixreg[3] = arginfo.ps_nargvstr;
 	tf->tf_fixreg[4] = (register_t)arginfo.ps_argvstr;
 	tf->tf_fixreg[5] = (register_t)arginfo.ps_envstr;
-	tf->tf_fixreg[6] = 0;			/* auxillary vector */
+	tf->tf_fixreg[6] = 0;			/* auxiliary vector */
 	tf->tf_fixreg[7] = 0;			/* termination vector */
 	tf->tf_fixreg[8] = p->p_psstrp;		/* NetBSD extension */
 

Index: src/sys/arch/sparc64/dev/ffbreg.h
diff -u src/sys/arch/sparc64/dev/ffbreg.h:1.11 src/sys/arch/sparc64/dev/ffbreg.h:1.12
--- src/sys/arch/sparc64/dev/ffbreg.h:1.11	Thu Aug  9 00:48:06 2012
+++ src/sys/arch/sparc64/dev/ffbreg.h	Fri May 20 19:34:22 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: ffbreg.h,v 1.11 2012/08/09 00:48:06 macallan Exp $	*/
+/*	$NetBSD: ffbreg.h,v 1.12 2022/05/20 19:34:22 andvar Exp $	*/
 /*	$OpenBSD: creatorreg.h,v 1.5 2002/07/29 06:21:45 jason Exp $	*/
 
 /*
@@ -187,7 +187,7 @@
 #define	FFB_FBC_XPMASK		0x294	/* X PlaneMask */
 #define	FFB_FBC_YPMASK		0x298
 #define	FFB_FBC_ZPMASK		0x29c
-#define	FFB_FBC_CLIP0MIN	0x2a0	/* Auxilliary Viewport Clips */
+#define	FFB_FBC_CLIP0MIN	0x2a0	/* Auxiliary Viewport Clips */
 #define	FFB_FBC_CLIP0MAX	0x2a4
 #define	FFB_FBC_CLIP1MIN	0x2a8
 #define	FFB_FBC_CLIP1MAX	0x2ac

Index: src/sys/arch/sun3/dev/fd.c
diff -u src/sys/arch/sun3/dev/fd.c:1.86 src/sys/arch/sun3/dev/fd.c:1.87
--- src/sys/arch/sun3/dev/fd.c:1.86	Sat Aug  7 16:19:06 2021
+++ src/sys/arch/sun3/dev/fd.c	Fri May 20 19:34:22 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: fd.c,v 1.86 2021/08/07 16:19:06 thorpej Exp $	*/
+/*	$NetBSD: fd.c,v 1.87 2022/05/20 19:34:22 andvar Exp $	*/
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -72,7 +72,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.86 2021/08/07 16:19:06 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.87 2022/05/20 19:34:22 andvar Exp $");
 
 #include "opt_ddb.h"
 
@@ -340,7 +340,7 @@ static void	

CVS commit: src

2022-05-20 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri May 20 19:34:23 UTC 2022

Modified Files:
src/sys/arch/arm/include: armreg.h
src/sys/arch/powerpc/powerpc: powerpc_machdep.c
src/sys/arch/sparc64/dev: ffbreg.h
src/sys/arch/sun3/dev: fd.c
src/sys/coda: coda_namecache.c
src/sys/compat/linux/common: linux_emuldata.h
src/sys/dev/ic: ds1687reg.h nec7210reg.h
src/sys/dev/isa: if_elreg.h
src/usr.sbin/syslogd: syslogd.c

Log Message:
s/auxillary/auxiliary/ in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.134 -r1.135 src/sys/arch/arm/include/armreg.h
cvs rdiff -u -r1.84 -r1.85 src/sys/arch/powerpc/powerpc/powerpc_machdep.c
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/sparc64/dev/ffbreg.h
cvs rdiff -u -r1.86 -r1.87 src/sys/arch/sun3/dev/fd.c
cvs rdiff -u -r1.27 -r1.28 src/sys/coda/coda_namecache.c
cvs rdiff -u -r1.19 -r1.20 src/sys/compat/linux/common/linux_emuldata.h
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/ic/ds1687reg.h
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/ic/nec7210reg.h
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/isa/if_elreg.h
cvs rdiff -u -r1.138 -r1.139 src/usr.sbin/syslogd/syslogd.c

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



CVS commit: src/games/gomoku

2022-05-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Fri May 20 19:30:17 UTC 2022

Modified Files:
src/games/gomoku: gomoku.h pickmove.c

Log Message:
gomoku: fix spelling and grammar in comments


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/games/gomoku/gomoku.h
cvs rdiff -u -r1.38 -r1.39 src/games/gomoku/pickmove.c

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

Modified files:

Index: src/games/gomoku/gomoku.h
diff -u src/games/gomoku/gomoku.h:1.30 src/games/gomoku/gomoku.h:1.31
--- src/games/gomoku/gomoku.h:1.30	Thu May 19 23:12:40 2022
+++ src/games/gomoku/gomoku.h	Fri May 20 19:30:17 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: gomoku.h,v 1.30 2022/05/19 23:12:40 rillig Exp $	*/
+/*	$NetBSD: gomoku.h,v 1.31 2022/05/20 19:30:17 rillig Exp $	*/
 
 /*
  * Copyright (c) 1994
@@ -71,7 +71,7 @@
 
 /*
  * A 'frame' is a group of five or six contiguous board locations.
- * An open ended frame is one with spaces on both ends; otherwise, its closed.
+ * An open-ended frame is one with spaces on both ends; otherwise, its closed.
  * A 'combo' is a group of intersecting frames and consists of two numbers:
  * 'A' is the number of moves to make the combo non-blockable.
  * 'B' is the minimum number of moves needed to win once it can't be blocked.
@@ -111,7 +111,7 @@
  * Different colors,  is the combo for the player with the next move:
  *	 = A2 <= 1 && (A1 > 1 || A2 + B2 < A1 + B1) ?  : 
  *	We want to block only if we have to (i.e., if they are one move away
- *	from completing a force and we don't have a force that we can
+ *	from completing a force, and we don't have a force that we can
  *	complete which takes fewer or the same number of moves to win).
  */
 
@@ -161,8 +161,8 @@ struct combostr {
 };
 
 /* flag values for c_flags */
-#define C_OPEN_0	0x01		/* link[0] is an open ended frame */
-#define C_OPEN_1	0x02		/* link[1] is an open ended frame */
+#define C_OPEN_0	0x01		/* link[0] is an open-ended frame */
+#define C_OPEN_1	0x02		/* link[1] is an open-ended frame */
 #define C_LOOP		0x04		/* link[1] intersects previous frame */
 
 /*

Index: src/games/gomoku/pickmove.c
diff -u src/games/gomoku/pickmove.c:1.38 src/games/gomoku/pickmove.c:1.39
--- src/games/gomoku/pickmove.c:1.38	Thu May 19 23:12:40 2022
+++ src/games/gomoku/pickmove.c	Fri May 20 19:30:17 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: pickmove.c,v 1.38 2022/05/19 23:12:40 rillig Exp $	*/
+/*	$NetBSD: pickmove.c,v 1.39 2022/05/20 19:30:17 rillig Exp $	*/
 
 /*
  * Copyright (c) 1994
@@ -34,7 +34,7 @@
 
 #include 
 /*	@(#)pickmove.c	8.2 (Berkeley) 5/3/95	*/
-__RCSID("$NetBSD: pickmove.c,v 1.38 2022/05/19 23:12:40 rillig Exp $");
+__RCSID("$NetBSD: pickmove.c,v 1.39 2022/05/20 19:30:17 rillig Exp $");
 
 #include 
 #include 
@@ -174,7 +174,7 @@ pickmove(int us)
 	}
 	/*
 	 * Block their combo only if we have to (i.e., if they are one move
-	 * away from completing a force and we don't have a force that
+	 * away from completing a force, and we don't have a force that
 	 * we can complete which takes fewer moves to win).
 	 */
 	if (Tcp->c.a <= 1 && (Ocp->c.a > 1 ||
@@ -269,7 +269,7 @@ scanframes(int color)
 		d = dd[r];
 		if (cp->c.b != 0) {
 			/*
-			 * Since this is the first spot of an open ended
+			 * Since this is the first spot of an open-ended
 			 * frame, we treat it as a closed frame.
 			 */
 			cb.c.a = cp->c.a + 1;
@@ -589,7 +589,7 @@ addframes(int level)
 			fcb.s = 0x200;
 
 		/*
-		 * If this is an open ended frame, use
+		 * If this is an open-ended frame, use
 		 * the combo value with the end closed.
 		 */
 		if (fsp->s_occ == EMPTY) {
@@ -654,7 +654,7 @@ makecombo(struct combostr *ocbp, struct 
 	/*
 	 * XXX: when I made functions static gcc started warning about
 	 * some members of vertices[0] maybe being used uninitialized.
-	 * For now I'm just going to clear it rather than wade through
+	 * For now, I'm just going to clear it rather than wade through
 	 * the logic to find out whether gcc or the code is wrong. I
 	 * wouldn't be surprised if it were the code though. - dholland
 	 */
@@ -1113,7 +1113,7 @@ checkframes(struct combostr *cbp, struct
 return -1;
 			/*
 			 * If this is not the spot we are attaching
-			 * 'fcbp' to and it is a reasonable intersection
+			 * 'fcbp' to, and it is a reasonable intersection
 			 * spot, then there might be a loop.
 			 */
 			n = ip[tcbp - frames];
@@ -1125,8 +1125,8 @@ checkframes(struct combostr *cbp, struct
 	return -1;
 /*
  * Check to be sure the intersection is not
- * one of the end points if it is an open
- * ended frame.
+ * one of the end points if it is an
+ * open-ended frame.
  */
 if ((flags & C_OPEN_1) != 0 &&
 (n == tcbp->c_vertex ||
@@ -1161,7 +1161,7 @@ checkframes(struct combostr *cbp, struct
 			return -1;
 		/*
 		 * If this is not the spot we are attaching
-		 * 'fcbp' to and it is a reasonable intersection
+		 * 'fcbp' to, 

CVS commit: src/games/gomoku

2022-05-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Fri May 20 19:30:17 UTC 2022

Modified Files:
src/games/gomoku: gomoku.h pickmove.c

Log Message:
gomoku: fix spelling and grammar in comments


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/games/gomoku/gomoku.h
cvs rdiff -u -r1.38 -r1.39 src/games/gomoku/pickmove.c

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



CVS commit: src/etc/etc.evbarm

2022-05-20 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Fri May 20 16:12:34 UTC 2022

Modified Files:
src/etc/etc.evbarm: Makefile.inc

Log Message:
Build OPENBLOCKS_A6 kernel for evbarmv5-e[bl].

It works --- except for:

- mvsata(4) problems (already reported repeatedly)
- NFS root with mvgbe(4) is weird; the system eventually locks up

Yes, we need to fix them...


To generate a diff of this commit:
cvs rdiff -u -r1.125 -r1.126 src/etc/etc.evbarm/Makefile.inc

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

Modified files:

Index: src/etc/etc.evbarm/Makefile.inc
diff -u src/etc/etc.evbarm/Makefile.inc:1.125 src/etc/etc.evbarm/Makefile.inc:1.126
--- src/etc/etc.evbarm/Makefile.inc:1.125	Mon Aug 30 00:14:45 2021
+++ src/etc/etc.evbarm/Makefile.inc	Fri May 20 16:12:34 2022
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.125 2021/08/30 00:14:45 rin Exp $
+#	$NetBSD: Makefile.inc,v 1.126 2022/05/20 16:12:34 rin Exp $
 #
 #	etc.evbarm/Makefile.inc -- evbarm-specific etc Makefile targets
 #
@@ -21,6 +21,7 @@ EVBARM_BOARDS.xscale+=		ADI_BRH
 KERNEL_SETS.xscale+=		NSLU2
 
 EVBARM_BOARDS.armv5t+=		KUROBOX_PRO
+KERNEL_SETS.armv5t+=		OPENBLOCKS_A6
 # Other marvell-based machines may also work but not tested yet.
 
 EVBARM_BOARDS.armv6+=		RPI
@@ -66,7 +67,7 @@ EVBARM_BOARDS.armv5t+=		KUROBOX_PRO
 #EVBARM_BOARDS.armv5t+=		MARVELL_NAS
 #EVBARM_BOARDS.armv5t+=		MMNET_GENERIC
 EVBARM_BOARDS.armv5t+=		MV2120
-#EVBARM_BOARDS.armv5t+=		OPENBLOCKS_A6
+KERNEL_SETS.armv5t+=		OPENBLOCKS_A6
 EVBARM_BOARDS.armv5t+=		OPENRD
 #EVBARM_BOARDS.armv5t+=		OSK5912
 EVBARM_BOARDS.armv5t+=		SHEEVAPLUG



CVS commit: src/etc/etc.evbarm

2022-05-20 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Fri May 20 16:12:34 UTC 2022

Modified Files:
src/etc/etc.evbarm: Makefile.inc

Log Message:
Build OPENBLOCKS_A6 kernel for evbarmv5-e[bl].

It works --- except for:

- mvsata(4) problems (already reported repeatedly)
- NFS root with mvgbe(4) is weird; the system eventually locks up

Yes, we need to fix them...


To generate a diff of this commit:
cvs rdiff -u -r1.125 -r1.126 src/etc/etc.evbarm/Makefile.inc

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

2022-05-20 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Fri May 20 15:11:07 UTC 2022

Modified Files:
src/sys/arch/evbarm/marvell: marvell_start.S

Log Message:
Hmm, fix typo in comments again...


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/evbarm/marvell/marvell_start.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/evbarm/marvell/marvell_start.S
diff -u src/sys/arch/evbarm/marvell/marvell_start.S:1.13 src/sys/arch/evbarm/marvell/marvell_start.S:1.14
--- src/sys/arch/evbarm/marvell/marvell_start.S:1.13	Fri May 20 15:09:15 2022
+++ src/sys/arch/evbarm/marvell/marvell_start.S	Fri May 20 15:11:07 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: marvell_start.S,v 1.13 2022/05/20 15:09:15 rin Exp $ */
+/*	$NetBSD: marvell_start.S,v 1.14 2022/05/20 15:11:07 rin Exp $ */
 /*
  * Copyright (C) 2005, 2006 WIDE Project and SOUM Corporation.
  * All rights reserved.
@@ -66,7 +66,7 @@
 #include 
 #include "assym.h"
 
-RCSID("$NetBSD: marvell_start.S,v 1.13 2022/05/20 15:09:15 rin Exp $")
+RCSID("$NetBSD: marvell_start.S,v 1.14 2022/05/20 15:11:07 rin Exp $")
 
 #ifndef SDRAM_START
 #define SDRAM_START	0x
@@ -116,9 +116,9 @@ _C_LABEL(marvell_start):
 	 * For now, disable L2 unconditionally ifdef CPU_SHEEVA.
 	 * Not working for older CPUs.
 	 */
-	.word	0x115f3fee	/* mrc r15, 1, r5, c15, c1, 0 */
+	.word	0x115f3fee	/* mrc p15, 1, r5, c15, c1, 0 */
 	.word	0x0155c5e3	/* bic r5, r5, #0x40 */
-	.word	0x115f2fee	/* mcr r15, 1, r5, c15, c1, 0 */
+	.word	0x115f2fee	/* mcr p15, 1, r5, c15, c1, 0 */
 
 	/* Flush prefetch buffer. */
 	.word	0xa0e1	/* nop */



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

2022-05-20 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Fri May 20 15:11:07 UTC 2022

Modified Files:
src/sys/arch/evbarm/marvell: marvell_start.S

Log Message:
Hmm, fix typo in comments again...


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/evbarm/marvell/marvell_start.S

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

2022-05-20 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Fri May 20 15:09:15 UTC 2022

Modified Files:
src/sys/arch/evbarm/marvell: marvell_start.S

Log Message:
Fix typo for the previous. No binary changes.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/evbarm/marvell/marvell_start.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/evbarm/marvell/marvell_start.S
diff -u src/sys/arch/evbarm/marvell/marvell_start.S:1.12 src/sys/arch/evbarm/marvell/marvell_start.S:1.13
--- src/sys/arch/evbarm/marvell/marvell_start.S:1.12	Fri May 20 15:04:15 2022
+++ src/sys/arch/evbarm/marvell/marvell_start.S	Fri May 20 15:09:15 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: marvell_start.S,v 1.12 2022/05/20 15:04:15 rin Exp $ */
+/*	$NetBSD: marvell_start.S,v 1.13 2022/05/20 15:09:15 rin Exp $ */
 /*
  * Copyright (C) 2005, 2006 WIDE Project and SOUM Corporation.
  * All rights reserved.
@@ -66,7 +66,7 @@
 #include 
 #include "assym.h"
 
-RCSID("$NetBSD: marvell_start.S,v 1.12 2022/05/20 15:04:15 rin Exp $")
+RCSID("$NetBSD: marvell_start.S,v 1.13 2022/05/20 15:09:15 rin Exp $")
 
 #ifndef SDRAM_START
 #define SDRAM_START	0x
@@ -116,9 +116,9 @@ _C_LABEL(marvell_start):
 	 * For now, disable L2 unconditionally ifdef CPU_SHEEVA.
 	 * Not working for older CPUs.
 	 */
-	.word	0x115f3fee	/* mrc r15, 1, r5, r15, r1, 0 */
+	.word	0x115f3fee	/* mrc r15, 1, r5, c15, c1, 0 */
 	.word	0x0155c5e3	/* bic r5, r5, #0x40 */
-	.word	0x115f2fee	/* mcr r15, 1, r5, r15, r1, 0 */
+	.word	0x115f2fee	/* mcr r15, 1, r5, c15, c1, 0 */
 
 	/* Flush prefetch buffer. */
 	.word	0xa0e1	/* nop */



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

2022-05-20 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Fri May 20 15:09:15 UTC 2022

Modified Files:
src/sys/arch/evbarm/marvell: marvell_start.S

Log Message:
Fix typo for the previous. No binary changes.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/evbarm/marvell/marvell_start.S

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

2022-05-20 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Fri May 20 15:04:15 UTC 2022

Modified Files:
src/sys/arch/evbarm/marvell: marvell_start.S

Log Message:
Initial support for armv5eb on Sheeva.

Disable L2 cache for Sheeva before switch to big-endian mode.

Note that we need to encode this code sequence in little endian,
as u-boot starts kernel in little-endian mode.

XXX
At the moment, this code is unconditionally enabled if CPU_SHEEVA
option is enabled; it does not work for older CPUs.

It would be better to determine CPU type automatically as done for
little-endian variant, but it is too ugly to hand-assemble for
the opposite byte-order.

It may be nice if we have tools something like:

$ nbarm-elf-bswap -s marvell_start -e Lswitch_endian_done netbsd

Tested for OPENBLOCKS_A6 (for CPU_SHEEVA), as well as KUROBOX_PRO
(for !CPU_SHEEVA).


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/evbarm/marvell/marvell_start.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/evbarm/marvell/marvell_start.S
diff -u src/sys/arch/evbarm/marvell/marvell_start.S:1.11 src/sys/arch/evbarm/marvell/marvell_start.S:1.12
--- src/sys/arch/evbarm/marvell/marvell_start.S:1.11	Mon Aug 30 00:00:02 2021
+++ src/sys/arch/evbarm/marvell/marvell_start.S	Fri May 20 15:04:15 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: marvell_start.S,v 1.11 2021/08/30 00:00:02 rin Exp $ */
+/*	$NetBSD: marvell_start.S,v 1.12 2022/05/20 15:04:15 rin Exp $ */
 /*
  * Copyright (C) 2005, 2006 WIDE Project and SOUM Corporation.
  * All rights reserved.
@@ -66,7 +66,7 @@
 #include 
 #include "assym.h"
 
-RCSID("$NetBSD: marvell_start.S,v 1.11 2021/08/30 00:00:02 rin Exp $")
+RCSID("$NetBSD: marvell_start.S,v 1.12 2022/05/20 15:04:15 rin Exp $")
 
 #ifndef SDRAM_START
 #define SDRAM_START	0x
@@ -110,6 +110,22 @@ _C_LABEL(marvell_start):
 	 * encode first few instructions in the opposite byte order.
 	 */
 
+#ifdef CPU_SHEEVA
+	/*
+	 * XXX
+	 * For now, disable L2 unconditionally ifdef CPU_SHEEVA.
+	 * Not working for older CPUs.
+	 */
+	.word	0x115f3fee	/* mrc r15, 1, r5, r15, r1, 0 */
+	.word	0x0155c5e3	/* bic r5, r5, #0x40 */
+	.word	0x115f2fee	/* mcr r15, 1, r5, r15, r1, 0 */
+
+	/* Flush prefetch buffer. */
+	.word	0xa0e1	/* nop */
+	.word	0xa0e1	/* nop */
+	.word	0xa0e1	/* nop */
+#endif
+
 	/* Turn on CPU_CONTROL_BEND_ENABLE bit. */
 	.word	0x104f11ee	/* mrc p15, 0, r4, c1, c0, 0 */
 	.word	0x804084e3	/* orr r4, r4, #CPU_CONTROL_BEND_ENABLE */



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

2022-05-20 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Fri May 20 15:04:15 UTC 2022

Modified Files:
src/sys/arch/evbarm/marvell: marvell_start.S

Log Message:
Initial support for armv5eb on Sheeva.

Disable L2 cache for Sheeva before switch to big-endian mode.

Note that we need to encode this code sequence in little endian,
as u-boot starts kernel in little-endian mode.

XXX
At the moment, this code is unconditionally enabled if CPU_SHEEVA
option is enabled; it does not work for older CPUs.

It would be better to determine CPU type automatically as done for
little-endian variant, but it is too ugly to hand-assemble for
the opposite byte-order.

It may be nice if we have tools something like:

$ nbarm-elf-bswap -s marvell_start -e Lswitch_endian_done netbsd

Tested for OPENBLOCKS_A6 (for CPU_SHEEVA), as well as KUROBOX_PRO
(for !CPU_SHEEVA).


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/evbarm/marvell/marvell_start.S

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

2022-05-20 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Fri May 20 14:42:01 UTC 2022

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

Log Message:
Comment out most of USB devices. Fix boot failure since netbsd-8.

There is an upper limit of kernel size for u-boot, somewhere at ~6MB.
If kernel exceeds this limit, work area of u-boot gets broken.


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

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/OPENBLOCKS_A6
diff -u src/sys/arch/evbarm/conf/OPENBLOCKS_A6:1.43 src/sys/arch/evbarm/conf/OPENBLOCKS_A6:1.44
--- src/sys/arch/evbarm/conf/OPENBLOCKS_A6:1.43	Wed Jan 20 01:20:26 2021
+++ src/sys/arch/evbarm/conf/OPENBLOCKS_A6	Fri May 20 14:42:01 2022
@@ -1,4 +1,4 @@
-#	$NetBSD: OPENBLOCKS_A6,v 1.43 2021/01/20 01:20:26 nia Exp $
+#	$NetBSD: OPENBLOCKS_A6,v 1.44 2022/05/20 14:42:01 rin Exp $
 #
 #	OPENBLOCKS_A6 -- Plat'Home. OpenBlockS A6 kernel
 #
@@ -152,10 +152,10 @@ mvgbe*	at mvgbec? port ? irq ?
 
 # MII/PHY support
 makphy* at mii? phy ?
-rgephy* at mii? phy ?			# Realtek 8169S/8110S/8211 PHYs
-rlphy*	at mii? phy ?			# Realtek 8139/8201L PHYs
-ukphy*	at mii? phy ?			# generic unknown PHYs
-urlphy* at mii? phy ?			# Realtek RTL8150L internal PHYs
+#rgephy* at mii? phy ?			# Realtek 8169S/8110S/8211 PHYs
+#rlphy*	at mii? phy ?			# Realtek 8139/8201L PHYs
+#ukphy*	at mii? phy ?			# generic unknown PHYs
+#urlphy* at mii? phy ?			# Realtek RTL8150L internal PHYs
 
 # On-chip USB 2.0 Interface
 ehci*	at mvsoc? offset ? irq ?
@@ -210,100 +210,100 @@ uhub*	at uhub? port ?
 uhidev* at uhub? port ? configuration ? interface ?
 
 # USB TEMPer and TEMPerHUM
-uthum*	at uhidev? reportid ?
+#uthum*	at uhidev? reportid ?
 
 # USB serial adapter
-ucycom* at uhidev? reportid ?
+#ucycom* at uhidev? reportid ?
 
 # USB Modem
-umodem* at uhub? port ? configuration ?
-ucom*	at umodem?
+#umodem* at uhub? port ? configuration ?
+#ucom*	at umodem?
 
 # Option N.V. Wireless WAN modems
-uhso*	at uhub? port ? configuration ?
+#uhso*	at uhub? port ? configuration ?
 
 # USB Mass Storage
 umass*	at uhub? port ? configuration ? interface ?
 scsibus* at scsi?
 sd*	at scsibus? target ? lun ?	# SCSI disk drives
-cd*	at scsibus? target ? lun ?	# SCSI CD-ROM drives
+#cd*	at scsibus? target ? lun ?	# SCSI CD-ROM drives
 
 # USB IrDA
 # USB-IrDA bridge spec
-uirda* at uhub? port ? configuration ? interface ?
-irframe* at uirda?
+#uirda* at uhub? port ? configuration ? interface ?
+#irframe* at uirda?
 
-stuirda* at uhub? port ? configuration ? interface ?
-irframe* at stuirda?
+#stuirda* at uhub? port ? configuration ? interface ?
+#irframe* at stuirda?
 
 # SigmaTel STIr4200 USB/IrDA Bridge
-ustir* at uhub? port ?
-irframe* at ustir?
+#ustir* at uhub? port ?
+#irframe* at ustir?
 
 # USB Ethernet adapters
-aue*	at uhub? port ?		# ADMtek AN986 Pegasus based adapters
-axe*	at uhub? port ?		# ASIX AX88172 based adapters
-cdce*	at uhub? port ?		# CDC, Ethernet Networking Control Model
-cue*	at uhub? port ?		# CATC USB-EL1201A based adapters
-kue*	at uhub? port ?		# Kawasaki LSI KL5KUSB101B based adapters
-mue*	at uhub? port ?		# Microchip LAN75xx/LAN78xx based adapters
-udav*	at uhub? port ?		# Davicom DM9601 based adapters
-ure*	at uhub? port ?		# Realtek RTL8152/RTL8153 based adapters
-url*	at uhub? port ?		# Realtek RTL8150L based adapters
+#aue*	at uhub? port ?		# ADMtek AN986 Pegasus based adapters
+#axe*	at uhub? port ?		# ASIX AX88172 based adapters
+#cdce*	at uhub? port ?		# CDC, Ethernet Networking Control Model
+#cue*	at uhub? port ?		# CATC USB-EL1201A based adapters
+#kue*	at uhub? port ?		# Kawasaki LSI KL5KUSB101B based adapters
+#mue*	at uhub? port ?		# Microchip LAN75xx/LAN78xx based adapters
+#udav*	at uhub? port ?		# Davicom DM9601 based adapters
+#ure*	at uhub? port ?		# Realtek RTL8152/RTL8153 based adapters
+#url*	at uhub? port ?		# Realtek RTL8150L based adapters
 
 # USB 802.11 adapters
-atu*	at uhub? port ?		# Atmel AT76C50XX based adapters
-ural*	at uhub? port ?		# Ralink Technology RT2500USB 802.11a/b/g
-rum*	at uhub? port ?		# Ralink Technology RT2501/RT2601 802.11a/b/g
-zyd*	at uhub? port ?		# Zydas ZD1211
+#atu*	at uhub? port ?		# Atmel AT76C50XX based adapters
+#ural*	at uhub? port ?		# Ralink Technology RT2500USB 802.11a/b/g
+#rum*	at uhub? port ?		# Ralink Technology RT2501/RT2601 802.11a/b/g
+#zyd*	at uhub? port ?		# Zydas ZD1211
 
 # Prolific PL2301/PL2302 host-to-host adapter
-upl*	at uhub? port ?
+#upl*	at uhub? port ?
 
 # Serial adapters
-ubsa*	at uhub? port ?		# Belkin serial adapter
-ucom*	at ubsa? portno ?
+#ubsa*	at uhub? port ?		# Belkin serial adapter
+#ucom*	at ubsa? portno ?
 
-uchcom* at uhub? port ? 	# WinChipHead CH341/CH340 serial adapter
-ucom*	at uchcom? portno ?
+#uchcom* at uhub? port ? 	# WinChipHead CH341/CH340 serial adapter
+#ucom*	at uchcom? portno ?
 
-uftdi*	at 

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

2022-05-20 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Fri May 20 14:42:01 UTC 2022

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

Log Message:
Comment out most of USB devices. Fix boot failure since netbsd-8.

There is an upper limit of kernel size for u-boot, somewhere at ~6MB.
If kernel exceeds this limit, work area of u-boot gets broken.


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

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



CVS commit: src/sys

2022-05-20 Thread NONAKA Kimihiro
Module Name:src
Committed By:   nonaka
Date:   Fri May 20 13:55:17 UTC 2022

Modified Files:
src/sys/arch/x86/x86: hyperv.c
src/sys/dev/hyperv: files.hyperv hyperv_common.c hypervreg.h
hypervvar.h if_hvn.c if_hvnreg.h vmbus.c vmbusvar.h

Log Message:
Improve Hyper-V support.

vmbus(4):
 - Added support for multichannel.

hvn(4):
 - Added support for multichannel.
 - Added support for change MTU.
 - Added support for TX aggregation.
 - Improve VLAN support.
 - Improve checksum offload support.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/x86/x86/hyperv.c
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/hyperv/files.hyperv \
src/sys/dev/hyperv/if_hvnreg.h
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/hyperv/hyperv_common.c \
src/sys/dev/hyperv/hypervvar.h
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/hyperv/hypervreg.h
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/hyperv/if_hvn.c
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/hyperv/vmbus.c
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/hyperv/vmbusvar.h

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



CVS commit: src/bin/ed

2022-05-20 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri May 20 07:47:17 UTC 2022

Modified Files:
src/bin/ed: POSIX

Log Message:
fix some misspellings and remove trailing whitespaces.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/bin/ed/POSIX

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



CVS commit: src/bin/ed

2022-05-20 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri May 20 07:47:17 UTC 2022

Modified Files:
src/bin/ed: POSIX

Log Message:
fix some misspellings and remove trailing whitespaces.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/bin/ed/POSIX

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

Modified files:

Index: src/bin/ed/POSIX
diff -u src/bin/ed/POSIX:1.10 src/bin/ed/POSIX:1.11
--- src/bin/ed/POSIX:1.10	Thu Nov 18 19:16:34 1999
+++ src/bin/ed/POSIX	Fri May 20 07:47:16 2022
@@ -1,4 +1,4 @@
-$NetBSD: POSIX,v 1.10 1999/11/18 19:16:34 kristerw Exp $
+$NetBSD: POSIX,v 1.11 2022/05/20 07:47:16 andvar Exp $
 
 This version of ed(1) is not strictly POSIX compliant, as described in
 the POSIX 1003.2 document.  The following is a summary of the omissions,
@@ -14,8 +14,8 @@ OMISSIONS
 
 3) To support the BSD `s' command (see extension [1] below),
substitution patterns cannot be delimited by numbers or the characters
-   `r', `g' and `p'.  In contrast, POSIX specifies any character expect
-   space or newline can used as a delimiter.
+   `r', `g' and `p'.  In contrast, POSIX specifies any character except
+   space or newline can be used as a delimiter.
 
 EXTENSIONS
 --
@@ -25,11 +25,11 @@ EXTENSIONS
 	ii) `W' for appending text to an existing file,
 	iii) `wq' for exiting after a write,
 	iv) `z' for scrolling through the buffer, and
-	v) BSD line addressing syntax (i.e., `^' and `%')  is recognized.
+	v) BSD line addressing syntax (i.e., `^' and `%') is recognized.
 
 2) If crypt(3) is available, files can be read and written using DES
encryption.  The `x' command prompts the user to enter a key used for
-   encrypting/ decrypting subsequent reads and writes.  If only a newline
+   encrypting/decrypting subsequent reads and writes.  If only a newline
is entered as the key, then encryption is disabled.  Otherwise, a key
is read in the same manner as a password entry.  The key remains in
effect until encryption is disabled.  For more information on the
@@ -77,11 +77,11 @@ DEVIATIONS
 2) Since the behavior of `u' (undo) within a `g' (global) command list is
not specified by POSIX, it follows the behavior of the SunOS ed:
undo forces a global command list to be executed only once, rather than
-   for each line matching a global pattern.  In addtion, each instance of
+   for each line matching a global pattern.  In addition, each instance of
`u' within a global command undoes all previous commands (including
undo's) in the command list.  This seems the best way, since the
alternatives are either too complicated to implement or too confusing
-   to use.  
+   to use.
 
The global/undo combination is useful for masking errors that
would otherwise cause a script to fail.  For instance, an ed script



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

2022-05-20 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Fri May 20 06:59:02 UTC 2022

Modified Files:
src/sys/arch/arm/imx: imxuart.c

Log Message:
Add the character read in as part of imxuart_common_putc into the
readahead buffer

port-arm/45354: no character is put in the read-ahead buffer in a console code 
of arch/arm/imx/imxuart.c


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/arm/imx/imxuart.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/imx/imxuart.c
diff -u src/sys/arch/arm/imx/imxuart.c:1.28 src/sys/arch/arm/imx/imxuart.c:1.29
--- src/sys/arch/arm/imx/imxuart.c:1.28	Fri May 20 06:56:59 2022
+++ src/sys/arch/arm/imx/imxuart.c	Fri May 20 06:59:02 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: imxuart.c,v 1.28 2022/05/20 06:56:59 skrll Exp $ */
+/* $NetBSD: imxuart.c,v 1.29 2022/05/20 06:59:02 skrll Exp $ */
 
 /*
  * Copyright (c) 2009, 2010  Genetec Corporation.  All rights reserved.
@@ -96,7 +96,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: imxuart.c,v 1.28 2022/05/20 06:56:59 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: imxuart.c,v 1.29 2022/05/20 06:59:02 skrll Exp $");
 
 #include "opt_imxuart.h"
 #include "opt_ddb.h"
@@ -1819,7 +1819,6 @@ imxuintr_read(struct imxuart_softc *sc)
 	while (cc > 0) {
 		int cn_trapped = 0;
 
-
 		sc->sc_rbuf[sc->sc_rbuf_in] = rd =
 		bus_space_read_4(iot, ioh, IMX_URXD);
 
@@ -2152,6 +2151,7 @@ imxuart_common_putc(dev_t dev, struct im
 		int __attribute__((__unused__))cn_trapped = 0;
 		cin = bus_space_read_4(iot, ioh, IMX_URXD);
 		cn_check_magic(dev, cin & 0xff, imxuart_cnm_state);
+		imxuart_readahead[imxuart_readahead_in] = cin & 0xff;
 		imxuart_readahead_in = (imxuart_readahead_in + 1) &
 		(READAHEAD_RING_LEN-1);
 	}



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

2022-05-20 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Fri May 20 06:59:02 UTC 2022

Modified Files:
src/sys/arch/arm/imx: imxuart.c

Log Message:
Add the character read in as part of imxuart_common_putc into the
readahead buffer

port-arm/45354: no character is put in the read-ahead buffer in a console code 
of arch/arm/imx/imxuart.c


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/arm/imx/imxuart.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/imx

2022-05-20 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Fri May 20 06:56:59 UTC 2022

Modified Files:
src/sys/arch/arm/imx: imxuart.c

Log Message:
Use a macro.  Part of

port-arm/45354: no character is put in the read-ahead buffer in a console code 
of arch/arm/imx/imxuart.c


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/arm/imx/imxuart.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/imx/imxuart.c
diff -u src/sys/arch/arm/imx/imxuart.c:1.27 src/sys/arch/arm/imx/imxuart.c:1.28
--- src/sys/arch/arm/imx/imxuart.c:1.27	Mon Mar  8 06:23:31 2021
+++ src/sys/arch/arm/imx/imxuart.c	Fri May 20 06:56:59 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: imxuart.c,v 1.27 2021/03/08 06:23:31 mlelstv Exp $ */
+/* $NetBSD: imxuart.c,v 1.28 2022/05/20 06:56:59 skrll Exp $ */
 
 /*
  * Copyright (c) 2009, 2010  Genetec Corporation.  All rights reserved.
@@ -96,7 +96,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: imxuart.c,v 1.27 2021/03/08 06:23:31 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: imxuart.c,v 1.28 2022/05/20 06:56:59 skrll Exp $");
 
 #include "opt_imxuart.h"
 #include "opt_ddb.h"
@@ -2111,8 +2111,7 @@ imxuart_common_getc(dev_t dev, struct im
 	uint32_t usr2;
 
 	/* got a character from reading things earlier */
-	if (imxuart_readahead_in != imxuart_readahead_out) {
-
+	if (!READAHEAD_IS_EMPTY()) {
 		c = imxuart_readahead[imxuart_readahead_out];
 		imxuart_readahead_out = (imxuart_readahead_out + 1) &
 		(READAHEAD_RING_LEN-1);



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

2022-05-20 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Fri May 20 06:56:59 UTC 2022

Modified Files:
src/sys/arch/arm/imx: imxuart.c

Log Message:
Use a macro.  Part of

port-arm/45354: no character is put in the read-ahead buffer in a console code 
of arch/arm/imx/imxuart.c


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/arm/imx/imxuart.c

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