DC_Disable

Syntax

#include <nitro/os.h>
BOOL DC_Disable( void );

Arguments

None.

Return Values

Previous permission/prohibition setting for data cache use.

Description

This function prohibits use of all data cache.

The return value is the use permission/prohibit setting for the data cache before this function is called. When TRUE, use of the cache was permitted; when FALSE, it was prohibited.

Reading and writing the main memory in byte units will not function properly when data cache use is prohibited because the library were created on the assumption that the cache is enabled. Since all of the libraries were created under the assumption that caching is enabled, unexpected problems may occur due to this assumption. Therefore, do not prohibit the use of caching.

Internal Operation

Operates register 1 of the system control coprocessor.

See Also

DC_Enable, DC_Restore

Revision History

2004/02/09 Added caution concerning prohibiting the use of cache
2003/12/22 Initial version.


CONFIDENTIAL