forked from len0rd/rockbox
Remove buflib allocation names, part two
Remove allocation names from the buflib API and fix up all callers. Change-Id: I3df922e258d5f0d711d70e72b56b4ed634fb0f5a
This commit is contained in:
parent
3301c5aa6d
commit
1e9ad3ca0d
39 changed files with 69 additions and 115 deletions
|
|
@ -915,7 +915,7 @@ int nand_init(void)
|
|||
#ifndef BOOTLOADER
|
||||
/* Use chip info to allocate the correct size LPT buffer */
|
||||
lptbuf_size = sizeof(struct lpt_entry) * segments_per_bank * total_banks;
|
||||
lpt_handle = core_alloc("lpt lookup", lptbuf_size);
|
||||
lpt_handle = core_alloc(lptbuf_size);
|
||||
struct lpt_entry* lpt_lookup = core_get_data(lpt_handle);
|
||||
#else
|
||||
/* Use a static array in the bootloader */
|
||||
|
|
|
|||
|
|
@ -303,7 +303,7 @@ static void cfs_init(void)
|
|||
_ata_read_sectors(CFS_CLUSTER2CLUSTER(vfat_inodes_nr[1]), 1, §or);
|
||||
inode = (struct cfs_inode*)§or;
|
||||
#ifndef BOOTLOADER
|
||||
sectors_handle = core_alloc("ata sectors", VFAT_SECTOR_SIZE(inode->filesize));
|
||||
sectors_handle = core_alloc(VFAT_SECTOR_SIZE(inode->filesize));
|
||||
unsigned long *sectors = core_get_data(sectors_handle);
|
||||
#else
|
||||
static unsigned long _sector[VFAT_SECTOR_SIZE(1024*1024*1024)]; /* 1GB guess */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue