Changeset 60a3fa0c in rtems


Ignore:
Timestamp:
Aug 19, 2008, 2:19:12 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
ea0586b1
Parents:
3fe64cb5
Message:

2008-08-19 Joel Sherrill <joel.sherrill@…>

  • cpu.c, rtems/score/cpu.h: Add extern for bfffo table and rename it to indicate that it is specific to this architecture.
Location:
cpukit/score/cpu/m68k
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/m68k/ChangeLog

    r3fe64cb5 r60a3fa0c  
     12008-08-19      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * cpu.c, rtems/score/cpu.h: Add extern for bfffo table and rename it to
     4        indicate that it is specific to this architecture.
     5
    162008-07-31      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • cpukit/score/cpu/m68k/cpu.c

    r3fe64cb5 r60a3fa0c  
    160160 * Returns table for duplication of the BFFFO instruction (16 bits only)
    161161 */
    162 const unsigned char __BFFFOtable[256] = {
     162const unsigned char _CPU_m68k_BFFFO_table[256] = {
    163163    8, 7, 6, 6, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4,
    164164    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
  • cpukit/score/cpu/m68k/rtems/score/cpu.h

    r3fe64cb5 r60a3fa0c  
    518518#define CPU_USE_GENERIC_BITFIELD_DATA FALSE
    519519
     520#if ( M68K_HAS_BFFFO != 1 )
     521/*
     522 *  Lookup table for BFFFO simulation
     523 */
     524extern const unsigned char _CPU_m68k_BFFFO_table[256];
     525#endif
     526
    520527#if ( M68K_HAS_BFFFO == 1 )
    521528
     
    538545   does not molest _value -- jsg */
    539546#if ( defined(__mcoldfire__) )
     547
    540548#define _CPU_Bitfield_Find_first_bit( _value, _output ) \
    541549  { \
    542     extern const unsigned char __BFFFOtable[256]; \
    543550    register int dumby; \
    544551    \
     
    555562       "0: and.l   #0xff,%0\n"   \
    556563       : "=&d" ((_output)), "=&d" ((dumby))    \
    557        : "d" ((_value)), "ao" ((__BFFFOtable)) \
     564       : "d" ((_value)), "ao" ((_CPU_m68k_BFFFO_table)) \
    558565       : "cc" ) ; \
    559566  }
     
    561568#define _CPU_Bitfield_Find_first_bit( _value, _output ) \
    562569  { \
    563     extern const unsigned char __BFFFOtable[256]; \
    564570    register int dumby; \
    565571    \
     
    574580       "0:\n"                      \
    575581       : "=&d" ((_output)), "=&d" ((dumby)) \
    576        : "d" ((_value)), "ao" ((__BFFFOtable)) \
     582       : "d" ((_value)), "ao" ((_CPU_m68k_BFFFO_table)) \
    577583       : "cc" ) ; \
    578584  }
     
    580586#define _CPU_Bitfield_Find_first_bit( _value, _output ) \
    581587  { \
    582     extern const unsigned char __BFFFOtable[256]; \
    583588    register int dumby; \
    584589    \
     
    593598       "0:\n"                      \
    594599       : "=&d" ((_output)), "=&d" ((dumby)) \
    595        : "d" ((_value)), "ao" ((__BFFFOtable)) \
     600       : "d" ((_value)), "ao" ((_CPU_m68k_BFFFO_table)) \
    596601       : "cc" ) ; \
    597602  }
Note: See TracChangeset for help on using the changeset viewer.