Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
About Cache.c
Cache.c contains code to correctly flush instruction and data caches on all Macintosh CPUs. |
Beginning with the Macintosh II, developers were faced with situations where instruction and/or data caches needed to be flushed for code to execute correctly. Unfortunately, despite recent improvements (i.e. _HWPriv, see Tech Note #261), cache flushing remains highly CPU and system specific and developers have had difficulty doing it in a way the ensures both forward and backward compatibility. Cache.c contains a single function call that will work across all platforms, yet still provides access to such advanced MC68040 features as selective cache range flushing. |
See instructions in Cache.h for details on usage. |
Dave Radcliffe |
Apple DTS |
January, 1992 |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14