Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh3/sh3 Sprinkle redundant comments about PAD_P1_SW...



details:   https://anonhg.NetBSD.org/src/rev/c6fddf4c8557
branches:  trunk
changeset: 783264:c6fddf4c8557
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Wed Dec 12 16:24:49 2012 +0000

description:
Sprinkle redundant comments about PAD_P1_SWITCH to avoid stupid confusion.

diffstat:

 sys/arch/sh3/sh3/cache_sh4.c |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (74 lines):

diff -r a14273f5b4c5 -r c6fddf4c8557 sys/arch/sh3/sh3/cache_sh4.c
--- a/sys/arch/sh3/sh3/cache_sh4.c      Wed Dec 12 15:52:10 2012 +0000
+++ b/sys/arch/sh3/sh3/cache_sh4.c      Wed Dec 12 16:24:49 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cache_sh4.c,v 1.22 2012/12/12 15:43:44 tsutsui Exp $   */
+/*     $NetBSD: cache_sh4.c,v 1.23 2012/12/12 16:24:49 tsutsui Exp $   */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cache_sh4.c,v 1.22 2012/12/12 15:43:44 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cache_sh4.c,v 1.23 2012/12/12 16:24:49 tsutsui Exp $");
 
 #include "opt_cache.h"
 
@@ -230,6 +230,7 @@
                cache_sh4_op_8lines_32(va, SH4_CCIA, CCIA_ENTRY_MASK, CCIA_V);
                va += 32 * 8;
        }
+       /* assume we are returning into a P1 caller */
        PAD_P1_SWITCH;
 }
 
@@ -249,6 +250,7 @@
                _reg_write_4(ccia, va & CCIA_TAGADDR_MASK); /* V = 0 */
                va += 32;
        }
+       /* assume we are returning into a P1 caller */
        PAD_P1_SWITCH;
 }
 
@@ -271,6 +273,7 @@
                cache_sh4_op_line_32(va, SH4_CCIA, CCIA_ENTRY_MASK, CCIA_V);
                va += 32;
        }
+       /* assume we are returning into a P1 caller */
        PAD_P1_SWITCH;
 }
 
@@ -286,6 +289,7 @@
                    (CCDA_U | CCDA_V));
                va += 32 * 8;
        }
+       /* assume we are returning into a P1 caller */
        PAD_P1_SWITCH;
 }
 
@@ -319,6 +323,7 @@
                    (CCDA_U | CCDA_V));
                va += 32;
        }
+       /* assume we are returning into a P1 caller */
        PAD_P1_SWITCH;
 }
 
@@ -421,6 +426,7 @@
                    CCIA_V, 13);
                va += 32 * 8;
        }
+       /* assume we are returning into a P1 caller */
        PAD_P1_SWITCH;
 }
 
@@ -444,6 +450,7 @@
                    CCIA_V, 13);
                va += 32;
        }
+       /* assume we are returning into a P1 caller */
        PAD_P1_SWITCH;
 }
 



Home | Main Index | Thread Index | Old Index