blob: 72d22e5882c5935d0019c0817352ab96730f9b3f [file] [log] [blame]
Wolfgang Denkba94a1b2006-05-30 15:56:48 +02001/**
2 * @file IxOsalOsCacheMMU.c (linux)
3 *
4 * @brief Cache MemAlloc and MemFree.
5 *
6 *
7 * @par
8 * IXP400 SW Release version 1.5
9 *
10 * -- Copyright Notice --
11 *
12 * @par
13 * Copyright 2001-2005, Intel Corporation.
14 * All rights reserved.
15 *
16 * @par
Wolfgang Denkcb3761e2013-07-28 22:12:47 +020017 * SPDX-License-Identifier: BSD-3-Clause
Wolfgang Denkba94a1b2006-05-30 15:56:48 +020018 * @par
19 * -- End of Copyright Notice --
20 */
21
22#include "IxOsal.h"
23
24#include <malloc.h>
25
26/*
27 * Allocate on a cache line boundary (null pointers are
28 * not affected by this operation). This operation is NOT cache safe.
29 */
30void *
31ixOsalCacheDmaMalloc (UINT32 n)
32{
33 return malloc(n);
34}
35
36/*
37 *
38 */
39void
40ixOsalCacheDmaFree (void *ptr)
41{
42 free(ptr);
43}