index e6284481aeec3064fe4c13df4318c4fe8ef523f0..ae113cd18445d3c458860cb9a27d8f8ca4ae9c11 100644 (file)
btblWrapEcode = 0;
/* Initialize stats and btbl state */
- memset (&bootStats, 0, sizeof(bootStats_t));
+ iblMemset (&bootStats, 0, sizeof(bootStats_t));
boot_init_boot_tbl_inst (&tiBootTable);
- data = malloc (TI_BTBL_BLOCK_SIZE);
+ data = iblMalloc (TI_BTBL_BLOCK_SIZE);
if (data == NULL) {
btblWrapEcode = BTBL_WRAP_ECODE_MALLOC_FAIL;
return;
/* No recovery on block read failure */
if ((*bootFxn->read)(data, blockSize) < 0) {
btblWrapEcode = BTBL_WRAP_ECODE_READ_FAIL;
- free (data);
+ iblFree (data);
return;
}
if (btblEcode == 0)
*entry_point = tiBootTable.code_start_addr;
- free (data);
+ iblFree (data);
}