*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->NetBSD man pages -> arm_sync_icache (2)              



NAME    [Toc]    [Back]

     arm_sync_icache - clean the cpu data cache and flush the cpu instruction

LIBRARY    [Toc]    [Back]

     library ``libarm''

SYNOPSIS    [Toc]    [Back]

     #include <machine/sysarch.h>

     arm_sync_icache(u_int addr, int len);

DESCRIPTION    [Toc]    [Back]

     arm_sync_icache() will make sure that all the entries in the processor
     instruction cache are synchorised with main memory and that any data in a
     write back cache has been cleaned.  Some ARM processors (e.g SA110) have
     separate instruction and data caches thus any dynamically generated or
     modified code needs to be written back from any data caches to main memory
 and the instruction cache needs to be synchronised with main memory.

     On such processors arm_sync_icache() will clean the data cache and invalidate
 the processor instruction cache to force reloading from main memory.
 On processors that have a shared instruction and data cache and have
     a write through cache (.e.g ARM6) no action needs to be taken.

     The routine takes a start address addr and a length len to describe the
     area of memory that needs to be cleaned and synchronised.

ERRORS    [Toc]    [Back]

     arm_sync_icache() will never fail so will always return 0.

REFERENCES    [Toc]    [Back]

     StrongARM Data Sheet

BSD                             March 29, 2002                             BSD
[ Back ]
 Similar pages
Name OS Title
cacheflush IRIX flush contents of instruction and/or data cache
cacheflush Linux flush contents of instruction and/or data cache
m68k_sync_icache NetBSD instruction cache synchronization
sync OpenBSD force completion of pending disk writes (flush cache)
sync FreeBSD force completion of pending disk writes (flush cache)
vxfs_bc_bufhwm HP-UX VxFS buffer cache high water mark(determines the VxFS buffer cache size)
tcflush Tru64 Flush nontransmitted output data or nonread input data
cache_purge NetBSD name lookup cache
namecache_print NetBSD name lookup cache
afsd OpenBSD AFS cache manager
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service