2 * Cache flushing routines.
4 * Copyright (C) 1999-2000 Hewlett-Packard Co
5 * Copyright (C) 1999-2000 David Mosberger-Tang <davidm@hpl.hp.com>
7 #include <asm/asmmacro.h>
15 GLOBAL_ENTRY(ia64_flush_icache_page)
17 alloc r2=ar.pfs,1,0,0,0
19 mov r3=ar.lc // save ar.lc
23 mov r8=PAGE_SIZE/64-1 // repeat/until loop
28 .Loop1: fc in0 // issuable on M0 only
32 br.cloop.sptk.few .Loop1
38 mov ar.lc=r3 // restore ar.lc
40 END(ia64_flush_icache_page)