remove unused icache_flush_page() implementation.

This commit is contained in:
mrg 2010-02-01 03:43:27 +00:00
parent ee154fc467
commit ba65e91001
2 changed files with 2 additions and 47 deletions

View File

@ -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$ */

View File

@ -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);
*