Changeset e681762 in rtems
- Timestamp:
- 11/25/14 15:12:59 (9 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 0a0ded70
- Parents:
- 7e5c9b89
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libblock/src/bdbuf.c
r7e5c9b89 re681762 20 20 * issues. 21 21 * 22 * Copyright (c) 2009-201 2embedded brains GmbH.22 * Copyright (c) 2009-2014 embedded brains GmbH. 23 23 */ 24 24 … … 40 40 #include <rtems.h> 41 41 #include <rtems/error.h> 42 #include <rtems/malloc.h>43 42 44 43 #include "rtems/bdbuf.h" … … 1600 1599 /* 1601 1600 * Allocate memory for buffer memory. The buffer memory will be cache 1602 * aligned. It is possible to free the memory allocated by rtems_memalign() 1603 * with free(). Return 0 if allocated. 1604 * 1605 * The memory allocate allows a 1601 * aligned. It is possible to free the memory allocated by 1602 * rtems_cache_aligned_malloc() with free(). 1606 1603 */ 1607 if (rtems_memalign ((void **) &bdbuf_cache.buffers,1608 rtems_cache_get_data_line_size(),1609 bdbuf_cache.buffer_min_count * bdbuf_config.buffer_min) != 0)1604 bdbuf_cache.buffers = rtems_cache_aligned_malloc(bdbuf_cache.buffer_min_count 1605 * bdbuf_config.buffer_min); 1606 if (bdbuf_cache.buffers == NULL) 1610 1607 goto error; 1611 1608
Note: See TracChangeset
for help on using the changeset viewer.