arm64: mm: export __flush_dcache_all

Change-Id: I268a515f98361a4fd152d399262307aadb058344
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
This commit is contained in:
Jianqun Xu
2021-08-05 10:52:55 +08:00
committed by Tao Huang
parent 4370fdf1a4
commit 47e86f6791
2 changed files with 2 additions and 1 deletions

View File

@@ -79,6 +79,7 @@
extern void flush_cache_all(void);
extern void __flush_icache_range(unsigned long start, unsigned long end);
extern int invalidate_icache_range(unsigned long start, unsigned long end);
extern void __flush_dcache_all(void);
extern void __flush_dcache_area(void *addr, size_t len);
extern void __inval_dcache_area(void *addr, size_t len);
extern void __clean_dcache_area_poc(void *addr, size_t len);

View File

@@ -32,7 +32,7 @@
*
* Corrupted registers: x0-x7, x9-x11
*/
__flush_dcache_all:
ENTRY(__flush_dcache_all)
dmb sy // ensure ordering with previous memory accesses
mrs x0, clidr_el1 // read clidr
and x3, x0, #0x7000000 // extract loc from clidr