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 Sligthly clean up the (by default u...



details:   https://anonhg.NetBSD.org/src/rev/2cc6b7491aa2
branches:  trunk
changeset: 784258:2cc6b7491aa2
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Jan 23 12:19:02 2013 +0000

description:
Sligthly clean up the (by default unused) #ifdef TRAPS_USE_IG

diffstat:

 sys/arch/sparc64/sparc64/locore.s |  23 ++++++++++++++---------
 1 files changed, 14 insertions(+), 9 deletions(-)

diffs (72 lines):

diff -r a5c4b60b1a54 -r 2cc6b7491aa2 sys/arch/sparc64/sparc64/locore.s
--- a/sys/arch/sparc64/sparc64/locore.s Wed Jan 23 07:57:27 2013 +0000
+++ b/sys/arch/sparc64/sparc64/locore.s Wed Jan 23 12:19:02 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.345 2012/11/10 01:47:25 nakayama Exp $    */
+/*     $NetBSD: locore.s,v 1.346 2013/01/23 12:19:02 martin Exp $      */
 
 /*
  * Copyright (c) 2006-2010 Matthew R. Green
@@ -1743,9 +1743,10 @@
  *
  * The following is duplicated from datafault:
  */
-       wrpr    %g0, PSTATE_KERN|PSTATE_AG, %pstate     ! We need to save volatile stuff to AG regs
 #ifdef TRAPS_USE_IG
-       wrpr    %g0, PSTATE_KERN|PSTATE_IG, %pstate     ! We need to save volatile stuff to AG regs
+       wrpr    %g0, PSTATE_KERN|PSTATE_IG, %pstate     ! We need to save volatile stuff to interrupt globals
+#else
+       wrpr    %g0, PSTATE_KERN|PSTATE_AG, %pstate     ! We need to save volatile stuff to alternate globals
 #endif
        wr      %g0, ASI_DMMU, %asi                     ! We need to re-load trap info
        ldxa    [%g0 + TLB_TAG_ACCESS] %asi, %g1        ! Get fault address from tag access register
@@ -2106,9 +2107,10 @@
        wrpr    %g1, %cwp
        andn    %g2, CWP, %g2
        wrpr    %g1, %g2, %tstate
-       wrpr    %g0, PSTATE_KERN|PSTATE_AG, %pstate
 #ifdef TRAPS_USE_IG
        wrpr    %g0, PSTATE_KERN|PSTATE_IG, %pstate     ! DEBUG
+#else
+       wrpr    %g0, PSTATE_KERN|PSTATE_AG, %pstate
 #endif
        mov     %g6, %sp
        done
@@ -2129,9 +2131,10 @@
  *
  */
 datafault:
-       wrpr    %g0, PSTATE_KERN|PSTATE_AG, %pstate     ! We need to save volatile stuff to AG regs
 #ifdef TRAPS_USE_IG
-       wrpr    %g0, PSTATE_KERN|PSTATE_IG, %pstate     ! We need to save volatile stuff to AG regs
+       wrpr    %g0, PSTATE_KERN|PSTATE_IG, %pstate     ! We need to save volatile stuff to interrupt globals
+#else
+       wrpr    %g0, PSTATE_KERN|PSTATE_AG, %pstate     ! We need to save volatile stuff to alternate globals
 #endif
        wr      %g0, ASI_DMMU, %asi                     ! We need to re-load trap info
        ldxa    [%g0 + TLB_TAG_ACCESS] %asi, %g1        ! Get fault address from tag access register
@@ -2374,9 +2377,10 @@
  */
 
 textfault:
-       wrpr    %g0, PSTATE_KERN|PSTATE_AG, %pstate     ! We need to save volatile stuff to AG regs
 #ifdef TRAPS_USE_IG
-       wrpr    %g0, PSTATE_KERN|PSTATE_IG, %pstate     ! We need to save volatile stuff to AG regs
+       wrpr    %g0, PSTATE_KERN|PSTATE_IG, %pstate     ! We need to save volatile stuff to interrupt globals
+#else
+       wrpr    %g0, PSTATE_KERN|PSTATE_AG, %pstate     ! We need to save volatile stuff to alternate globals
 #endif
        wr      %g0, ASI_IMMU, %asi
        ldxa    [%g0 + TLB_TAG_ACCESS] %asi, %g1        ! Get fault address from tag access register
@@ -3588,9 +3592,10 @@
        ldx     [%sp + CC64FSZ + STKB + TF_G + (6*8)], %g6
        ldx     [%sp + CC64FSZ + STKB + TF_G + (7*8)], %g7
        /* Switch to alternate globals and load outs */
-       wrpr    %g0, PSTATE_KERN|PSTATE_AG, %pstate
 #ifdef TRAPS_USE_IG
        wrpr    %g0, PSTATE_KERN|PSTATE_IG, %pstate     ! DEBUG
+#else
+       wrpr    %g0, PSTATE_KERN|PSTATE_AG, %pstate
 #endif
        ldx     [%sp + CC64FSZ + STKB + TF_O + (0*8)], %i0
        ldx     [%sp + CC64FSZ + STKB + TF_O + (1*8)], %i1



Home | Main Index | Thread Index | Old Index