Changeset 17508d02 in rtems for cpukit/score/inline


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/inline/rtems/score
Files:
2 edited

Legend:

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

    r6b4a11bf r17508d02  
    9191)
    9292{
    93 #if defined(RTEMS_CPU_HAS_16_BIT_ADDRESSES)
     93#if (CPU_ALIGNMENT == 0)
     94    return TRUE;
     95#elif defined(RTEMS_CPU_HAS_16_BIT_ADDRESSES)
    9496    return ( ( (unsigned short)address % CPU_ALIGNMENT ) == 0 );
    9597#else
  • cpukit/score/inline/rtems/score/thread.inl

    r6b4a11bf r17508d02  
    112112RTEMS_INLINE_ROUTINE void _Thread_Restart_self( void )
    113113{
     114#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
    114115  if ( _Thread_Executing->fp_context != NULL )
    115116    _Context_Restore_fp( &_Thread_Executing->fp_context );
     117#endif
    116118
    117119  _CPU_Context_Restart_self( &_Thread_Executing->Registers );
     
    145147 */
    146148
     149#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
    147150RTEMS_INLINE_ROUTINE boolean _Thread_Is_allocated_fp (
    148151  Thread_Control *the_thread
     
    151154  return ( the_thread == _Thread_Allocated_fp );
    152155}
     156#endif
    153157
    154158/*PAGE
     
    162166 */
    163167
     168#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
    164169RTEMS_INLINE_ROUTINE void _Thread_Deallocate_fp( void )
    165170{
    166171  _Thread_Allocated_fp = NULL;
    167172}
     173#endif
    168174
    169175/*PAGE
Note: See TracChangeset for help on using the changeset viewer.