summaryrefslogtreecommitdiff
path: root/libcpu/arm/cortex-a/cache.h
blob: c3e096ba0c178a953a2a2700a7fcc0ec1fa8d107 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2019-03-29     quanzhao     the first version
 */

#ifndef __CACHE_H__
#define __CACHE_H__

static inline void rt_hw_icache_invalidate_all(void)
{
    __asm__ volatile("mcr p15, 0, %0, c7, c5, 0"::"r"(0ul));
}

#endif /* __CACHE_H__ */