Changeset 477e2d19 in rtems


Ignore:
Timestamp:
Nov 15, 2000, 9:33:35 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
23bdd25e
Parents:
603f30f
Message:

2000-11-14 Jiri Gaisler <jgais@…>

  • cpu.c, rtems/cpu/sparc.h: Make floating point optional based on gcc arguments. Do not initialize FP context if there is no FPU. Flush instruction cache after installing RTEMS trap handler.
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/cpu/sparc/ChangeLog

    r603f30f r477e2d19  
     12000-11-14      Jiri Gaisler <jgais@ws.estec.esa.nl>
     2
     3        * cpu.c, rtems/cpu/sparc.h: Make floating point optional based
     4        on gcc arguments.  Do not initialize FP context if there is
     5        no FPU.  Flush instruction cache after installing RTEMS trap handler.
     6
    172000-11-09      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    28
  • c/src/exec/score/cpu/sparc/cpu.c

    r603f30f r477e2d19  
    8787#endif
    8888
     89#if (SPARC_HAS_FPU == 1)
     90
    8991  /*
    9092   *  This seems to be the most appropriate way to obtain an initial
     
    9597  pointer = &_CPU_Null_fp_context;
    9698  _CPU_Context_save_fp( &pointer );
     99#endif
    97100
    98101  /*
     
    223226    (u32_handler & HIGH_BITS_MASK) >> HIGH_BITS_SHIFT;
    224227  slot->jmp_to_low_of_handler_plus_l4 |= (u32_handler & LOW_BITS_MASK);
     228
     229  /* need to flush icache after this !!! */
     230
     231  rtems_cache_invalidate_entire_instruction();
     232
    225233}
    226234
  • c/src/exec/score/cpu/sparc/rtems/score/sparc.h

    r603f30f r477e2d19  
    6666 */
    6767
    68 #define SPARC_HAS_FPU                    1
     68
     69#if defined(_SOFT_FLOAT)
     70#define SPARC_HAS_FPU 0
     71#else
     72#define SPARC_HAS_FPU 1
     73#endif
    6974
    7075#if SPARC_HAS_FPU
  • cpukit/score/cpu/sparc/ChangeLog

    r603f30f r477e2d19  
     12000-11-14      Jiri Gaisler <jgais@ws.estec.esa.nl>
     2
     3        * cpu.c, rtems/cpu/sparc.h: Make floating point optional based
     4        on gcc arguments.  Do not initialize FP context if there is
     5        no FPU.  Flush instruction cache after installing RTEMS trap handler.
     6
    172000-11-09      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    28
  • cpukit/score/cpu/sparc/cpu.c

    r603f30f r477e2d19  
    8787#endif
    8888
     89#if (SPARC_HAS_FPU == 1)
     90
    8991  /*
    9092   *  This seems to be the most appropriate way to obtain an initial
     
    9597  pointer = &_CPU_Null_fp_context;
    9698  _CPU_Context_save_fp( &pointer );
     99#endif
    97100
    98101  /*
     
    223226    (u32_handler & HIGH_BITS_MASK) >> HIGH_BITS_SHIFT;
    224227  slot->jmp_to_low_of_handler_plus_l4 |= (u32_handler & LOW_BITS_MASK);
     228
     229  /* need to flush icache after this !!! */
     230
     231  rtems_cache_invalidate_entire_instruction();
     232
    225233}
    226234
  • cpukit/score/cpu/sparc/rtems/score/sparc.h

    r603f30f r477e2d19  
    6666 */
    6767
    68 #define SPARC_HAS_FPU                    1
     68
     69#if defined(_SOFT_FLOAT)
     70#define SPARC_HAS_FPU 0
     71#else
     72#define SPARC_HAS_FPU 1
     73#endif
    6974
    7075#if SPARC_HAS_FPU
Note: See TracChangeset for help on using the changeset viewer.