Changeset 13d3a37 in rtems for cpukit/libblock


Ignore:
Timestamp:
May 24, 2012, 3:15:05 PM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
4acbff6
Parents:
e7096b1f
git-author:
Sebastian Huber <sebastian.huber@…> (05/24/12 15:15:05)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/24/12 15:36:49)
Message:

libblock: Fix read request block count calculation

File:
1 edited

Legend:

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

    re7096b1f r13d3a37  
    18491849  rtems_blkdev_bnum   media_block_end = dd->start + dd->size;
    18501850  rtems_blkdev_bnum   media_block_count = dd->block_to_media_block_shift >= 0 ?
    1851     dd->block_size >> dd->block_to_media_block_shift
     1851    1U << dd->block_to_media_block_shift
    18521852      : dd->block_size / dd->media_block_size;
    18531853  uint32_t            block_size = dd->block_size;
Note: See TracChangeset for help on using the changeset viewer.