Changeset 09cbe71 in rtems


Ignore:
Timestamp:
May 11, 2017, 7:53:05 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11
Children:
7e91901
Parents:
d2e31f7
git-author:
Sebastian Huber <sebastian.huber@…> (05/11/17 07:53:05)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/11/17 07:57:53)
Message:

bsps/arm: Fix bit field offset in GIC support

Close #3002.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/shared/include/arm-gic.h

    rd2e31f7 r09cbe71  
    4444
    4545#define GIC_ID_TO_TWO_BITS_REG_INDEX(id) ((id) >> 4)
    46 #define GIC_ID_TO_TWO_BITS_REG_OFFSET(id) ((id) & 0xfU)
     46#define GIC_ID_TO_TWO_BITS_REG_OFFSET(id) (((id) & 0xfU) << 1)
    4747
    4848static inline bool gic_id_is_enabled(volatile gic_dist *dist, uint32_t id)
Note: See TracChangeset for help on using the changeset viewer.