diff options
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/ata-nand-telechips.c | 2 | ||||
-rw-r--r-- | firmware/target/arm/tms320dm320/creative-zvm/ata-creativezvm.c | 2 | ||||
-rw-r--r-- | firmware/target/mips/ingenic_x1000/installer-x1000.c | 2 |
3 files changed, 3 insertions, 3 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, §or); | 303 | _ata_read_sectors(CFS_CLUSTER2CLUSTER(vfat_inodes_nr[1]), 1, §or); |
304 | inode = (struct cfs_inode*)§or; | 304 | inode = (struct cfs_inode*)§or; |
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 */ |
diff --git a/firmware/target/mips/ingenic_x1000/installer-x1000.c b/firmware/target/mips/ingenic_x1000/installer-x1000.c index acc1d7b711..d2f9e4e5e0 100644 --- a/firmware/target/mips/ingenic_x1000/installer-x1000.c +++ b/firmware/target/mips/ingenic_x1000/installer-x1000.c | |||
@@ -151,7 +151,7 @@ static int updater_init(struct updater* u) | |||
151 | 151 | ||
152 | /* buf_len is a bit oversized here, but it's not really important */ | 152 | /* buf_len is a bit oversized here, but it's not really important */ |
153 | u->buf_len = u->img_len + sizeof(mtar_t) + 2*CACHEALIGN_SIZE; | 153 | u->buf_len = u->img_len + sizeof(mtar_t) + 2*CACHEALIGN_SIZE; |
154 | u->buf_hnd = core_alloc_ex("boot_image", u->buf_len, &buflib_ops_locked); | 154 | u->buf_hnd = core_alloc_ex(u->buf_len, &buflib_ops_locked); |
155 | if(u->buf_hnd < 0) { | 155 | if(u->buf_hnd < 0) { |
156 | rc = IERR_OUT_OF_MEMORY; | 156 | rc = IERR_OUT_OF_MEMORY; |
157 | goto error; | 157 | goto error; |