This file provides subprograms necessary to handle the cache on the Cortex-M7 family of CPU.
procedure Clean_DCache
(Start : System.Address;
Len : Natural)
This ensures that the data cache region do not contain any "dirty" data, which is data that has been modified by the CPU but has not been synchronized yet with the main memory. This make sure that any peripheral accessing the region will see the updated data.
procedure Clean_Invalidate_DCache
(Start : System.Address;
Len : Natural)
Performs both clean and invalidate operations.
function D_Cache_Enabled return Boolean
procedure Disable_D_Cache
procedure Disable_I_Cache
procedure Enable_D_Cache
procedure Enable_I_Cache
function I_Cache_Enabled return Boolean
procedure Invalidate_DCache
(Start : System.Address;
Len : Natural)
Invalidates the Data Cache for the specified region. Note that if the cache is dirty (e.g. contains updated data that has not been synchronized with the main memory), then such data will be lost. Calling this subprogram ensures that the main memory will be read instead of values from the cache.