예제 #1
0
파일: cpu.c 프로젝트: cloud-hot/rtems
void _CPU_Initialize(void)
{
#if (SPARC_HAS_FPU == 1)
  Context_Control_fp *pointer;

  /*
   *  This seems to be the most appropriate way to obtain an initial
   *  FP context on the SPARC.  The NULL fp context is copied it to
   *  the task's FP context during Context_Initialize.
   */

  pointer = &_CPU_Null_fp_context;
  _CPU_Context_save_fp( &pointer );
#endif
}
예제 #2
0
void _CPU_Initialize(void)
{
#if (SPARC_HAS_FPU == 1) && !defined(SPARC_USE_SAFE_FP_SUPPORT)
  Context_Control_fp *pointer;
  uint32_t            psr;

  sparc_get_psr( psr );
  psr |= SPARC_PSR_EF_MASK;
  sparc_set_psr( psr );

  /*
   *  This seems to be the most appropriate way to obtain an initial
   *  FP context on the SPARC.  The NULL fp context is copied it to
   *  the task's FP context during Context_Initialize.
   */

  pointer = &_CPU_Null_fp_context;
  _CPU_Context_save_fp( &pointer );
#endif
}
예제 #3
0
void _CPU_Initialize(void)
{
#if (SPARC_HAS_FPU == 1)
    Context_Control_fp *pointer;

    /*
     *  This seems to be the most appropriate way to obtain an initial
     *  FP context on the SPARC.  The NULL fp context is copied it to
     *  the task's FP context during Context_Initialize.
     */

    pointer = &_CPU_Null_fp_context;
    _CPU_Context_save_fp( &pointer );
#endif

    /*
     *  Since no tasks have been created yet and no interrupts have occurred,
     *  there is no way that the currently executing thread can have an
     *  _ISR_Dispatch stack frame on its stack.
     */
    _CPU_ISR_Dispatch_disable = 0;
}