init_cacheattr()

Initialize board-level caches, and populate the cacheattr member in the
system page.

Synopsis:

void init_cacheattr (void)

Arguments:

None.

Description:

This function initializes the system page's
cacheattr
member with information about board-level caches. This function may be a stub, if
there are no board-level caches. However, it may also be used to handle hardware
errata that affect board-level caches, or to improve performance.

For many x86 platforms, the generic function works. For ARM platforms, board-specific
functions are often required.

Note: The
init_cpuinfo()
function initializes caches implemented in the CPU.

Example:

Below is the code for a init_cacheattr() function that looks after errata
and improves performance of an ARM board (the Texas Instruments DRA74x and DRA75x (Jacinto 6)
Vayu EVM):