IxOsalOsCacheMMU.c 633 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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
  17. * SPDX-License-Identifier: BSD-3-Clause
  18. * @par
  19. * -- End of Copyright Notice --
  20. */
  21. #include "IxOsal.h"
  22. #include <malloc.h>
  23. /*
  24. * Allocate on a cache line boundary (null pointers are
  25. * not affected by this operation). This operation is NOT cache safe.
  26. */
  27. void *
  28. ixOsalCacheDmaMalloc (UINT32 n)
  29. {
  30. return malloc(n);
  31. }
  32. /*
  33. *
  34. */
  35. void
  36. ixOsalCacheDmaFree (void *ptr)
  37. {
  38. free(ptr);
  39. }