2 * Cache flushing routines.
4 * Copyright (C) 1999-2001, 2005 Hewlett-Packard Co
5 * David Mosberger-Tang <davidm@hpl.hp.com>
7 #include <asm/asmmacro.h>
11 * flush_icache_range(start,end)
12 * Must flush range from start to end-1 but nothing else (need to
13 * be careful not to touch addresses that may be unmapped).
15 GLOBAL_ENTRY(flush_icache_range)
17 alloc r2=ar.pfs,2,0,0,0
20 shr.u r8=r8,5 // we flush 32 bytes per iteration
22 mov r3=ar.lc // save ar.lc
29 .Loop: fc.i in0 // issuable on M2 only
31 br.cloop.sptk.few .Loop
37 mov ar.lc=r3 // restore ar.lc
39 END(flush_icache_range)