18.2.6 Initialize L1 Cache
If the target device implements a L1 cache, this is automatically initialized by the runtime
startup code. Based on the definition of the symbol INIT_L1_CACHE
, the
startup code will call the __pic32_init_cache
assembly routine, which
will initialize the primary instruction and primary data caches and ensure the cache and
line sizes for both caches are appropriately configured. By default, the instruction
cache will use a base address that corresponds to the kseg0_program_mem
memory region and the data cache will use a base address that corresponds to the
kseg0_data_mem
memory region.