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:
parent
568211738d
commit
97ecad69f0
5 changed files with 144 additions and 76 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue