Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hppa/hppa Don't use %tr3 (aka cr27) in emu trap. cr...



details:   https://anonhg.NetBSD.org/src/rev/c5ce7103239e
branches:  trunk
changeset: 762792:c5ce7103239e
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Feb 28 21:22:35 2011 +0000

description:
Don't use %tr3 (aka cr27) in emu trap. cr27 is now used for lwp private
info.

diffstat:

 sys/arch/hppa/hppa/trap.S |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 89d8922a2925 -r c5ce7103239e sys/arch/hppa/hppa/trap.S
--- a/sys/arch/hppa/hppa/trap.S Mon Feb 28 21:21:14 2011 +0000
+++ b/sys/arch/hppa/hppa/trap.S Mon Feb 28 21:22:35 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.S,v 1.59 2011/02/28 21:20:50 skrll Exp $  */
+/*     $NetBSD: trap.S,v 1.60 2011/02/28 21:22:35 skrll Exp $  */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -955,7 +955,7 @@
         * to use.  hppa_fpu_swap deliberately uses only these registers and %r1
         * and %arg0.
         */
-       mtctl   %arg1, %tr3
+       mtctl   %arg1, %tr4
        mtctl   %rp, %tr5
 
        /* Call hppa_fpu_swap. */
@@ -968,7 +968,7 @@
        
        /* Restore registers and rfi. */
        mfctl   %tr5, %rp
-       mfctl   %tr3, %arg1
+       mfctl   %tr4, %arg1
        mfctl   %tr2, %arg0
        mfctl   %tr7, %r1
        rfi



Home | Main Index | Thread Index | Old Index