Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Memory /
Chapter 4 - Memory Management Utilities / Memory Management Utilities Reference
Routines / Manipulating the Processor Caches


FlushCodeCacheRange

You can use the FlushCodeCacheRange function to flush a portion of the instruction cache.

FUNCTION FlushCodeCacheRange (address: UNIV Ptr; count: LongInt): 
                              OSErr;
address
The starting address of the range to flush.
count
The size, in bytes, of the range to flush.
DESCRIPTION
The FlushCodeCacheRange function flushes the current contents of the instruction cache. FlushCodeCacheRange is an optimized version of FlushCodeCache and is intended for use on processors such as the MC68040 that support flushing only a portion of the instruction cache. On processors that do not have this capability, FlushCodeCacheRange simply flushes the entire instruction cache.

The FlushCodeCacheRange function might flush a larger portion of the instruction cache than requested if it would be inefficient to satisfy the request exactly.

ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for FlushCodeCacheRange are
Trap macroSelector
_HWPriv$0009

The registers on entry and exit for FlushCodeCacheRange are
Registers on entry
A0Starting address of the range to flush
A1Number of bytes to flush
D0Routine selector
Registers on exit
D0Result code

RESULT CODES
noErr0No error
hwParamErr-502Processor does not support flushing a range

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996