From 17508d02bba1d47f4cf884b190566e72f69adb4e Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 26 Jul 2000 19:26:28 +0000 Subject: 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. --- c/src/exec/score/include/rtems/score/thread.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'c/src/exec/score/include') diff --git a/c/src/exec/score/include/rtems/score/thread.h b/c/src/exec/score/include/rtems/score/thread.h index 4c8032f558..99b38e2034 100644 --- a/c/src/exec/score/include/rtems/score/thread.h +++ b/c/src/exec/score/include/rtems/score/thread.h @@ -119,7 +119,9 @@ typedef struct { Priority_Control initial_priority; /* initial priority */ boolean core_allocated_stack; Stack_Control Initial_stack; /* stack information */ +#if ( CPU_HARDWARE_FP == TRUE ) void *fp_context; /* initial FP context area address */ +#endif void *stack; /* initial stack area address */ } Thread_Start_information; @@ -215,7 +217,9 @@ struct Thread_Control_struct { Priority_Information Priority_map; Thread_Start_information Start; Context_Control Registers; +#if ( CPU_HARDWARE_FP == TRUE ) void *fp_context; +#endif void *API_Extensions[ THREAD_API_LAST + 1 ]; void **extensions; rtems_task_variable_t *task_variables; @@ -308,7 +312,9 @@ SCORE_EXTERN Thread_Control *_Thread_Heir; * context is currently loaded. */ +#if ( CPU_HARDWARE_FP == TRUE ) SCORE_EXTERN Thread_Control *_Thread_Allocated_fp; +#endif /* * _Thread_Handler_initialization -- cgit v1.2.3