Changeset 17508d02 in rtems for cpukit/score/macros


Ignore:
Timestamp:
Jul 26, 2000, 7:26:28 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
ca7858bb
Parents:
6b4a11bf
Message:

Port of RTEMS to the Texas Instruments C3x/C4x DSP families including
a BSP (c4xsim) supporting the simulator included with gdb. This port
was done by Joel Sherrill and Jennifer Averett of OAR Corporation.
Also included with this port is a space/time optimization to eliminate
FP context switch management on CPUs without hardware or software FP.

An issue with this port was that sizeof(unsigned32) = sizeof(unsigned8)
on this CPU. This required addressing alignment checks and assumptions
as well as fixing code that assumed sizeof(unsigned32) == 4.

Location:
cpukit/score/macros/rtems/score
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/macros/rtems/score/address.inl

    r6b4a11bf r17508d02  
    5252 */
    5353
     54#if (CPU_ALIGNMENT == 0)
     55    (TRUE)
     56#elif defined(RTEMS_CPU_HAS_16_BIT_ADDRESSES)
     57    ( ( (unsigned short)(_address) % CPU_ALIGNMENT ) == 0 )
    5458#define _Addresses_Is_aligned( _address ) \
    5559    ( ( (unsigned32)(_address) % CPU_ALIGNMENT ) == 0 )
     60#else
     61#endif
    5662
    5763/*PAGE
  • cpukit/score/macros/rtems/score/thread.inl

    r6b4a11bf r17508d02  
    6868 */
    6969
     70#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
    7071#define _Thread_Restart_self()  \
    7172  {  \
     
    7576    _CPU_Context_Restart_self( &_Thread_Executing->Registers ); \
    7677  }
     78#else
     79#define _Thread_Restart_self()  \
     80  {  \
     81    _CPU_Context_Restart_self( &_Thread_Executing->Registers ); \
     82  }
     83#endif
    7784
    7885/*PAGE
     
    97104 */
    98105
     106#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
    99107#define _Thread_Is_allocated_fp( _the_thread ) \
    100108        ( (_the_thread) == _Thread_Allocated_fp )
     109#endif
    101110
    102111/*PAGE
     
    106115 */
    107116
     117#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
    108118#define _Thread_Deallocate_fp() \
    109119        _Thread_Allocated_fp = NULL
     120#endif
    110121
    111122/*PAGE
Note: See TracChangeset for help on using the changeset viewer.