1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

ARM: Remove ARMv4 #defines from busdma_machdep-v6.c, it's ARMv6

specific file. Consistently use BUSDMA_DCACHE_ALIGN for cache
line alignment.

MFC after: 1 week
This commit is contained in:
Michal Meloun 2016-10-06 13:53:17 +00:00
parent 4a1cdaba5f
commit fd3d8ea51a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=306759

View File

@ -60,13 +60,8 @@ __FBSDID("$FreeBSD$");
#include <machine/cpu-v6.h>
#include <machine/md_var.h>
#if __ARM_ARCH < 6
#define BUSDMA_DCACHE_ALIGN arm_dcache_align
#define BUSDMA_DCACHE_MASK arm_dcache_align_mask
#else
#define BUSDMA_DCACHE_ALIGN cpuinfo.dcache_line_size
#define BUSDMA_DCACHE_MASK cpuinfo.dcache_line_mask
#endif
#define MAX_BPAGES 64
#define MAX_DMA_SEGMENTS 4096
@ -331,7 +326,7 @@ cacheline_bounce(bus_dmamap_t map, bus_addr_t addr, bus_size_t size)
if (map->flags & (DMAMAP_DMAMEM_ALLOC | DMAMAP_COHERENT | DMAMAP_MBUF))
return (0);
return ((addr | size) & arm_dcache_align_mask);
return ((addr | size) & BUSDMA_DCACHE_MASK);
}
/*