Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src use %g5 instead of %g7 (since we want to use %g7 for the cpu...



details:   https://anonhg.NetBSD.org/src/rev/da355b77be67
branches:  trunk
changeset: 538724:da355b77be67
user:      chs <chs%NetBSD.org@localhost>
date:      Sun Oct 27 18:41:27 2002 +0000

description:
use %g5 instead of %g7 (since we want to use %g7 for the cpu_info pointer
in the kernel).  resync libc and libkern versions of this file.

diffstat:

 lib/libc/arch/sparc64/gen/divrem.m4    |  11 ++++++-----
 sys/lib/libkern/arch/sparc64/divrem.m4 |  15 ++++++---------
 2 files changed, 12 insertions(+), 14 deletions(-)

diffs (90 lines):

diff -r fc8b92bded86 -r da355b77be67 lib/libc/arch/sparc64/gen/divrem.m4
--- a/lib/libc/arch/sparc64/gen/divrem.m4       Sun Oct 27 18:39:17 2002 +0000
+++ b/lib/libc/arch/sparc64/gen/divrem.m4       Sun Oct 27 18:41:27 2002 +0000
@@ -1,3 +1,5 @@
+/*     $NetBSD: divrem.m4,v 1.2 2002/10/27 18:41:27 chs Exp $  */
+
 /*
  * Copyright (c) 1992, 1993
  *     The Regents of the University of California.  All rights reserved.
@@ -35,7 +37,6 @@
  * SUCH DAMAGE.
  *
  * from: Header: divrem.m4,v 1.4 92/06/25 13:23:57 torek Exp
- * $NetBSD: divrem.m4,v 1.1 1998/09/11 04:56:21 eeh Exp $
  */
 
 /*
@@ -43,9 +44,9 @@
  * Architecture Manual, with fixes from Gordon Irlam.
  */
 
-#if defined(LIBC_SCCS) && !defined(lint)
-       .asciz "@(#)divrem.m4   8.1 (Berkeley) 6/4/93"
-#endif /* LIBC_SCCS and not lint */
+#if defined(LIBC_SCCS)
+       RCSID("$NetBSD: divrem.m4,v 1.2 2002/10/27 18:41:27 chs Exp $")
+#endif
 
 /*
  * Input: dividend and divisor in %o0 and %o1 respectively.
@@ -93,7 +94,7 @@
 
 /* m4 reminder: ifelse(a,b,c,d) => if a is b, then c, else d */
 define(T, `%g1')
-define(SC, `%g7')
+define(SC, `%g5')
 ifelse(S, `true', `define(SIGN, `%g6')')
 
 /*
diff -r fc8b92bded86 -r da355b77be67 sys/lib/libkern/arch/sparc64/divrem.m4
--- a/sys/lib/libkern/arch/sparc64/divrem.m4    Sun Oct 27 18:39:17 2002 +0000
+++ b/sys/lib/libkern/arch/sparc64/divrem.m4    Sun Oct 27 18:41:27 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: divrem.m4,v 1.1.1.1 1998/06/20 05:18:14 eeh Exp $      */
+/*     $NetBSD: divrem.m4,v 1.2 2002/10/27 18:41:27 chs Exp $  */
 
 /*
  * Copyright (c) 1992, 1993
@@ -36,7 +36,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * Header: divrem.m4,v 1.4 92/06/25 13:23:57 torek Exp
+ * from: Header: divrem.m4,v 1.4 92/06/25 13:23:57 torek Exp
  */
 
 /*
@@ -44,12 +44,9 @@
  * Architecture Manual, with fixes from Gordon Irlam.
  */
 
-#if defined(LIBC_SCCS) && !defined(lint)
-#ifdef notdef
-       .asciz "@(#)divrem.m4   8.1 (Berkeley) 6/4/93"
+#if defined(LIBC_SCCS)
+       RCSID("$NetBSD: divrem.m4,v 1.2 2002/10/27 18:41:27 chs Exp $")
 #endif
-       .asciz "$NetBSD: divrem.m4,v 1.1.1.1 1998/06/20 05:18:14 eeh Exp $"
-#endif /* LIBC_SCCS and not lint */
 
 /*
  * Input: dividend and divisor in %o0 and %o1 respectively.
@@ -97,7 +94,7 @@
 
 /* m4 reminder: ifelse(a,b,c,d) => if a is b, then c, else d */
 define(T, `%g1')
-define(SC, `%g7')
+define(SC, `%g5')
 ifelse(S, `true', `define(SIGN, `%g6')')
 
 /*
@@ -132,7 +129,7 @@
        ', `    DEVELOP_QUOTIENT_BITS(incr($1), `eval(2*$2-1)')')
        ifelse($1, 1, `9:')')
 
-#include "DEFS.h"
+#include <machine/asm.h>
 #include <machine/trap.h>
 
 FUNC(NAME)



Home | Main Index | Thread Index | Old Index