CVS commit: src/sys/lib/libkern/arch/hppa

2014-03-13 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Thu Mar 13 16:09:11 UTC 2014

Modified Files:
src/sys/lib/libkern/arch/hppa: Makefile.inc

Log Message:
remove compiler-rt duplicates to fix build


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/lib/libkern/arch/hppa/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/sys/lib/libkern/arch/hppa/Makefile.inc
diff -u src/sys/lib/libkern/arch/hppa/Makefile.inc:1.11 src/sys/lib/libkern/arch/hppa/Makefile.inc:1.12
--- src/sys/lib/libkern/arch/hppa/Makefile.inc:1.11	Tue Sep 22 09:57:16 2009
+++ src/sys/lib/libkern/arch/hppa/Makefile.inc	Thu Mar 13 16:09:11 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.11 2009/09/22 09:57:16 pooka Exp $
+#	$NetBSD: Makefile.inc,v 1.12 2014/03/13 16:09:11 pooka Exp $
 
 SRCS+=	milli.S
 SRCS+=	bcopy.S memcpy.S memmove.S
@@ -8,5 +8,4 @@ SRCS+=	bcopy.S memcpy.S memmove.S
 SRCS+=	spcopy.S
 .endif
 
-SRCS+= ashrdi3.c divdi3.c
 SRCS+= ffs.c bswap16.c bswap32.c



CVS commit: src/sys/lib/libkern/arch/hppa

2011-01-31 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Mon Jan 31 12:10:59 UTC 2011

Modified Files:
src/sys/lib/libkern/arch/hppa: bcopy.S

Log Message:
This file needs opt_multiprocessor.h early so we pick up the right
definition from cpu.h, etc.

XXX should revisit the _STANDALONE vs _KERNEL split


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/lib/libkern/arch/hppa/bcopy.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/lib/libkern/arch/hppa/bcopy.S
diff -u src/sys/lib/libkern/arch/hppa/bcopy.S:1.13 src/sys/lib/libkern/arch/hppa/bcopy.S:1.14
--- src/sys/lib/libkern/arch/hppa/bcopy.S:1.13	Mon Jan 24 15:01:30 2011
+++ src/sys/lib/libkern/arch/hppa/bcopy.S	Mon Jan 31 12:10:58 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: bcopy.S,v 1.13 2011/01/24 15:01:30 skrll Exp $	*/
+/*	$NetBSD: bcopy.S,v 1.14 2011/01/31 12:10:58 skrll Exp $	*/
 
 /*
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -36,13 +36,20 @@
 #undef _LOCORE
 #define _LOCORE	/* XXX fredette - unfortunate */
 
+#if defined(SPCOPY)  !defined(_STANDALONE)
+
+#include opt_multiprocessor.h
+
 #include machine/cpu.h
+
+#endif
+
 #include machine/asm.h
 #include machine/frame.h
 #include machine/reg.h
 
 #if defined(LIBC_SCCS)  !defined(lint)
-RCSID($NetBSD: bcopy.S,v 1.13 2011/01/24 15:01:30 skrll Exp $)
+RCSID($NetBSD: bcopy.S,v 1.14 2011/01/31 12:10:58 skrll Exp $)
 #endif /* LIBC_SCCS and not lint */
 
 /*
@@ -486,8 +493,6 @@
 
 #if defined(SPCOPY)  !defined(_STANDALONE)
 
-#include opt_multiprocessor.h
-
 #include sys/errno.h
 #include assym.h
 



CVS commit: src/sys/lib/libkern/arch/hppa

2011-01-24 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Mon Jan 24 15:01:30 UTC 2011

Modified Files:
src/sys/lib/libkern/arch/hppa: bcopy.S

Log Message:
Fix build.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/lib/libkern/arch/hppa/bcopy.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/lib/libkern/arch/hppa/bcopy.S
diff -u src/sys/lib/libkern/arch/hppa/bcopy.S:1.12 src/sys/lib/libkern/arch/hppa/bcopy.S:1.13
--- src/sys/lib/libkern/arch/hppa/bcopy.S:1.12	Sat Jan 22 10:58:44 2011
+++ src/sys/lib/libkern/arch/hppa/bcopy.S	Mon Jan 24 15:01:30 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: bcopy.S,v 1.12 2011/01/22 10:58:44 skrll Exp $	*/
+/*	$NetBSD: bcopy.S,v 1.13 2011/01/24 15:01:30 skrll Exp $	*/
 
 /*
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -33,8 +33,6 @@
  * Copy routines for NetBSD/hppa.
  */
 
-#include opt_multiprocessor.h
-
 #undef _LOCORE
 #define _LOCORE	/* XXX fredette - unfortunate */
 
@@ -44,7 +42,7 @@
 #include machine/reg.h
 
 #if defined(LIBC_SCCS)  !defined(lint)
