Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/include N32 uses dadd instructions to manipula...



details:   https://anonhg.NetBSD.org/src/rev/6dab5420b11b
branches:  trunk
changeset: 781524:6dab5420b11b
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Sep 12 15:09:49 2012 +0000

description:
N32 uses dadd instructions to manipulate stack (actually, all ABIs except
O32 use dadd).

diffstat:

 sys/arch/mips/include/mcontext.h |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (23 lines):

diff -r f9edda4122d6 -r 6dab5420b11b sys/arch/mips/include/mcontext.h
--- a/sys/arch/mips/include/mcontext.h  Wed Sep 12 14:55:48 2012 +0000
+++ b/sys/arch/mips/include/mcontext.h  Wed Sep 12 15:09:49 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mcontext.h,v 1.19 2011/07/05 19:30:50 joerg Exp $      */
+/*     $NetBSD: mcontext.h,v 1.20 2012/09/12 15:09:49 matt Exp $       */
 
 /*-
  * Copyright (c) 1999, 2002 The NetBSD Foundation, Inc.
@@ -205,10 +205,10 @@
         */
        __asm __volatile(".set push; .set mips32r2; "
                "rdhwr $3,$29; .set pop;"
-#ifdef _LP64
+#ifdef __mips_o32
+               "addiu %[__tcb],$3,%1"
+#else
                "daddiu %[__tcb],$3,%1"
-#else
-               "addiu %[__tcb],$3,%1"
 #endif
            : [__tcb]"=r"(__tcb)
            : [__offset]"n"(-(TLS_TP_OFFSET + sizeof(*__tcb)))



Home | Main Index | Thread Index | Old Index