diff options
author | Wolfgang Denk <wd@denx.de> | 2012-04-30 18:19:28 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2012-04-30 18:19:28 +0200 |
commit | 0a6deb3251a68b5be640ab1b848ca67e906b75ce (patch) | |
tree | 8bf3b48fdf66cad167186110fb6ab4f79a335a57 /disk | |
parent | e0f6a4e8b17afead8add6e528936a505367c091c (diff) | |
parent | 6777a3cf73f621892afe938983918d2aea7730b5 (diff) | |
download | u-boot-imx-0a6deb3251a68b5be640ab1b848ca67e906b75ce.zip u-boot-imx-0a6deb3251a68b5be640ab1b848ca67e906b75ce.tar.gz u-boot-imx-0a6deb3251a68b5be640ab1b848ca67e906b75ce.tar.bz2 |
Merge branch 'agust@denx.de' of git://git.denx.de/u-boot-staging
* 'agust@denx.de' of git://git.denx.de/u-boot-staging:
lin_gadget: use common linux/compat.h
linux/compat.h: rename from linux/mtd/compat.h
lin_gadget: use common mdelay
gunzip: rename z{alloc, free} to gz{alloc, free}
fs/fat: align disk buffers on cache line to enable DMA and cache
part_dos: align disk buffers on cache line to enable DMA and cache
Diffstat (limited to 'disk')
-rw-r--r-- | disk/part_dos.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/disk/part_dos.c b/disk/part_dos.c index b5bcb37..c028aaf 100644 --- a/disk/part_dos.c +++ b/disk/part_dos.c @@ -87,7 +87,7 @@ static int test_block_type(unsigned char *buffer) int test_part_dos (block_dev_desc_t *dev_desc) { - unsigned char buffer[dev_desc->blksz]; + ALLOC_CACHE_ALIGN_BUFFER(unsigned char, buffer, dev_desc->blksz); if ((dev_desc->block_read(dev_desc->dev, 0, 1, (ulong *) buffer) != 1) || (buffer[DOS_PART_MAGIC_OFFSET + 0] != 0x55) || @@ -102,7 +102,7 @@ int test_part_dos (block_dev_desc_t *dev_desc) static void print_partition_extended (block_dev_desc_t *dev_desc, int ext_part_sector, int relative, int part_num) { - unsigned char buffer[dev_desc->blksz]; + ALLOC_CACHE_ALIGN_BUFFER(unsigned char, buffer, dev_desc->blksz); dos_partition_t *pt; int i; @@ -166,7 +166,7 @@ static int get_partition_info_extended (block_dev_desc_t *dev_desc, int ext_part int relative, int part_num, int which_part, disk_partition_t *info) { - unsigned char buffer[dev_desc->blksz]; + ALLOC_CACHE_ALIGN_BUFFER(unsigned char, buffer, dev_desc->blksz); dos_partition_t *pt; int i; |