include: Implement API's for cache flush and cache invalidate

arch: arc: core: Add Cache Implementation function & prototype for arc

Signed-off-by: Aastha Grover <aastha.grover@intel.com>
This commit is contained in:
Aastha Grover 2020-04-28 13:14:54 -07:00 committed by Andrew Boie
commit 97ecad69f0
5 changed files with 144 additions and 76 deletions

View file

@ -97,6 +97,15 @@ static void init_cache_line_size(void)
#define init_cache_line_size() do { } while ((0))
#endif
size_t arch_cache_line_size_get(void)
{
#if defined(CONFIG_CACHE_LINE_SIZE_DETECT)
return sys_cache_line_size;
#else
return 0;
#endif
}
static int init_cache(struct device *unused)
{
ARG_UNUSED(unused);