Changeset 477e2d19 in rtems for cpukit/score/cpu/sparc/cpu.c


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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.