PATH 
ADC Home > Documentation > Hardware > Device Managers and Drivers > PCI Card Services > Designing PCI Cards and Drivers for Power Macintosh Computers


  

FlushProcessorCache

OSStatus FlushProcessorCache(
                     AddressSpaceID spaceID,
                     LogicalAddress base,
                     By teCount length);
--> spaceID
Target address space identifier.
--> base
Starting address in address space.
--> length
Length of address range, in bytes.
DESCRIPTION

The FlushProcessorCache function forces data from cache out to main memory. The spaceID parameter specifies the address space containing the logical ranges prepared. Current versions of the Mac OS provide only one address space, which it automatically passes to native drivers through DoDriverIO. In general, a driver should always pass the address space it received as a parameter to its DoDriverIO routine in this field. Otherwise, the address space must be specified as kCurrentAddressSpaceID.

EXECUTION CONTEXT

FlushProcessorCache may be called from task level, secondary interrupt level, or hardware interrupt level.

RESULT CODES
noErr 0 No error
paramErr -50 Bad parameter

© 1999 Apple Computer, Inc. – (Last Updated 26 March 99)