From ba65e91001deb0518be129898b9275fa031e415e Mon Sep 17 00:00:00 2001 From: mrg Date: Mon, 1 Feb 2010 03:43:27 +0000 Subject: [PATCH] remove unused icache_flush_page() implementation. --- sys/arch/sparc64/sparc64/cache.h | 3 +- sys/arch/sparc64/sparc64/locore.s | 46 +------------------------------ 2 files changed, 2 insertions(+), 47 deletions(-) diff --git a/sys/arch/sparc64/sparc64/cache.h b/sys/arch/sparc64/sparc64/cache.h index 3a90ecb31a33..fd5d02f8f7b3 100644 --- a/sys/arch/sparc64/sparc64/cache.h +++ b/sys/arch/sparc64/sparc64/cache.h @@ -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 --git a/sys/arch/sparc64/sparc64/locore.s b/sys/arch/sparc64/sparc64/locore.s index 0981311c3a32..3b14c4801a3d 100644 --- a/sys/arch/sparc64/sparc64/locore.s +++ b/sys/arch/sparc64/sparc64/locore.s @@ -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 @@ -5512,50 +5512,6 @@ ENTRY(dcache_flush_page) retl 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); *