Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/ibm4xx Store r30 and r31 beforehand to rest...



details:   https://anonhg.NetBSD.org/src/rev/0a744e759740
branches:  trunk
changeset: 772045:0a744e759740
user:      kiyohara <kiyohara%NetBSD.org@localhost>
date:      Thu Dec 15 11:01:45 2011 +0000

description:
Store r30 and r31 beforehand to restore.

diffstat:

 sys/arch/powerpc/ibm4xx/trap_subr.S |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r e80e0d5ca124 -r 0a744e759740 sys/arch/powerpc/ibm4xx/trap_subr.S
--- a/sys/arch/powerpc/ibm4xx/trap_subr.S       Thu Dec 15 09:38:21 2011 +0000
+++ b/sys/arch/powerpc/ibm4xx/trap_subr.S       Thu Dec 15 11:01:45 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap_subr.S,v 1.19 2011/12/14 12:41:59 kiyohara Exp $  */
+/*     $NetBSD: trap_subr.S,v 1.20 2011/12/15 11:01:45 kiyohara Exp $  */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -387,6 +387,8 @@
         * that had the mtpid code in it and branch to it and avoid
         * all this.  (ba foo; foo: mtpid %r31; mfsprg3 %r31; rfi;)
         */
+       mtsprg2 %r30
+       mtsprg3 %r31
        mfmsr   %r30
        li      %r31,(PSL_DR|PSL_IR)@l
        andc    %r30,%r30,%r31



Home | Main Index | Thread Index | Old Index