Skip to content

Commit

Permalink
cache: export clean and invalidate
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Aug 25, 2017
1 parent c87fbef commit 48d090a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mm/cache-v6.S
Expand Up @@ -201,7 +201,7 @@ ENTRY(v6_flush_kern_dcache_area)
* - start - virtual start address of region
* - end - virtual end address of region
*/
v6_dma_inv_range:
ENTRY(v6_dma_inv_range)
#ifdef CONFIG_DMA_CACHE_RWFO
ldrb r2, [r0] @ read for ownership
strb r2, [r0] @ write for ownership
Expand Down Expand Up @@ -246,7 +246,7 @@ v6_dma_inv_range:
* - start - virtual start address of region
* - end - virtual end address of region
*/
v6_dma_clean_range:
ENTRY(v6_dma_clean_range)
bic r0, r0, #D_CACHE_LINE_SIZE - 1
1:
#ifdef CONFIG_DMA_CACHE_RWFO
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/mm/cache-v7.S
Expand Up @@ -349,7 +349,7 @@ ENDPROC(v7_flush_kern_dcache_area)
* - start - virtual start address of region
* - end - virtual end address of region
*/
v7_dma_inv_range:
ENTRY(v7_dma_inv_range)
dcache_line_size r2, r3
sub r3, r2, #1
tst r0, r3
Expand Down Expand Up @@ -377,7 +377,7 @@ ENDPROC(v7_dma_inv_range)
* - start - virtual start address of region
* - end - virtual end address of region
*/
v7_dma_clean_range:
ENTRY(v7_dma_clean_range)
dcache_line_size r2, r3
sub r3, r2, #1
bic r0, r0, r3
Expand Down

0 comments on commit 48d090a

Please sign in to comment.