summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-10-15 23:55:39 +0100
committerAidan MacDonald <amachronic@protonmail.com>2023-01-13 10:32:54 +0000
commit1e9ad3ca0d9bf3e917eb2beb460421155144760a (patch)
tree752590b42f338f03223e024fc5b642ac9a8a5598 /firmware/target
parent3301c5aa6db76832dbb9af8f72d29b348190fd91 (diff)
downloadrockbox-1e9ad3ca0d9bf3e917eb2beb460421155144760a.tar.gz
rockbox-1e9ad3ca0d9bf3e917eb2beb460421155144760a.zip
Remove buflib allocation names, part two
Remove allocation names from the buflib API and fix up all callers. Change-Id: I3df922e258d5f0d711d70e72b56b4ed634fb0f5a
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/ata-nand-telechips.c2
-rw-r--r--firmware/target/arm/tms320dm320/creative-zvm/ata-creativezvm.c2
-rw-r--r--firmware/target/mips/ingenic_x1000/installer-x1000.c2
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, &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 */
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;