CVS commit: src/lib/libarch/i386

2017-08-12 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sat Aug 12 19:48:28 UTC 2017

Modified Files:
src/lib/libarch/i386: shlib_version

Log Message:
Bump - removal of i386_vm86 and i386_pmc.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libarch/i386/shlib_version

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

Modified files:

Index: src/lib/libarch/i386/shlib_version
diff -u src/lib/libarch/i386/shlib_version:1.6 src/lib/libarch/i386/shlib_version:1.7
--- src/lib/libarch/i386/shlib_version:1.6	Thu Sep 11 19:19:31 2003
+++ src/lib/libarch/i386/shlib_version	Sat Aug 12 19:48:28 2017
@@ -1,5 +1,5 @@
-#	$NetBSD: shlib_version,v 1.6 2003/09/11 19:19:31 christos Exp $
+#	$NetBSD: shlib_version,v 1.7 2017/08/12 19:48:28 maxv Exp $
 #	Remember to update distrib/sets/lists/base/md.i386 when changing
 #
-major=1
+major=2
 minor=0



CVS commit: src/lib/libarch/i386

2017-08-06 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Aug  6 08:00:40 UTC 2017

Modified Files:
src/lib/libarch/i386: i386_pmc_info.2

Log Message:
Deprecate.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/libarch/i386/i386_pmc_info.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/libarch/i386/i386_pmc_info.2
diff -u src/lib/libarch/i386/i386_pmc_info.2:1.11 src/lib/libarch/i386/i386_pmc_info.2:1.12
--- src/lib/libarch/i386/i386_pmc_info.2:1.11	Wed Apr 30 13:10:50 2008
+++ src/lib/libarch/i386/i386_pmc_info.2	Sun Aug  6 08:00:40 2017
@@ -1,4 +1,4 @@
-.\" $NetBSD: i386_pmc_info.2,v 1.11 2008/04/30 13:10:50 martin Exp $
+.\" $NetBSD: i386_pmc_info.2,v 1.12 2017/08/06 08:00:40 maxv Exp $
 .\"
 .\" Copyright (c) 2001 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd November 10, 2001
+.Dd August 6, 2017
 .Dt I386_PMC_INFO 2 i386
 .Os
 .Sh NAME
@@ -48,110 +48,8 @@
 .Ft int
 .Fn i386_pmc_read "struct i386_pmc_read_args *ra"
 .Sh DESCRIPTION
-These functions provide an interface to the CPU performance counters
-on the 586-class and 686-class processors.
-.Pp
-.Fn i386_pmc_info
-will return information about the available CPU counters.
-The information is returned in
-.Fa ia
-having the following structure:
-.Bd -literal
-struct i386_pmc_info_args {
-int type;
-int flags;
-};
-.Ed
-.Pp
-The
-.Em type
-member describes the class of performance counters available.
-Valid values are:
-.Pp
-.Bl -tag -offset indent -width PMC_INFO_HASTSC -compact
-.It PMC_TYPE_NONE
-No PMC support
-.It PMC_TYPE_I586
-586-class CPUs
-.It PMC_TYPE_I686
-686-class Intel CPUs
-.It PMC_TYPE_K7
-686-class AMD CPUs
-.El
-.Pp
-The
-.Em flags
-member describes additional capabilities of the processor.
-Valid values are:
-.Pp
-.Bl -tag -offset indent -width PMC_INFO_HASTSC -compact
-.It PMC_INFO_HASTSC
-CPU has time-stamp counter
-.El
-.Pp
-.Fn i386_pmc_startstop
-is used to start and stop the measurement of the CPU performance counters.
-The argument
-.Fa ssa
-has the following structure:
-.Bd -literal
-struct i386_pmc_startstop_args {
-int counter;
-uint64_t val;
-uint8_t event;
-uint8_t unit;
-uint8_t compare;
-uint8_t flags;
-};
-.Ed
-.Pp
-The counter specified by the member
-.Em counter
-is started if the member
-.Em flags
-has PMC_SETUP_KERNEL or PMC_SETUP_USER set, otherwise the counter is
-stopped.
-The initial value of the counter is set to
-.Em val .
-Additional values for the
-.Em flags
-member are PMC_SETUP_EDGE and PMC_SETUP_INV.
-The
-.Em event
-member specifies some event written to the control register.
-The
-.Em unit
-member specifies the measurement units.
-The
-.Em compare
-member is a mask for the counter.
-.Pp
-.Fn i386_pmc_read
-will return information about a specific CPU counter measured during
-the last measurement period determined by the calling of
-.Fn i386_pmc_startstop .
-The information is returned in
-.Fa ra
-having the following structure:
-.Bd -literal
-struct i386_pmc_read_args {
-int counter;
-uint64_t val;
-uint64_t time;
-};
-.Ed
-.Pp
-The counter to read should be specified by the
-.Em counter
-member.
-Counters are numbered from 0 to
-.Dv PMC_NCOUNTERS .
-The value of the counter is returned in the
-.Em val
-member.
-The time since epoch, measured in CPU clock cycles, is returned in the
-.Em time
-member.
+These functions used to provide an interface to the CPU performance counters.
+They are now deprecated, and always fail.
 .Sh RETURN VALUES
 Upon successful completion zero is returned, otherwise \-1 is returned
 on failure.



