Changeset 9a1ccb3 in rtems


Ignore:
Timestamp:
Apr 22, 1996, 4:43:44 PM (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
96981e3a
Parents:
f581163a
Message:

added stack allocation fields to the cpu table

added CPU_M68K_EXTB_L model flag

Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/cpu/m68k/cpu.h

    rf581163a r9a1ccb3  
    140140  unsigned32   interrupt_stack_size;
    141141  unsigned32   extra_mpci_receive_server_stack;
     142  void *     (*stack_allocate_hook)( unsigned32 );
     143  void       (*stack_free_hook)( void* );
     144  /* end of fields required on all CPUs */
     145
    142146  m68k_isr    *interrupt_vector_table;
    143147}   rtems_cpu_table;
     
    334338   _CPU_Priority_bits_index is not needed), handles the 0 case, and
    335339   does not molest _value -- jsg */
    336 #ifndef m68000
     340#if ( M68K_HAS_EXTB_L == 1 )
    337341#define _CPU_Bitfield_Find_first_bit( _value, _output ) \
    338342  { \
     
    372376       : "cc" ) ; \
    373377  }
    374 #endif /* m68000 */
     378#endif /* M68K_HAS_EXTB_L */
    375379
    376380#endif
  • c/src/exec/score/cpu/m68k/m68k.h

    rf581163a r9a1ccb3  
    7777 *    implement the DLE or multiplexed bus modes.  The 68EC040 does not
    7878 *    implement the output buffer impedance selection mode of operation."
    79  */
    80  
     79 *
     80 *  M68K_HAS_EXTB_L is used to enable/disable usage of the extb.l instruction
     81 *  which is not available for 68000 or 68ec000 cores (68000, 68001, 68008,
     82 *  68010, 68302, 68306, 68307).  This instruction is available on the 68020
     83 *  up and the cpu32 based models. 
     84 *
     85 *  NOTE:
     86 *    Eventually it would be nice to evaluate doing a lot of this section
     87 *    by having each model specigy which core it uses and then go from there.
     88 */
     89
    8190#if defined(m68000)
    8291 
     
    8796#define M68K_HAS_BFFFO           0
    8897#define M68K_HAS_PREINDEXING     0
     98#define M68K_HAS_EXTB_L          0
    8999
    90100#elif defined(m68020)
     
    96106#define M68K_HAS_BFFFO           1
    97107#define M68K_HAS_PREINDEXING     1
     108#define M68K_HAS_EXTB_L          1
    98109 
    99110#elif defined(m68020_nofp)
     
    105116#define M68K_HAS_BFFFO           1
    106117#define M68K_HAS_PREINDEXING     1
     118#define M68K_HAS_EXTB_L          1
    107119 
    108120#elif defined(m68030)
     
    114126#define M68K_HAS_BFFFO           1
    115127#define M68K_HAS_PREINDEXING     1
     128#define M68K_HAS_EXTB_L          1
    116129 
    117130#elif defined(m68040)
     
    123136#define M68K_HAS_BFFFO           1
    124137#define M68K_HAS_PREINDEXING     1
     138#define M68K_HAS_EXTB_L          1
    125139 
    126140#elif defined(m68lc040)
     
    132146#define M68K_HAS_BFFFO           1
    133147#define M68K_HAS_PREINDEXING     1
     148#define M68K_HAS_EXTB_L          1
    134149 
    135150#elif defined(m68ec040)
     
    141156#define M68K_HAS_BFFFO           1
    142157#define M68K_HAS_PREINDEXING     1
     158#define M68K_HAS_EXTB_L          1
    143159
    144160#elif defined(m68302)
     
    150166#define M68K_HAS_BFFFO           0
    151167#define M68K_HAS_PREINDEXING     0
     168#define M68K_HAS_EXTB_L          0
    152169
    153170#elif defined(m68332)
     
    159176#define M68K_HAS_BFFFO           0
    160177#define M68K_HAS_PREINDEXING     0
     178#define M68K_HAS_EXTB_L          1
    161179
    162180#elif defined(m68360)
     
    168186#define M68K_HAS_BFFFO           0
    169187#define M68K_HAS_PREINDEXING     1
     188#define M68K_HAS_EXTB_L          1
    170189
    171190#else
Note: See TracChangeset for help on using the changeset viewer.