Searched refs:pMemBlock (Results 1 – 1 of 1) sorted by relevance
114 TMemBlock *pMemBlock; in mem_Alloc() local121 pMemBlock = (TMemBlock *) os_memoryAlloc (pMemMng->hOs, total); in mem_Alloc()122 pMemBlock->size = size; in mem_Alloc()123 pMemBlock->signature = MEM_BLOCK_START; in mem_Alloc()124 *(TI_UINT32 *)((TI_UINT8 *)pMemBlock + total - sizeof(TI_UINT32)) = MEM_BLOCK_END; in mem_Alloc()132 return (void*)((TI_UINT8 *)pMemBlock + sizeof(TMemBlock)); in mem_Alloc()194 TMemBlock *pMemBlock = (TMemBlock *)((TI_UINT8 *)ptr - sizeof(TMemBlock)); in mem_Free() local200 if (pMemBlock->signature != MEM_BLOCK_START) in mem_Free()203 … os_printf ("os_memoryFree: memory block signature is incorrect - 0x%x\n", pMemBlock->signature); in mem_Free()209 *(TI_UINT8 *)(&pMemBlock->signature) = '~'; in mem_Free()[all …]