Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/powerpc Fix diagnostic trap to be correct. ...



details:   https://anonhg.NetBSD.org/src/rev/1c24f8936ef3
branches:  trunk
changeset: 797843:1c24f8936ef3
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Jul 30 23:27:55 2014 +0000

description:
Fix diagnostic trap to be correct.  PSL_EE@l would be sign-extended and this
could never match the result of the andi. before it.

diffstat:

 sys/arch/powerpc/powerpc/locore_subr.S |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r dd95fb7c517f -r 1c24f8936ef3 sys/arch/powerpc/powerpc/locore_subr.S
--- a/sys/arch/powerpc/powerpc/locore_subr.S    Wed Jul 30 23:15:23 2014 +0000
+++ b/sys/arch/powerpc/powerpc/locore_subr.S    Wed Jul 30 23:27:55 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore_subr.S,v 1.53 2014/07/30 23:15:23 joerg Exp $   */
+/*     $NetBSD: locore_subr.S,v 1.54 2014/07/30 23:27:55 matt Exp $    */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -304,7 +304,7 @@
        twnei   %r4,IPL_NONE
        mfmsr   %r5
        andi.   %r5,%r5,PSL_EE@l
-       tweqi   %r5,PSL_EE@l
+       tweqi   %r5,0
 #endif
        blr                             /* CPUINIT needs a raw blr */
 



Home | Main Index | Thread Index | Old Index