summaryrefslogtreecommitdiff
path: root/firmware/target/arm
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/ata-nand-telechips.c2
-rw-r--r--firmware/target/arm/tms320dm320/creative-zvm/ata-creativezvm.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/ata-nand-telechips.c b/firmware/target/arm/ata-nand-telechips.c
index 55f6b1f3f7..d61c223219 100644
--- a/firmware/target/arm/ata-nand-telechips.c
+++ b/firmware/target/arm/ata-nand-telechips.c
@@ -915,7 +915,7 @@ int nand_init(void)
915#ifndef BOOTLOADER 915#ifndef BOOTLOADER
916 /* Use chip info to allocate the correct size LPT buffer */ 916 /* Use chip info to allocate the correct size LPT buffer */
917 lptbuf_size = sizeof(struct lpt_entry) * segments_per_bank * total_banks; 917 lptbuf_size = sizeof(struct lpt_entry) * segments_per_bank * total_banks;
918 lpt_handle = core_alloc("lpt lookup", lptbuf_size); 918 lpt_handle = core_alloc(lptbuf_size);
919 struct lpt_entry* lpt_lookup = core_get_data(lpt_handle); 919 struct lpt_entry* lpt_lookup = core_get_data(lpt_handle);
920#else 920#else
921 /* Use a static array in the bootloader */ 921 /* Use a static array in the bootloader */
diff --git a/firmware/target/arm/tms320dm320/creative-zvm/ata-creativezvm.c b/firmware/target/arm/tms320dm320/creative-zvm/ata-creativezvm.c
index f13904628d..a1985472a0 100644
--- a/firmware/target/arm/tms320dm320/creative-zvm/ata-creativezvm.c
+++ b/firmware/target/arm/tms320dm320/creative-zvm/ata-creativezvm.c
@@ -303,7 +303,7 @@ static void cfs_init(void)
303 _ata_read_sectors(CFS_CLUSTER2CLUSTER(vfat_inodes_nr[1]), 1, &sector); 303 _ata_read_sectors(CFS_CLUSTER2CLUSTER(vfat_inodes_nr[1]), 1, &sector);
304 inode = (struct cfs_inode*)&sector; 304 inode = (struct cfs_inode*)&sector;
305#ifndef BOOTLOADER 305#ifndef BOOTLOADER
306 sectors_handle = core_alloc("ata sectors", VFAT_SECTOR_SIZE(inode->filesize)); 306 sectors_handle = core_alloc(VFAT_SECTOR_SIZE(inode->filesize));
307 unsigned long *sectors = core_get_data(sectors_handle); 307 unsigned long *sectors = core_get_data(sectors_handle);
308#else 308#else
309 static unsigned long _sector[VFAT_SECTOR_SIZE(1024*1024*1024)]; /* 1GB guess */ 309 static unsigned long _sector[VFAT_SECTOR_SIZE(1024*1024*1024)]; /* 1GB guess */