arm: implement grub_arch_sync_dma_caches

This commit is contained in:
Vladimir Serbinenko committed 2016-02-23 12:06:00 +01:00
1 parent 9e161d1302
commit 07cd46627b
2 files changed
+43 -3

No files matched your search

+13 -1
View File
@@ -33,6 +33,18 @@
# define ISB isb
#define ARMV7 1
FUNCTION(grub_arm_clean_dcache_range_poc_armv7)
DSB
@ Clean data cache for range to point-of-coherence
1: cmp r0, r1
bge 2f
mcr p15, 0, r0, c7, c14, 1 @ DCCMVAC
add r0, r0, r2 @ Next line
b 1b
2: DSB
bx lr
@ r0 - CLIDR
@ r1 - LoC
@ r2 - current level
@@ -123,4 +135,4 @@ clean_invalidate_dcache:
pop {r4-r12, lr}
bx lr
#include "cache.S"
#include "cache.S"