-RCSID($NetBSD: bcopy.S,v 1.12 2011/01/22 10:58:44 skrll Exp $)
+RCSID($NetBSD: bcopy.S,v 1.13 2011/01/24 15:01:30 skrll Exp $)
 #endif /* LIBC_SCCS and not lint */
 
 /*
@@ -487,6 +485,9 @@
 #endif
 
 #if defined(SPCOPY)  !defined(_STANDALONE)
+
+#include opt_multiprocessor.h
+
 #include sys/errno.h
 #include assym.h
 



CVS commit: src/sys/lib/libkern/arch/hppa

2011-01-22 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sat Jan 22 10:58:44 UTC 2011

Modified Files:
src/sys/lib/libkern/arch/hppa: bcopy.S

Log Message:
Fix MULTIPROCESSOR curlwp/curcpu handling... missed in previous commit.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/lib/libkern/arch/hppa/bcopy.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/lib/libkern/arch/hppa/bcopy.S
diff -u src/sys/lib/libkern/arch/hppa/bcopy.S:1.11 src/sys/lib/libkern/arch/hppa/bcopy.S:1.12
--- src/sys/lib/libkern/arch/hppa/bcopy.S:1.11	Sat Mar 20 23:31:30 2010
+++ src/sys/lib/libkern/arch/hppa/bcopy.S	Sat Jan 22 10:58:44 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: bcopy.S,v 1.11 2010/03/20 23:31:30 chs Exp $	*/
+/*	$NetBSD: bcopy.S,v 1.12 2011/01/22 10:58:44 skrll Exp $	*/
 
 /*
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -33,15 +33,18 @@
  * Copy routines for NetBSD/hppa.
  */
 
+#include opt_multiprocessor.h
+
 #undef _LOCORE
 #define _LOCORE	/* XXX fredette - unfortunate */
 
+#include machine/cpu.h
 #include machine/asm.h
 #include machine/frame.h
 #include machine/reg.h
 
 #if defined(LIBC_SCCS)  !defined(lint)
-RCSID($NetBSD: bcopy.S,v 1.11 2010/03/20 23:31:30 chs Exp $)
+RCSID($NetBSD: bcopy.S,v 1.12 2011/01/22 10:58:44 skrll Exp $)
 #endif /* LIBC_SCCS and not lint */
 
 /*
@@ -498,7 +501,7 @@
 /*
 	 * Setup the fault handler, which will fill in %ret0 if triggered.
 	 */
-	mfctl	CR_CURLWP, %r31
+	GET_CURLWP(%r31)
 #ifdef	DIAGNOSTIC
 	comb,,n %r0, %r31, Lspcopy_curlwp_ok
 	ldil	L%panic, %r1



CVS commit: src/sys/lib/libkern/arch/hppa

2009-12-09 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Thu Dec 10 07:57:02 UTC 2009

Modified Files:
src/sys/lib/libkern/arch/hppa: bcopy.S

Log Message:
Rename L_ADDR to L_PCB


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/lib/libkern/arch/hppa/bcopy.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/lib/libkern/arch/hppa/bcopy.S
diff -u src/sys/lib/libkern/arch/hppa/bcopy.S:1.9 src/sys/lib/libkern/arch/hppa/bcopy.S:1.10
--- src/sys/lib/libkern/arch/hppa/bcopy.S:1.9	Tue Dec  1 09:06:17 2009
+++ src/sys/lib/libkern/arch/hppa/bcopy.S	Thu Dec 10 07:57:02 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: bcopy.S,v 1.9 2009/12/01 09:06:17 skrll Exp $	*/
+/*	$NetBSD: bcopy.S,v 1.10 2009/12/10 07:57:02 skrll Exp $	*/
 
 /*
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
 #include machine/reg.h
 
 #if defined(LIBC_SCCS)  !defined(lint)
-RCSID($NetBSD: bcopy.S,v 1.9 2009/12/01 09:06:17 skrll Exp $)
+RCSID($NetBSD: bcopy.S,v 1.10 2009/12/10 07:57:02 skrll Exp $)
 #endif /* LIBC_SCCS and not lint */
 
 /*
@@ -515,7 +515,7 @@
 Lspcopy_curlwp_ok:
 #endif /* DIAGNOSTIC */
 	ldilL%spcopy_fault, %r1
-	ldw L_ADDR(%r31), %r31
+	ldw L_PCB(%r31), %r31
 	ldo R%spcopy_fault(%r1), %r1
 	ldi	EFAULT, %ret0
 	stw %r1, PCB_ONFAULT(%r31)



CVS commit: src/sys/lib/libkern/arch/hppa

2009-09-22 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue Sep 22 09:57:16 UTC 2009

Modified Files:
src/sys/lib/libkern/arch/hppa: Makefile.inc

Log Message:
Don't build spcopy for rumpkern.  Fixes hp700 build failure pointed
out by nick.

XXX: spcopy should be in the main kernel instead of libkern in any case


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/lib/libkern/arch/hppa/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/sys/lib/libkern/arch/hppa/Makefile.inc
diff -u src/sys/lib/libkern/arch/hppa/Makefile.inc:1.10 src/sys/lib/libkern/arch/hppa/Makefile.inc:1.11
--- src/sys/lib/libkern/arch/hppa/Makefile.inc:1.10	Fri Aug 14 19:23:53 2009
+++ src/sys/lib/libkern/arch/hppa/Makefile.inc	Tue Sep 22 09:57:16 2009
@@ -1,7 +1,12 @@
-#	$NetBSD: Makefile.inc,v 1.10 2009/08/14 19:23:53 dsl Exp $
+#	$NetBSD: Makefile.inc,v 1.11 2009/09/22 09:57:16 pooka Exp $
 
 SRCS+=	milli.S
-SRCS+=	bcopy.S spcopy.S memcpy.S memmove.S
+SRCS+=	bcopy.S memcpy.S memmove.S
+
+# XXX: spcopy does not really belong in libkern in the first place
+.ifndef RUMPKERNEL
+SRCS+=	spcopy.S
+.endif
 
 SRCS+= ashrdi3.c divdi3.c
 SRCS+= ffs.c bswap16.c bswap32.c