/** * @brief This function frees memory * * @param[in] *pMem : Pointer to be free * @param[in] nMemType : Memory type to be free * * @return none * * @author SongHo Yoon * @version 1.0.0 * */ PUBLIC VOID FSR_OAM_FreeExt(UINT32 nMemChunkID, VOID *pMem, UINT32 nMemType) { #if defined(FSR_USE_DUAL_CORE) if (nMemType == FSR_OAM_LOCAL_MEM) { FSR_OAM_Free(pMem); } else { FSR_OAM_ResetMalloc(nMemChunkID, FALSE32); } #endif }
/** * @brief This function frees memory * * @param[in] *pMem : Pointer to be free * @param[in] nMemType : Memory type to be free * * @return none * * @author SongHo Yoon * @version 1.0.0 * */ PUBLIC VOID FSR_OAM_FreeExt(UINT32 nPDev, VOID *pMem, UINT32 nMemType) { UINT32 nVol; nVol = nPDev / FSR_MAX_VOLS; if (nMemType == FSR_OAM_LOCAL_MEM) { FSR_OAM_Free(pMem); } else /* nMemType == FSR_OAM_SHARED_MEM */ { #if defined(FSR_USE_DUAL_CORE) gnSMallocPtr[nVol] = SHARED_MEMORY_RESET; #endif } }