Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc Provide the V8 mul/div routines for SUN...



details:   https://anonhg.NetBSD.org/src/rev/bbadf7099d57
branches:  trunk
changeset: 539903:bbadf7099d57
user:      pk <pk%NetBSD.org@localhost>
date:      Fri Nov 29 07:56:50 2002 +0000

description:
Provide the V8 mul/div routines for SUN4D as well.

diffstat:

 sys/arch/sparc/sparc/locore.s |  21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)

diffs (49 lines):

diff -r 748223f6b92c -r bbadf7099d57 sys/arch/sparc/sparc/locore.s
--- a/sys/arch/sparc/sparc/locore.s     Fri Nov 29 04:54:48 2002 +0000
+++ b/sys/arch/sparc/sparc/locore.s     Fri Nov 29 07:56:50 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.164 2002/11/28 15:32:15 pk Exp $  */
+/*     $NetBSD: locore.s,v 1.165 2002/11/29 07:56:50 pk Exp $  */
 
 /*
  * Copyright (c) 1996 Paul Kranenburg
@@ -4071,7 +4071,15 @@
         clr    %o0                     ! our frame arg is ignored
        /*NOTREACHED*/
 
-#if defined(SUN4M)
+
+#if defined(SUN4M) || defined(SUN4D)
+/*
+ * V8 multiply and divide routines, to be copied over the code
+ * for the V6/V7 routines.  Seems a shame to spend the call, but....
+ * Note: while .umul and .smul return a 64-bit result in %o1%o0,
+ * gcc only really cares about the low 32 bits in %o0.  This is
+ * really just gcc output, cleaned up a bit.
+ */
        .globl  _C_LABEL(sparc_v8_muldiv)
 _C_LABEL(sparc_v8_muldiv):
        save    %sp, -CCFSZ, %sp
@@ -4100,13 +4108,6 @@
        ret
         restore
 
-/*
- * V8 multiply and divide routines, to be copied over the code
- * for the V6/V7 routines.  Seems a shame to spend the call, but....
- * Note: while .umul and .smul return a 64-bit result in %o1%o0,
- * gcc only really cares about the low 32 bits in %o0.  This is
- * really just gcc output, cleaned up a bit.
- */
 v8_smul:
        retl
         smul   %o0, %o1, %o0
@@ -4147,7 +4148,7 @@
         sub    %o0, %g2, %o0
 v8_urem_len = .-v8_urem
 
-#endif /* SUN4M */
+#endif /* SUN4M || SUN4D */
 
 #if defined(MULTIPROCESSOR)
        /*



Home | Main Index | Thread Index | Old Index