Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 Fix RAS for 32-bit kernels. trapfr...



details:   https://anonhg.NetBSD.org/src/rev/89d1e7c180b5
branches:  trunk
changeset: 347867:89d1e7c180b5
user:      nakayama <nakayama%NetBSD.org@localhost>
date:      Tue Sep 20 08:56:34 2016 +0000

description:
Fix RAS for 32-bit kernels.  trapframe is always 64-bit.

diffstat:

 sys/arch/sparc64/sparc64/locore.s |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (26 lines):

diff -r b3517fa8c64d -r 89d1e7c180b5 sys/arch/sparc64/sparc64/locore.s
--- a/sys/arch/sparc64/sparc64/locore.s Tue Sep 20 08:38:55 2016 +0000
+++ b/sys/arch/sparc64/sparc64/locore.s Tue Sep 20 08:56:34 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.400 2016/08/23 19:57:01 palle Exp $       */
+/*     $NetBSD: locore.s,v 1.401 2016/09/20 08:56:34 nakayama Exp $    */
 
 /*
  * Copyright (c) 2006-2010 Matthew R. Green
@@ -6060,12 +6060,12 @@
        brz,pt  %o1, Lsw_noras          ! no, skip RAS check
         LDPTR  [%i1 + L_TF], %l3       ! pointer to trap frame
        call    _C_LABEL(ras_lookup)
-        LDPTR  [%l3 + TF_PC], %o1
+        ldx    [%l3 + TF_PC], %o1
        cmp     %o0, -1
-       be,pt   %xcc, Lsw_noras
+       be,pt   CCCR, Lsw_noras
         add    %o0, 4, %o1
-       STPTR   %o0, [%l3 + TF_PC]      ! store rewound %pc
-       STPTR   %o1, [%l3 + TF_NPC]     ! and %npc
+       stx     %o0, [%l3 + TF_PC]      ! store rewound %pc
+       stx     %o1, [%l3 + TF_NPC]     ! and %npc
 
 Lsw_noras:
 



Home | Main Index | Thread Index | Old Index