CVS commit: src/lib/libarch/i386

2017-03-08 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Mar  8 16:09:27 UTC 2017

Modified Files:
src/lib/libarch/i386: i386_pmc.c

Log Message:
Deprecate the pmc functions in libi386. The parameters will be updated,
and we are not interested in maintaining this anyway. Now i386's pmc
interface is opaque, which is good.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libarch/i386/i386_pmc.c

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

Modified files:

Index: src/lib/libarch/i386/i386_pmc.c
diff -u src/lib/libarch/i386/i386_pmc.c:1.3 src/lib/libarch/i386/i386_pmc.c:1.4
--- src/lib/libarch/i386/i386_pmc.c:1.3	Wed Sep 13 05:22:12 2000
+++ src/lib/libarch/i386/i386_pmc.c	Wed Mar  8 16:09:27 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: i386_pmc.c,v 1.3 2000/09/13 05:22:12 thorpej Exp $	*/
+/*	$NetBSD: i386_pmc.c,v 1.4 2017/03/08 16:09:27 maxv Exp $	*/
 
 /*-
  * Copyright (c) 2000 Zembu Labs, Inc.
@@ -44,29 +44,17 @@
 int
 i386_pmc_info(struct i386_pmc_info_args *args)
 {
-
-	if (sysarch(I386_PMC_INFO, args) == -1)
-		return (-1);
-
-	return (0);
+	return -1;
 }
 
 int
 i386_pmc_startstop(struct i386_pmc_startstop_args *args)
 {
-
-	if (sysarch(I386_PMC_STARTSTOP, args) == -1)
-		return (-1);
-
-	return (0);
+	return -1;
 }
 
 int
 i386_pmc_read(struct i386_pmc_read_args *args)
 {
-
-	if (sysarch(I386_PMC_READ, args) == -1)
-		return (-1);
-
-	return (0);
+	return -1;
 }



CVS commit: src/lib/libarch/alpha

2017-02-20 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Feb 20 15:23:43 UTC 2017

Modified Files:
src/lib/libarch/alpha: alpha_pci_io.c

Log Message:
Fix -O0 build;  should be included after ".arch ev56" pseudo-op.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/lib/libarch/alpha/alpha_pci_io.c

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

Modified files:

Index: src/lib/libarch/alpha/alpha_pci_io.c
diff -u src/lib/libarch/alpha/alpha_pci_io.c:1.7 src/lib/libarch/alpha/alpha_pci_io.c:1.8
--- src/lib/libarch/alpha/alpha_pci_io.c:1.7	Wed Jan  9 08:49:44 2013
+++ src/lib/libarch/alpha/alpha_pci_io.c	Mon Feb 20 15:23:43 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: alpha_pci_io.c,v 1.7 2013/01/09 08:49:44 he Exp $	*/
+/*	$NetBSD: alpha_pci_io.c,v 1.8 2017/02/20 15:23:43 rin Exp $	*/
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -38,7 +38,6 @@
 #include 
 
 #include 
-#include 
 #include 
 #include 
 
