Changeset bfc9b023 in rtems


Ignore:
Timestamp:
Dec 3, 2007, 3:45:20 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
282048a
Parents:
1b1aca1
Message:

2007-12-03 Joel Sherrill <joel.sherrill@…>

  • shared/include/cpuIdent.h: Correct conditionals and includes.
Location:
c/src/lib/libcpu/powerpc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/ChangeLog

    r1b1aca1 rbfc9b023  
     12007-12-03      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * shared/include/cpuIdent.h: Correct conditionals and includes.
     4
    152007-11-30      Till Straumann <strauman@slac.stanford.edu>
    26
  • c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h

    r1b1aca1 rbfc9b023  
    6767
    6868extern ppc_feature_t   current_ppc_features;
     69extern ppc_cpu_id_t current_ppc_cpu;
     70
     71typedef unsigned short ppc_cpu_revision_t;
     72
     73extern ppc_cpu_id_t get_ppc_cpu_type ();
     74extern char *get_ppc_cpu_type_name(ppc_cpu_id_t cpu);
     75extern ppc_cpu_revision_t get_ppc_cpu_revision ();
     76extern ppc_cpu_revision_t current_ppc_revision;
    6977
    7078/* PUBLIC ACCESS ROUTINES */
    7179#define _PPC_FEAT_DECL(x) \
    72 static inline ppc_cpu_##x() { if ( PPC_UNKNOWN == current_ppc_cpu ) get_ppc_cpu_type(); return current_ppc_features.x; }
     80static inline ppc_cpu_##x() { \
     81  if ( PPC_UNKNOWN == current_ppc_cpu ) \
     82    get_ppc_cpu_type(); \
     83  return current_ppc_features.x; \
     84}
    7385
    7486_PPC_FEAT_DECL(has_altivec)
     
    8193
    8294#undef _PPC_FEAT_DECL
    83 
    84 typedef unsigned short ppc_cpu_revision_t;
    85 
    86 extern ppc_cpu_id_t get_ppc_cpu_type ();
    87 extern ppc_cpu_id_t current_ppc_cpu;
    88 extern char *get_ppc_cpu_type_name(ppc_cpu_id_t cpu);
    89 extern ppc_cpu_revision_t get_ppc_cpu_revision ();
    90 extern ppc_cpu_revision_t current_ppc_revision;
    9195#endif /* ASM */
    9296
Note: See TracChangeset for help on using the changeset viewer.