2006-05-30 13:56:48 +00:00
|
|
|
/**
|
|
|
|
* @file IxOsalOsCacheMMU.c (linux)
|
|
|
|
*
|
|
|
|
* @brief Cache MemAlloc and MemFree.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @par
|
|
|
|
* IXP400 SW Release version 1.5
|
|
|
|
*
|
|
|
|
* -- Copyright Notice --
|
|
|
|
*
|
|
|
|
* @par
|
|
|
|
* Copyright 2001-2005, Intel Corporation.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* @par
|
2013-07-28 20:12:47 +00:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2006-05-30 13:56:48 +00:00
|
|
|
* @par
|
|
|
|
* -- End of Copyright Notice --
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "IxOsal.h"
|
|
|
|
|
|
|
|
#include <malloc.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Allocate on a cache line boundary (null pointers are
|
|
|
|
* not affected by this operation). This operation is NOT cache safe.
|
|
|
|
*/
|
|
|
|
void *
|
|
|
|
ixOsalCacheDmaMalloc (UINT32 n)
|
|
|
|
{
|
|
|
|
return malloc(n);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void
|
|
|
|
ixOsalCacheDmaFree (void *ptr)
|
|
|
|
{
|
|
|
|
free(ptr);
|
|
|
|
}
|