Changeset 3bf9fdb in rtems


Ignore:
Timestamp:
Jun 13, 2016, 7:46:17 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
10670a5
Parents:
7bf9c8b
git-author:
Sebastian Huber <sebastian.huber@…> (06/13/16 07:46:17)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/13/16 07:47:34)
Message:

i386: Fix _CPU_Bitfield_Find_first_bit()

Bug introduced by b04b76c6a0c87ffc9670d356e793108411ce355a.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/i386/rtems/score/cpu.h

    r7bf9c8b r3bf9fdb  
    553553#define _CPU_Bitfield_Find_first_bit( _value, _output ) \
    554554  { \
    555     register uint16_t   __value_in_register = (_value); \
    556     \
    557     _output = 0; \
    558     \
     555    register uint16_t __value_in_register = ( _value ); \
     556    uint16_t          __output = 0; \
    559557    __asm__ volatile ( "bsfw    %0,%1 " \
    560                     : "=r" (__value_in_register), "=r" (_output) \
    561                     : "0"  (__value_in_register), "1"  (_output) \
     558                    : "=r" ( __value_in_register ), "=r" ( __output ) \
     559                    : "0"  ( __value_in_register ), "1"  ( __output ) \
    562560    ); \
     561    ( _output ) = __output; \
    563562  }
    564563
Note: See TracChangeset for help on using the changeset viewer.