summaryrefslogtreecommitdiff
path: root/disk/part_iso.c
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2017-08-23 09:46:17 -0700
committerTom Rini <trini@konsulko.com>2017-08-26 14:56:15 -0400
commit5c27535dc9a0a4858cb3efad2400ffe83c678441 (patch)
tree679c069cf84f14e92ff8a2e5b75c092ae94cfd4b /disk/part_iso.c
parent527d86558eb45edd1543e38d77cd1e1f09936ec1 (diff)
downloadu-boot-5c27535dc9a0a4858cb3efad2400ffe83c678441.tar.gz
u-boot-5c27535dc9a0a4858cb3efad2400ffe83c678441.tar.bz2
u-boot-5c27535dc9a0a4858cb3efad2400ffe83c678441.zip
disk: part: align buffer so it can be used with DMA enabled drivers
When using ISO partitions with a DMA enabled block device driver reading the ISO partition leads to unaligned DMA operations: CACHE: Misaligned operation at range [bffb7da8, bffb85a8] Align the buffer to make sure we pass a buffer which works for DMA operations. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'disk/part_iso.c')
-rw-r--r--disk/part_iso.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disk/part_iso.c b/disk/part_iso.c
index bb8ed658f2..8aef251f4e 100644
--- a/disk/part_iso.c
+++ b/disk/part_iso.c
@@ -24,7 +24,7 @@
#undef CHECK_FOR_POWERPC_PLATTFORM
#define CD_SECTSIZE 2048
-static unsigned char tmpbuf[CD_SECTSIZE];
+static unsigned char tmpbuf[CD_SECTSIZE] __aligned(ARCH_DMA_MINALIGN);
unsigned long iso_dread(struct blk_desc *block_dev, lbaint_t start,
lbaint_t blkcnt, void *buffer)