Changeset af063f6 in rtems


Ignore:
Timestamp:
Aug 19, 2008, 7:10:46 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
fe80163
Parents:
930775d
Message:

2008-08-19 Joel Sherrill <joel.sherrill@…>

  • cpu.c: Fix prototypes.
  • rtems/score/cpu.h: Use memcpy() initialize FP structure and avoid many casts and potential warnings.
Location:
cpukit/score/cpu/i386
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/i386/ChangeLog

    r930775d raf063f6  
     12008-08-19      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * cpu.c: Fix prototypes.
     4        * rtems/score/cpu.h: Use memcpy() initialize FP structure and avoid
     5        many casts and potential warnings.
     6
    172008-08-16      Ralf Corsépius <ralf.corsepius@rtems.org>
    28
  • cpukit/score/cpu/i386/cpu.c

    r930775d raf063f6  
    136136cpuExcHandlerType _currentExcHandler = _defaultExcHandler;
    137137
    138 extern void rtems_exception_prologue_0();
    139 extern void rtems_exception_prologue_1();
    140 extern void rtems_exception_prologue_2();
    141 extern void rtems_exception_prologue_3();
    142 extern void rtems_exception_prologue_4();
    143 extern void rtems_exception_prologue_5();
    144 extern void rtems_exception_prologue_6();
    145 extern void rtems_exception_prologue_7();
    146 extern void rtems_exception_prologue_8();
    147 extern void rtems_exception_prologue_9();
    148 extern void rtems_exception_prologue_10();
    149 extern void rtems_exception_prologue_11();
    150 extern void rtems_exception_prologue_12();
    151 extern void rtems_exception_prologue_13();
    152 extern void rtems_exception_prologue_14();
    153 extern void rtems_exception_prologue_16();
    154 extern void rtems_exception_prologue_17();
    155 extern void rtems_exception_prologue_18();
     138extern void rtems_exception_prologue_0(void);
     139extern void rtems_exception_prologue_1(void);
     140extern void rtems_exception_prologue_2(void);
     141extern void rtems_exception_prologue_3(void);
     142extern void rtems_exception_prologue_4(void);
     143extern void rtems_exception_prologue_5(void);
     144extern void rtems_exception_prologue_6(void);
     145extern void rtems_exception_prologue_7(void);
     146extern void rtems_exception_prologue_8(void);
     147extern void rtems_exception_prologue_9(void);
     148extern void rtems_exception_prologue_10(void);
     149extern void rtems_exception_prologue_11(void);
     150extern void rtems_exception_prologue_12(void);
     151extern void rtems_exception_prologue_13(void);
     152extern void rtems_exception_prologue_14(void);
     153extern void rtems_exception_prologue_16(void);
     154extern void rtems_exception_prologue_17(void);
     155extern void rtems_exception_prologue_18(void);
    156156
    157157static rtems_raw_irq_hdl tbl[] = {
  • cpukit/score/cpu/i386/rtems/score/cpu.h

    r930775d raf063f6  
    1919#ifndef _RTEMS_SCORE_CPU_H
    2020#define _RTEMS_SCORE_CPU_H
     21
     22#include <string.h> /* for memcpy */
    2123
    2224#ifdef __cplusplus
     
    314316#define _CPU_Context_Initialize_fp( _fp_area ) \
    315317  { \
    316     uint32_t   *_source      = (uint32_t   *) &_CPU_Null_fp_context; \
    317     uint32_t   *_destination = *(_fp_area); \
    318     uint32_t    _index; \
    319     \
    320     for ( _index=0 ; _index < CPU_CONTEXT_FP_SIZE/4 ; _index++ ) \
    321       *_destination++ = *_source++; \
     318    memcpy( *_fp_area, &_CPU_Null_fp_context, CPU_CONTEXT_FP_SIZE ); \
    322319  }
    323320
Note: See TracChangeset for help on using the changeset viewer.