Changeset e8367362 in rtems


Ignore:
Timestamp:
Aug 18, 1999, 7:57:40 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
f2180e0
Parents:
6fc973e
Message:

Slightly cleaner way to switch on the CPU model.

Files:
2 edited

Legend:

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

    r6fc973e re8367362  
    2929 *  in a particular member of the family.
    3030 *
    31  *  NOTE: For now i960 is really the i960ca.  eventually need
    32  *        to put in at least support for FPU.
    33  */
    34 
    35 #if defined(__i960CA__)
     31 *  NOTE: For now i960 support is for models without an FPU.
     32 *        The stubs for FP routines are in  place so only need to be filled in.
     33 *
     34 *  NOTE: RTEMS defines a canonical name for each cpu model.
     35 */
     36
     37#if defined(__i960CA__) || defined(__i960_CA__) || defined(__i960CA)
    3638
    3739#define CPU_MODEL_NAME  "i960ca"
     40#define __RTEMS__i960CA__
    3841#define I960_HAS_FPU 0
    3942
    40 #elif defined(i960ha)
     43#elif defined(__i960HA__) || defined(__i960_HA__) || defined(__i960HA)
    4144
    4245#define CPU_MODEL_NAME  "i960ha"
     46#define __RTEMS_I960HA__
    4347#define I960_HAS_FPU 0
    4448
     
    6266 */
    6367 
    64 #if defined(__i960CA__)
     68#if defined(__RTEMS_I960CA__)
    6569 
    6670/* i960CA control structures */
     
    127131typedef i960ca_PRCB i960_PRCB;
    128132
    129 #elif defined(__i960HA__) || defined(__i960_HA__) || defined(__i960HA)
     133#elif defined(__RTEMS_I960HA__)
    130134
    131135/* i960HA control structures */
  • cpukit/score/cpu/i960/rtems/score/i960.h

    r6fc973e re8367362  
    2929 *  in a particular member of the family.
    3030 *
    31  *  NOTE: For now i960 is really the i960ca.  eventually need
    32  *        to put in at least support for FPU.
    33  */
    34 
    35 #if defined(__i960CA__)
     31 *  NOTE: For now i960 support is for models without an FPU.
     32 *        The stubs for FP routines are in  place so only need to be filled in.
     33 *
     34 *  NOTE: RTEMS defines a canonical name for each cpu model.
     35 */
     36
     37#if defined(__i960CA__) || defined(__i960_CA__) || defined(__i960CA)
    3638
    3739#define CPU_MODEL_NAME  "i960ca"
     40#define __RTEMS__i960CA__
    3841#define I960_HAS_FPU 0
    3942
    40 #elif defined(i960ha)
     43#elif defined(__i960HA__) || defined(__i960_HA__) || defined(__i960HA)
    4144
    4245#define CPU_MODEL_NAME  "i960ha"
     46#define __RTEMS_I960HA__
    4347#define I960_HAS_FPU 0
    4448
     
    6266 */
    6367 
    64 #if defined(__i960CA__)
     68#if defined(__RTEMS_I960CA__)
    6569 
    6670/* i960CA control structures */
     
    127131typedef i960ca_PRCB i960_PRCB;
    128132
    129 #elif defined(__i960HA__) || defined(__i960_HA__) || defined(__i960HA)
     133#elif defined(__RTEMS_I960HA__)
    130134
    131135/* i960HA control structures */
Note: See TracChangeset for help on using the changeset viewer.