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 remove unused icache_flush_page() i...
details: https://anonhg.NetBSD.org/src/rev/8cd239937dd5
branches: trunk
changeset: 751335:8cd239937dd5
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Feb 01 03:43:27 2010 +0000
description:
remove unused icache_flush_page() implementation.
diffstat:
sys/arch/sparc64/sparc64/cache.h | 3 +-
sys/arch/sparc64/sparc64/locore.s | 46 +--------------------------------------
2 files changed, 2 insertions(+), 47 deletions(-)
diffs (77 lines):
diff -r c2e6af400832 -r 8cd239937dd5 sys/arch/sparc64/sparc64/cache.h
--- a/sys/arch/sparc64/sparc64/cache.h Mon Feb 01 02:42:33 2010 +0000
+++ b/sys/arch/sparc64/sparc64/cache.h Mon Feb 01 03:43:27 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cache.h,v 1.10 2006/10/21 23:49:29 mrg Exp $ */
+/* $NetBSD: cache.h,v 1.11 2010/02/01 03:43:27 mrg Exp $ */
/*
* Copyright (c) 1996
@@ -74,7 +74,6 @@
/* The following are for I$ and D$ flushes and are in locore.s */
void dcache_flush_page(paddr_t); /* flush page from D$ */
-void icache_flush_page(paddr_t); /* flush page from I$ */
void blast_dcache(void); /* Clear entire D$ */
void blast_icache(void); /* Clear entire I$ */
diff -r c2e6af400832 -r 8cd239937dd5 sys/arch/sparc64/sparc64/locore.s
--- a/sys/arch/sparc64/sparc64/locore.s Mon Feb 01 02:42:33 2010 +0000
+++ b/sys/arch/sparc64/sparc64/locore.s Mon Feb 01 03:43:27 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.305 2010/01/23 23:39:27 mrg Exp $ */
+/* $NetBSD: locore.s,v 1.306 2010/02/01 03:43:27 mrg Exp $ */
/*
* Copyright (c) 1996-2002 Eduardo Horvath
@@ -5513,50 +5513,6 @@
membar #Sync
/*
- * icache_flush_page(paddr_t pa)
- *
- * Clear one page from I$.
- *
- */
- .align 8
-ENTRY(icache_flush_page)
-#ifndef _LP64
- COMBINE(%o0, %o1, %o0)
-#endif
-
-#ifdef SPITFIRE
- !!
- !! Linux sez that I$ flushes are not needed for cheetah.
- !!
-
- !! Now do the I$
- srlx %o0, 13-8, %o2
- mov -1, %o1 ! Generate mask for tag: bits [35..8]
- srl %o1, 32-35+7, %o1
- clr %o4
- sll %o1, 7, %o1 ! Mask
- set (2*NBPG), %o5
-
-1:
- ldda [%o4] ASI_ICACHE_TAG, %g0 ! Tag goes in %g1
- dec 32, %o5
- xor %g1, %o2, %g1
- andcc %g1, %o1, %g0
- bne,pt %xcc, 2f
- membar #LoadStore
- stxa %g0, [%o4] ASI_ICACHE_TAG
- membar #StoreLoad
-2:
- brnz,pt %o5, 1b
- inc 32, %o4
-#endif
- sethi %hi(KERNBASE), %o5
- flush %o5
- membar #Sync
- retl
- nop
-
-/*
* cache_flush_phys(paddr_t, psize_t, int);
*
* Clear a set of paddrs from the D$, I$ and if param3 is
Home |
Main Index |
Thread Index |
Old Index