Changeset 3560b4f in rtems


Ignore:
Timestamp:
May 11, 2011, 8:46:33 AM (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
f3ea4992
Parents:
7c1f085b
Message:

2011-05-11 Sebastian Huber <sebastian.huber@…>

  • shared/include/powerpc-utility.h: Added ppc_fsl_system_version*() functions.
Location:
c/src/lib/libcpu/powerpc
Files:
2 edited

Legend:

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

    r7c1f085b r3560b4f  
     12011-05-11      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * shared/include/powerpc-utility.h: Added ppc_fsl_system_version*()
     4        functions.
     5
    162011-03-10      Sebastian Huber <sebastian.huber@embedded-brains.de>
    27
  • c/src/lib/libcpu/powerpc/shared/include/powerpc-utility.h

    r7c1f085b r3560b4f  
    772772}
    773773
     774static inline uint32_t ppc_fsl_system_version(void)
     775{
     776  return PPC_SPECIAL_PURPOSE_REGISTER(FSL_EIS_SVR);
     777}
     778
     779static inline uint32_t ppc_fsl_system_version_cid(uint32_t svr)
     780{
     781  return (svr >> 28) & 0xf;
     782}
     783
     784static inline uint32_t ppc_fsl_system_version_sid(uint32_t svr)
     785{
     786  return (svr >> 16) & 0xfff;
     787}
     788
     789static inline uint32_t ppc_fsl_system_version_proc(uint32_t svr)
     790{
     791  return (svr >> 12) & 0xf;
     792}
     793
     794static inline uint32_t ppc_fsl_system_version_mfg(uint32_t svr)
     795{
     796  return (svr >> 8) & 0xf;
     797}
     798
     799static inline uint32_t ppc_fsl_system_version_mjrev(uint32_t svr)
     800{
     801  return (svr >> 4) & 0xf;
     802}
     803
     804static inline uint32_t ppc_fsl_system_version_mnrev(uint32_t svr)
     805{
     806  return (svr >> 0) & 0xf;
     807}
     808
    774809void ppc_code_copy(void *dest, const void *src, size_t n);
    775810
Note: See TracChangeset for help on using the changeset viewer.