Module Name: src
Committed By: kiyohara
Date: Thu Dec 15 11:01:45 UTC 2011
Modified Files:
src/sys/arch/powerpc/ibm4xx: trap_subr.S
Log Message:
Store r30 and r31 beforehand to restore.
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/powerpc/ibm4xx/trap_subr.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/powerpc/ibm4xx/trap_subr.S
diff -u src/sys/arch/powerpc/ibm4xx/trap_subr.S:1.19 src/sys/arch/powerpc/ibm4xx/trap_subr.S:1.20
--- src/sys/arch/powerpc/ibm4xx/trap_subr.S:1.19 Wed Dec 14 12:41:59 2011
+++ src/sys/arch/powerpc/ibm4xx/trap_subr.S Thu Dec 15 11:01:45 2011
@@ -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 @@ intrleave_to_user:
* 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