Wolfgang Denk | 4646d2a | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 1 | /** |
| 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 Denk | c57eadc | 2013-07-28 22:12:47 +0200 | [diff] [blame] | 17 | * SPDX-License-Identifier: BSD-3-Clause |
Wolfgang Denk | 4646d2a | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 18 | * @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 | */ |
| 30 | void * |
| 31 | ixOsalCacheDmaMalloc (UINT32 n) |
| 32 | { |
| 33 | return malloc(n); |
| 34 | } |
| 35 | |
| 36 | /* |
| 37 | * |
| 38 | */ |
| 39 | void |
| 40 | ixOsalCacheDmaFree (void *ptr) |
| 41 | { |
| 42 | free(ptr); |
| 43 | } |