Important: The information in this document is obsolete and should not be used for new development.
FlushCodeCacheRange
You can use theFlushCodeCacheRangefunction 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
TheFlushCodeCacheRangefunction flushes the current contents of the instruction cache.FlushCodeCacheRangeis an optimized version ofFlushCodeCacheand 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,FlushCodeCacheRangesimply flushes the entire instruction cache.The
FlushCodeCacheRangefunction 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 forFlushCodeCacheRangeare
Trap macro Selector _HWPriv $0009 The registers on entry and exit for
FlushCodeCacheRangeare
Registers on entry A0 Starting address of the range to flush A1 Number of bytes to flush D0 Routine selector
Registers on exit D0 Result code RESULT CODES
noErr 0 No error hwParamErr -502 Processor does not support flushing a range