Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

Ticket #1782: pr1782.diff

File pr1782.diff, 1.5 KB (added by Joel Sherrill, on 04/22/11 at 16:53:41)

Patch to disable deferred FPU switching when SMP enabled

  • cpukit/score/include/rtems/score/thread.h

    ? ch
    ? c/changes-xxx
    ? c/src/ch
    ? c/src/lib/libbsp/m68k/genmcf548x/joel.diff
    ? doc/started/NOTES
    RCS file: /usr1/CVS/rtems/cpukit/score/include/rtems/score/thread.h,v
    retrieving revision 1.101
    diff -u -r1.101 thread.h
     
    5858  #define __THREAD_DO_NOT_INLINE_ENABLE_DISPATCH__
    5959#endif
    6060
     61/*
     62 *  Deferred floating point context switches are not currently
     63 *  supported when in SMP configuration.
     64 */
     65#if defined(RTEMS_SMP)
     66  #undef  CPU_USE_DEFERRED_FP_SWITCH
     67  #define CPU_USE_DEFERRED_FP_SWITCH FALSE
     68#endif
     69
    6170#ifdef __cplusplus
    6271extern "C" {
    6372#endif
  • doc/porting/taskcontext.t

    RCS file: /usr1/CVS/rtems/doc/porting/taskcontext.t,v
    retrieving revision 1.7
    diff -u -r1.7 taskcontext.t
     
    401401#define CPU_USE_DEFERRED_FP_SWITCH       TRUE
    402402@end example
    403403
     404Note that currently, when in SMP configuration, deferred floating point
     405context switching is unavailable.
     406
    404407@subsection Floating Point Context Data Structure
    405408
    406409The Context_Control_fp contains the per task information for the floating