Changeset 3bb9c61c in rtems


Ignore:
Timestamp:
11/20/14 08:03:50 (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
a634feb
Parents:
50440c0
git-author:
Sebastian Huber <sebastian.huber@…> (11/20/14 08:03:50)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/20/14 10:36:07)
Message:

bdbuf: Use rtems_cache_get_data_line_size()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/src/bdbuf.c

    r50440c0 r3bb9c61c  
    15141514  uint8_t*            buffer;
    15151515  size_t              b;
    1516   size_t              cache_aligment;
    15171516  rtems_status_code   sc;
    15181517
     
    15331532      > RTEMS_MINIMUM_STACK_SIZE / 8U)
    15341533    return RTEMS_INVALID_NUMBER;
    1535 
    1536   /*
    1537    * For unspecified cache alignments we use the CPU alignment.
    1538    */
    1539   cache_aligment = 32; /* FIXME rtems_cache_get_data_line_size() */
    1540   if (cache_aligment <= 0)
    1541     cache_aligment = CPU_ALIGNMENT;
    15421534
    15431535  bdbuf_cache.sync_device = BDBUF_INVALID_DEV;
     
    16141606   */
    16151607  if (rtems_memalign ((void **) &bdbuf_cache.buffers,
    1616                       cache_aligment,
     1608                      rtems_cache_get_data_line_size(),
    16171609                      bdbuf_cache.buffer_min_count * bdbuf_config.buffer_min) != 0)
    16181610    goto error;
Note: See TracChangeset for help on using the changeset viewer.