Module Name:    src
Committed By:   tsutsui
Date:           Wed Dec 12 15:43:44 UTC 2012

Modified Files:
        src/sys/arch/sh3/sh3: cache_sh4.c

Log Message:
Revert part of the previous (reverting RUN_P1 -> PAD_P1_SWITCH again).
We can assume all icache ops are called from (and will return to) P1
so no need to bother to jump to P1 at end of functions.
Pointed out by uwe@.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/sh3/sh3/cache_sh4.c

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/sh3/sh3/cache_sh4.c
diff -u src/sys/arch/sh3/sh3/cache_sh4.c:1.21 src/sys/arch/sh3/sh3/cache_sh4.c:1.22
--- src/sys/arch/sh3/sh3/cache_sh4.c:1.21	Wed Dec 12 13:34:49 2012
+++ src/sys/arch/sh3/sh3/cache_sh4.c	Wed Dec 12 15:43:44 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: cache_sh4.c,v 1.21 2012/12/12 13:34:49 tsutsui Exp $	*/
+/*	$NetBSD: cache_sh4.c,v 1.22 2012/12/12 15:43:44 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.21 2012/12/12 13:34:49 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cache_sh4.c,v 1.22 2012/12/12 15:43:44 tsutsui Exp $");
 
 #include "opt_cache.h"
 
@@ -230,7 +230,7 @@ sh4_icache_sync_all(void)
 		cache_sh4_op_8lines_32(va, SH4_CCIA, CCIA_ENTRY_MASK, CCIA_V);
 		va += 32 * 8;
 	}
-	RUN_P1;
+	PAD_P1_SWITCH;
 }
 
 void
@@ -249,7 +249,7 @@ sh4_icache_sync_range(vaddr_t va, vsize_
 		_reg_write_4(ccia, va & CCIA_TAGADDR_MASK); /* V = 0 */
 		va += 32;
 	}
-	RUN_P1;
+	PAD_P1_SWITCH;
 }
 
 void
@@ -271,7 +271,7 @@ sh4_icache_sync_range_index(vaddr_t va, 
 		cache_sh4_op_line_32(va, SH4_CCIA, CCIA_ENTRY_MASK, CCIA_V);
 		va += 32;
 	}
-	RUN_P1;
+	PAD_P1_SWITCH;
 }
 
 void
@@ -421,7 +421,7 @@ sh4_emode_icache_sync_all(void)
 		    CCIA_V, 13);
 		va += 32 * 8;
 	}
-	RUN_P1;
+	PAD_P1_SWITCH;
 }
 
 void
@@ -444,7 +444,7 @@ sh4_emode_icache_sync_range_index(vaddr_
 		    CCIA_V, 13);
 		va += 32;
 	}
-	RUN_P1;
+	PAD_P1_SWITCH;
 }
 
 void

Reply via email to