@@ -228,6 +227,7 @@ alpha_pci_io_swiz_outl(bus_addr_t ioaddr
  * these instructions.
  */
 __asm(".arch ev56");
+#include 
 
 uint8_t
 alpha_pci_io_bwx_inb(bus_addr_t ioaddr)



CVS commit: src/lib/libarch/arm

2017-01-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jan 13 18:18:20 UTC 2017

Modified Files:
src/lib/libarch/arm: arm_drain_writebuf.c

Log Message:
fix compilation


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libarch/arm/arm_drain_writebuf.c

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

Modified files:

Index: src/lib/libarch/arm/arm_drain_writebuf.c
diff -u src/lib/libarch/arm/arm_drain_writebuf.c:1.1 src/lib/libarch/arm/arm_drain_writebuf.c:1.2
--- src/lib/libarch/arm/arm_drain_writebuf.c:1.1	Sat Mar 30 01:24:34 2002
+++ src/lib/libarch/arm/arm_drain_writebuf.c	Fri Jan 13 13:18:20 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: arm_drain_writebuf.c,v 1.1 2002/03/30 06:24:34 thorpej Exp $	*/
+/*	$NetBSD: arm_drain_writebuf.c,v 1.2 2017/01/13 18:18:20 christos Exp $	*/
 
 /*
  * Copyright (c) 1997 Mark Brinicombe.
@@ -33,12 +33,13 @@
  */
 
 #include 
+#include 
 #include 
 
 #include 
 
 int
-arm_drain_writebuf()
+arm_drain_writebuf(void)
 {
-	return sysarch(ARM_DRAIN_WRITEBUF, (void *)0);
+	return sysarch(ARM_DRAIN_WRITEBUF, NULL);
 }



CVS commit: src/lib/libarch/x86_64

2017-01-12 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Thu Jan 12 19:02:22 UTC 2017

Modified Files:
src/lib/libarch/x86_64: x86_64_iopl.c

Log Message:
replace old style function declaration


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libarch/x86_64/x86_64_iopl.c

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

Modified files:

Index: src/lib/libarch/x86_64/x86_64_iopl.c
diff -u src/lib/libarch/x86_64/x86_64_iopl.c:1.2 src/lib/libarch/x86_64/x86_64_iopl.c:1.3
--- src/lib/libarch/x86_64/x86_64_iopl.c:1.2	Mon Apr 28 20:22:55 2008
+++ src/lib/libarch/x86_64/x86_64_iopl.c	Thu Jan 12 19:02:22 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: x86_64_iopl.c,v 1.2 2008/04/28 20:22:55 martin Exp $	*/
+/*	$NetBSD: x86_64_iopl.c,v 1.3 2017/01/12 19:02:22 maya Exp $	*/
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -35,8 +35,7 @@
 #include 
 
 int
-x86_64_iopl(iopl)
-	int iopl;
+x86_64_iopl(int iopl)
 {
 	struct x86_64_iopl_args p;
 



CVS commit: src/lib/libarch/sparc/v8

2015-09-22 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Sep 22 13:27:13 UTC 2015

Modified Files:
src/lib/libarch/sparc/v8: sparc_v8.S

Log Message:
Drop .proc. It is ignored by GNU as anyway.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libarch/sparc/v8/sparc_v8.S

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

Modified files:

Index: src/lib/libarch/sparc/v8/sparc_v8.S
diff -u src/lib/libarch/sparc/v8/sparc_v8.S:1.1 src/lib/libarch/sparc/v8/sparc_v8.S:1.2
--- src/lib/libarch/sparc/v8/sparc_v8.S:1.1	Tue Nov 26 14:30:54 2002
+++ src/lib/libarch/sparc/v8/sparc_v8.S	Tue Sep 22 13:27:13 2015
@@ -10,7 +10,6 @@
 	.align 4
 	.global .umul
 	.type	 .umul,@function
-	.proc	016
 
 .umul:
 	!#PROLOGUE# 0
@@ -24,7 +23,6 @@
 	.align 4
 	.global .mul
 	.type	 .mul,@function
-	.proc	04
 .mul:
 	!#PROLOGUE# 0
 	!#PROLOGUE# 1
@@ -37,7 +35,6 @@
 	.align 4
 	.global .udiv
 	.type	 .udiv,@function
-	.proc	016
 .udiv:
 	wr	%g0, 0, %y
 	nop; nop; nop
@@ -50,8 +47,6 @@
 	.align 4
 	.global .div
 	.type	 .div,@function
-	.proc	04
-
 .div:
 	sra	%o0, 31, %g2
 	wr	%g2, 0, %y
@@ -65,7 +60,6 @@
 	.align 4
 	.global .urem
 	.type	 .urem,@function
-	.proc	016
 .urem:
 	wr	%g0, %g0, %y
 	nop; nop; nop
@@ -80,7 +74,6 @@
 	.align 4
 	.global .rem
 	.type	 .rem,@function
-	.proc	04
 .rem:
 	sra	%o0, 31, %g3
 	wr	%g3, 0, %y



CVS commit: src/lib/libarch

2015-06-07 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Mon Jun  8 04:08:30 UTC 2015

Modified Files:
src/lib/libarch: Makefile
src/lib/libarch/i386: Makefile.inc
src/lib/libarch/x86_64: Makefile.inc

Log Message:
Avoid defining MLIBDIR.  Use ${MLIBDIR:Unone} instead.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/lib/libarch/Makefile
cvs rdiff -u -r1.14 -r1.15 src/lib/libarch/i386/Makefile.inc
cvs rdiff -u -r1.4 -r1.5 src/lib/libarch/x86_64/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/lib/libarch/Makefile
diff -u src/lib/libarch/Makefile:1.28 src/lib/libarch/Makefile:1.29
--- src/lib/libarch/Makefile:1.28	Sun Aug 10 23:25:49 2014
+++ src/lib/libarch/Makefile	Mon Jun  8 04:08:30 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.28 2014/08/10 23:25:49 matt Exp $
+#	$NetBSD: Makefile,v 1.29 2015/06/08 04:08:30 matt Exp $
 
 .include bsd.own.mk
 
@@ -18,7 +18,7 @@ LIBC_MACHINE_CPU?=	${MACHINE_CPU}
 
 # Build the library if SRCS is now defined ...
 .if defined(SRCS)
-.if defined(MLIBDIR)  ${MLIBDIR} != none  ${LIBC_MACHINE_CPU} != arm
+.if defined(MLIBDIR)  ${LIBC_MACHINE_CPU} != arm
 LIB=	${MLIBDIR}
 .else
 LIB=	${LIBC_MACHINE_CPU}

Index: src/lib/libarch/i386/Makefile.inc
diff -u src/lib/libarch/i386/Makefile.inc:1.14 src/lib/libarch/i386/Makefile.inc:1.15
--- src/lib/libarch/i386/Makefile.inc:1.14	Sun Dec 13 08:25:20 2009
+++ src/lib/libarch/i386/Makefile.inc	Mon Jun  8 04:08:30 2015
@@ -1,8 +1,6 @@
-#	$NetBSD: Makefile.inc,v 1.14 2009/12/13 08:25:20 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.15 2015/06/08 04:08:30 matt Exp $
 
-MLIBDIR?=	none
-
-.if (${MACHINE_ARCH} == i386 || ${MLIBDIR} == i386)
+.if (${MACHINE_ARCH} == i386 || ${MLIBDIR:Unone} == i386)
 SRCS+=	i386_get_ldt.c i386_set_ldt.c \
 	i386_iopl.c i386_get_ioperm.c i386_set_ioperm.c \
 	i386_vm86.c i386_pmc.c i386_mtrr.c

Index: src/lib/libarch/x86_64/Makefile.inc
diff -u src/lib/libarch/x86_64/Makefile.inc:1.4 src/lib/libarch/x86_64/Makefile.inc:1.5
--- src/lib/libarch/x86_64/Makefile.inc:1.4	Sun Dec 13 08:25:20 2009
+++ src/lib/libarch/x86_64/Makefile.inc	Mon Jun  8 04:08:30 2015
@@ -1,8 +1,6 @@
-#	$NetBSD: Makefile.inc,v 1.4 2009/12/13 08:25:20 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.5 2015/06/08 04:08:30 matt Exp $
 
-MLIBDIR?=	none
-
-.if (${MACHINE_ARCH} == x86_64  ${MLIBDIR} != i386)
+.if (${MACHINE_ARCH} == x86_64  ${MLIBDIR:Unone} != i386)
 SRCS+=	x86_64_mtrr.c x86_64_iopl.c
 .endif
 



CVS commit: src/lib/libarch/sparc/v8

2013-10-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Oct  2 15:43:02 UTC 2013

Modified Files:
src/lib/libarch/sparc/v8: Makefile

Log Message:
use -Wa,


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libarch/sparc/v8/Makefile

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

Modified files:

Index: src/lib/libarch/sparc/v8/Makefile
diff -u src/lib/libarch/sparc/v8/Makefile:1.4 src/lib/libarch/sparc/v8/Makefile:1.5
--- src/lib/libarch/sparc/v8/Makefile:1.4	Tue Oct  1 13:37:08 2013
+++ src/lib/libarch/sparc/v8/Makefile	Wed Oct  2 11:43:02 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.4 2013/10/01 17:37:08 mrg Exp $
+#	$NetBSD: Makefile,v 1.5 2013/10/02 15:43:02 christos Exp $
 
 NOLINKLIB=	# defined
 NOPROFILE=	# defined
@@ -10,7 +10,7 @@ LIB=		sparc_v8
 DPLIBC=		# nothing
 LDLIBC=		-nodefaultlibs
 
-AFLAGS+=	-Av8
+AFLAGS+=	-Wa,-Av8
 
 SRCS=	sparc_v8.S
 



CVS commit: src/lib/libarch/sparc/v8

2013-10-01 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Oct  1 17:37:08 UTC 2013

Modified Files:
src/lib/libarch/sparc/v8: Makefile

Log Message:
pass -Av8 to the assembler.  binutils 2.23 insists on it for v8
instructions.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libarch/sparc/v8/Makefile

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

Modified files:

Index: src/lib/libarch/sparc/v8/Makefile
diff -u src/lib/libarch/sparc/v8/Makefile:1.3 src/lib/libarch/sparc/v8/Makefile:1.4
--- src/lib/libarch/sparc/v8/Makefile:1.3	Sat May  3 20:43:54 2008
+++ src/lib/libarch/sparc/v8/Makefile	Tue Oct  1 17:37:08 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.3 2008/05/03 20:43:54 nakayama Exp $
+#	$NetBSD: Makefile,v 1.4 2013/10/01 17:37:08 mrg Exp $
 
 NOLINKLIB=	# defined
 NOPROFILE=	# defined
@@ -10,6 +10,8 @@ LIB=		sparc_v8
 DPLIBC=		# nothing
 LDLIBC=		-nodefaultlibs
 
+AFLAGS+=	-Av8
+
 SRCS=	sparc_v8.S
 
 .include bsd.lib.mk



CVS commit: src/lib/libarch

2013-07-18 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Jul 18 22:14:10 UTC 2013

Modified Files:
src/lib/libarch: Makefile
src/lib/libarch/m68k: Makefile.inc

Log Message:
Use MACHINE_CPU for m68k


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/lib/libarch/Makefile
cvs rdiff -u -r1.8 -r1.9 src/lib/libarch/m68k/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/lib/libarch/Makefile
diff -u src/lib/libarch/Makefile:1.25 src/lib/libarch/Makefile:1.26
--- src/lib/libarch/Makefile:1.25	Sat Apr 27 06:24:22 2013
+++ src/lib/libarch/Makefile	Thu Jul 18 22:14:10 2013
@@ -1,4 +1,6 @@
-#	$NetBSD: Makefile,v 1.25 2013/04/27 06:24:22 matt Exp $
+#	$NetBSD: Makefile,v 1.26 2013/07/18 22:14:10 matt Exp $
+
+.include bsd.own.mk
 
 # These should always be a MACHINE_CPU value
 ARCHDIRS= alpha arm i386 m68k sparc x86_64

Index: src/lib/libarch/m68k/Makefile.inc
diff -u src/lib/libarch/m68k/Makefile.inc:1.8 src/lib/libarch/m68k/Makefile.inc:1.9
--- src/lib/libarch/m68k/Makefile.inc:1.8	Wed Sep 18 06:19:27 2002
+++ src/lib/libarch/m68k/Makefile.inc	Thu Jul 18 22:14:10 2013
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile.inc,v 1.8 2002/09/18 06:19:27 lukem Exp $
+# $NetBSD: Makefile.inc,v 1.9 2013/07/18 22:14:10 matt Exp $
 
-.if (${MACHINE_ARCH} == m68k || ${MACHINE_ARCH} == m68000)
+.if ${MACHINE_CPU} == m68k
 NOLINT=		# defined
 SRCS=		m68k_sync_icache.S
 .endif



CVS commit: src/lib/libarch/alpha

2013-01-09 Thread Havard Eidnes
Module Name:src
Committed By:   he
Date:   Wed Jan  9 08:49:45 UTC 2013

Modified Files:
src/lib/libarch/alpha: alpha_pci_io.c

Log Message:
Include machine/alpha_cpu.h for alpha_mb() definition.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libarch/alpha/alpha_pci_io.c

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

Modified files:

Index: src/lib/libarch/alpha/alpha_pci_io.c
diff -u src/lib/libarch/alpha/alpha_pci_io.c:1.6 src/lib/libarch/alpha/alpha_pci_io.c:1.7
--- src/lib/libarch/alpha/alpha_pci_io.c:1.6	Thu Mar 22 08:54:48 2012
+++ src/lib/libarch/alpha/alpha_pci_io.c	Wed Jan  9 08:49:44 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: alpha_pci_io.c,v 1.6 2012/03/22 08:54:48 he Exp $	*/
+/*	$NetBSD: alpha_pci_io.c,v 1.7 2013/01/09 08:49:44 he Exp $	*/
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -37,6 +37,7 @@
 
 #include sys/param.h
 
+#include machine/alpha_cpu.h
 #include machine/bwx.h
 #include machine/sysarch.h
 #include machine/pio.h



CVS commit: src/lib/libarch/alpha

2012-03-22 Thread Havard Eidnes
Module Name:src
Committed By:   he
Date:   Thu Mar 22 08:52:22 UTC 2012

Modified Files:
src/lib/libarch/alpha: alpha_bus_window.c

Log Message:
Make 'i' unsigned to avoid signed/unsigned comparison warnings from lint.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libarch/alpha/alpha_bus_window.c

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

Modified files:

Index: src/lib/libarch/alpha/alpha_bus_window.c
diff -u src/lib/libarch/alpha/alpha_bus_window.c:1.3 src/lib/libarch/alpha/alpha_bus_window.c:1.4
--- src/lib/libarch/alpha/alpha_bus_window.c:1.3	Mon Apr 28 20:22:55 2008
+++ src/lib/libarch/alpha/alpha_bus_window.c	Thu Mar 22 08:52:22 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: alpha_bus_window.c,v 1.3 2008/04/28 20:22:55 martin Exp $	*/
+/*	$NetBSD: alpha_bus_window.c,v 1.4 2012/03/22 08:52:22 he Exp $	*/
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -52,7 +52,7 @@ alpha_bus_getwindows(int type, struct al
 	struct alpha_bus_get_window_count_args count_args;
 	struct alpha_bus_get_window_args window_args;
 	struct alpha_bus_window *abw;
-	int i;
+	unsigned int i;
 
 	count_args.type = type;
 	if (sysarch(ALPHA_BUS_GET_WINDOW_COUNT, count_args) != 0)



CVS commit: src/lib/libarch/i386

2012-03-21 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Mar 21 21:37:29 UTC 2012

Modified Files:
src/lib/libarch/i386: i386_get_ioperm.c i386_get_ldt.c i386_iopl.c
i386_set_ioperm.c i386_set_ldt.c i386_vm86.c

Log Message:
c89 prototypes


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libarch/i386/i386_get_ioperm.c \
src/lib/libarch/i386/i386_get_ldt.c \
src/lib/libarch/i386/i386_set_ioperm.c \
src/lib/libarch/i386/i386_set_ldt.c
cvs rdiff -u -r1.5 -r1.6 src/lib/libarch/i386/i386_iopl.c
cvs rdiff -u -r1.9 -r1.10 src/lib/libarch/i386/i386_vm86.c

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

Modified files:

Index: src/lib/libarch/i386/i386_get_ioperm.c
diff -u src/lib/libarch/i386/i386_get_ioperm.c:1.6 src/lib/libarch/i386/i386_get_ioperm.c:1.7
--- src/lib/libarch/i386/i386_get_ioperm.c:1.6	Mon Apr 28 16:22:55 2008
+++ src/lib/libarch/i386/i386_get_ioperm.c	Wed Mar 21 17:37:29 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: i386_get_ioperm.c,v 1.6 2008/04/28 20:22:55 martin Exp $	*/
+/*	$NetBSD: i386_get_ioperm.c,v 1.7 2012/03/21 21:37:29 christos Exp $	*/
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -37,8 +37,7 @@
 int i386_get_ioperm(u_long *);
 
 int
-i386_get_ioperm(iomap)
-	u_long *iomap;
+i386_get_ioperm(u_long *iomap)
 {
 	struct i386_get_ioperm_args p;
 
Index: src/lib/libarch/i386/i386_get_ldt.c
diff -u src/lib/libarch/i386/i386_get_ldt.c:1.6 src/lib/libarch/i386/i386_get_ldt.c:1.7
--- src/lib/libarch/i386/i386_get_ldt.c:1.6	Fri Jul  2 11:14:07 1999
+++ src/lib/libarch/i386/i386_get_ldt.c	Wed Mar 21 17:37:29 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: i386_get_ldt.c,v 1.6 1999/07/02 15:14:07 simonb Exp $	*/
+/*	$NetBSD: i386_get_ldt.c,v 1.7 2012/03/21 21:37:29 christos Exp $	*/
 
 /*
  *  Copyright (c) 1993 John Brezak
@@ -36,10 +36,7 @@
 #include machine/sysarch.h
 
 int
-i386_get_ldt(start, desc, num)
-	int start;
-	union descriptor *desc;
-	int num;
+i386_get_ldt(int start, union descriptor *desc, int num)
 {
 	struct i386_get_ldt_args p;
 
Index: src/lib/libarch/i386/i386_set_ioperm.c
diff -u src/lib/libarch/i386/i386_set_ioperm.c:1.6 src/lib/libarch/i386/i386_set_ioperm.c:1.7
--- src/lib/libarch/i386/i386_set_ioperm.c:1.6	Mon Apr 28 16:22:55 2008
+++ src/lib/libarch/i386/i386_set_ioperm.c	Wed Mar 21 17:37:29 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: i386_set_ioperm.c,v 1.6 2008/04/28 20:22:55 martin Exp $	*/
+/*	$NetBSD: i386_set_ioperm.c,v 1.7 2012/03/21 21:37:29 christos Exp $	*/
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -37,8 +37,7 @@
 int i386_set_ioperm(u_long *);
 
 int
-i386_set_ioperm(iomap)
-	u_long *iomap;
+i386_set_ioperm(u_long *iomap)
 {
 	struct i386_set_ioperm_args p;
 
Index: src/lib/libarch/i386/i386_set_ldt.c
diff -u src/lib/libarch/i386/i386_set_ldt.c:1.6 src/lib/libarch/i386/i386_set_ldt.c:1.7
--- src/lib/libarch/i386/i386_set_ldt.c:1.6	Fri Jul  2 11:14:07 1999
+++ src/lib/libarch/i386/i386_set_ldt.c	Wed Mar 21 17:37:29 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: i386_set_ldt.c,v 1.6 1999/07/02 15:14:07 simonb Exp $	*/
+/*	$NetBSD: i386_set_ldt.c,v 1.7 2012/03/21 21:37:29 christos Exp $	*/
 
 /*
  *  Copyright (c) 1993 John Brezak
@@ -36,10 +36,7 @@
 #include machine/sysarch.h
 
 int
-i386_set_ldt(start, desc, num)
-	int start;
-	union descriptor *desc;
-	int num;
+i386_set_ldt(int start, union descriptor *desc, int num)
 {
 	struct i386_set_ldt_args p;
 

Index: src/lib/libarch/i386/i386_iopl.c
diff -u src/lib/libarch/i386/i386_iopl.c:1.5 src/lib/libarch/i386/i386_iopl.c:1.6
--- src/lib/libarch/i386/i386_iopl.c:1.5	Mon Apr 28 16:22:55 2008
+++ src/lib/libarch/i386/i386_iopl.c	Wed Mar 21 17:37:29 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: i386_iopl.c,v 1.5 2008/04/28 20:22:55 martin Exp $	*/
+/*	$NetBSD: i386_iopl.c,v 1.6 2012/03/21 21:37:29 christos Exp $	*/
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -35,8 +35,7 @@
 #include machine/sysarch.h
 
 int
-i386_iopl(iopl)
-	int iopl;
+i386_iopl(int iopl)
 {
 	struct i386_iopl_args p;
 

Index: src/lib/libarch/i386/i386_vm86.c
diff -u src/lib/libarch/i386/i386_vm86.c:1.9 src/lib/libarch/i386/i386_vm86.c:1.10
--- src/lib/libarch/i386/i386_vm86.c:1.9	Sun Oct 26 03:05:00 2008
+++ src/lib/libarch/i386/i386_vm86.c	Wed Mar 21 17:37:29 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: i386_vm86.c,v 1.9 2008/10/26 07:05:00 mrg Exp $	*/
+/*	$NetBSD: i386_vm86.c,v 1.10 2012/03/21 21:37:29 christos Exp $	*/
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -38,8 +38,7 @@
 #include i386/vm86.h
 
 int
-i386_vm86(vmcp)
-	struct vm86_struct *vmcp;
+i386_vm86(struct vm86_struct *vmcp)
 {
 
 	return sysarch(I386_VM86, (void *)vmcp);



CVS commit: src/lib/libarch

2011-07-16 Thread David Young
Module Name:src
Committed By:   dyoung
Date:   Sun Jul 17 01:09:00 UTC 2011

Modified Files:
src/lib/libarch: Makefile

Log Message:
Don't descend into alpha/.

Up next: fix set lists.


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

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

Modified files:

Index: src/lib/libarch/Makefile
diff -u src/lib/libarch/Makefile:1.22 src/lib/libarch/Makefile:1.23
--- src/lib/libarch/Makefile:1.22	Sun Dec 13 08:25:20 2009
+++ src/lib/libarch/Makefile	Sun Jul 17 01:09:00 2011
@@ -1,7 +1,7 @@
-#	$NetBSD: Makefile,v 1.22 2009/12/13 08:25:20 mrg Exp $
+#	$NetBSD: Makefile,v 1.23 2011/07/17 01:09:00 dyoung Exp $
 
 # These should always be a MACHINE_CPU value
-ARCHDIRS= alpha arm i386 m68k sparc x86_64
+ARCHDIRS= arm i386 m68k sparc x86_64
 
 .for arch in ${ARCHDIRS}
 .include ${.CURDIR}/${arch}/Makefile.inc



CVS commit: src/lib/libarch/m68k

2011-03-27 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sun Mar 27 12:48:41 UTC 2011

Modified Files:
src/lib/libarch/m68k: m68k_sync_icache.2

Log Message:
Fix xref, arm32_sync_icache - arm_sync_icache.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/lib/libarch/m68k/m68k_sync_icache.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/libarch/m68k/m68k_sync_icache.2
diff -u src/lib/libarch/m68k/m68k_sync_icache.2:1.10 src/lib/libarch/m68k/m68k_sync_icache.2:1.11
--- src/lib/libarch/m68k/m68k_sync_icache.2:1.10	Wed Apr 30 13:10:50 2008
+++ src/lib/libarch/m68k/m68k_sync_icache.2	Sun Mar 27 12:48:41 2011
@@ -1,4 +1,4 @@
-.\ $NetBSD: m68k_sync_icache.2,v 1.10 2008/04/30 13:10:50 martin Exp $
+.\ $NetBSD: m68k_sync_icache.2,v 1.11 2011/03/27 12:48:41 njoly Exp $
 .\
 .\ Copyright (c) 1999 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -57,7 +57,7 @@
 .Pp
 The call always succeeds.
 .Sh SEE ALSO
-.Xr arm32_sync_icache 2
+.Xr arm_sync_icache 2
 .Sh HISTORY
 .Fn m68k_sync_icache
 appeared first in