Changeset 2a0a6851 in rtems


Ignore:
Timestamp:
03/30/04 11:47:19 (20 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
e6aeabd
Parents:
d86bae8
Message:

2004-03-30 Ralf Corsepius <ralf_corsepius@…>

  • cpu.c, rtems/score/cpu.h, rtems/score/sparc.h: Convert to using c99 fixed size types.
Location:
cpukit/score/cpu/sparc
Files:
4 edited

Legend:

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

    rd86bae8 r2a0a6851  
     12004-03-30      Ralf Corsepius <ralf_corsepius@rtems.org>
     2
     3        * cpu.c, rtems/score/cpu.h, rtems/score/sparc.h: Convert to using
     4        c99 fixed size types.
     5
    162004-03-29      Ralf Corsepius <ralf_corsepius@rtems.org>
    27
  • cpukit/score/cpu/sparc/cpu.c

    rd86bae8 r2a0a6851  
    8484 */
    8585 
    86 unsigned32 _CPU_ISR_Get_level( void )
    87 {
    88   unsigned32 level;
     86uint32_t  _CPU_ISR_Get_level( void )
     87{
     88  uint32_t  level;
    8989 
    9090  sparc_get_interrupt_level( level );
     
    132132 
    133133void _CPU_ISR_install_raw_handler(
    134   unsigned32  vector,
     134  uint32_t    vector,
    135135  proc_ptr    new_handler,
    136136  proc_ptr   *old_handler
    137137)
    138138{
    139   unsigned32             real_vector;
     139  uint32_t               real_vector;
    140140  CPU_Trap_table_entry  *tbr;
    141141  CPU_Trap_table_entry  *slot;
    142   unsigned32             u32_tbr;
    143   unsigned32             u32_handler;
     142  uint32_t               u32_tbr;
     143  uint32_t               u32_handler;
    144144
    145145  /*
     
    188188  *slot = _CPU_Trap_slot_template;
    189189
    190   u32_handler = (unsigned32) new_handler;
     190  u32_handler = (uint32_t  ) new_handler;
    191191
    192192  slot->mov_vector_l3 |= vector;
     
    219219
    220220void _CPU_ISR_install_vector(
    221   unsigned32  vector,
     221  uint32_t    vector,
    222222  proc_ptr    new_handler,
    223223  proc_ptr   *old_handler
    224224)
    225225{
    226    unsigned32 real_vector;
     226   uint32_t  real_vector;
    227227   proc_ptr   ignored;
    228228
     
    274274void _CPU_Context_Initialize(
    275275  Context_Control  *the_context,
    276   unsigned32       *stack_base,
    277   unsigned32        size,
    278   unsigned32        new_level,
     276  uint32_t         *stack_base,
     277  uint32_t          size,
     278  uint32_t          new_level,
    279279  void             *entry_point,
    280280  boolean           is_fp
    281281)
    282282{
    283     unsigned32   stack_high;  /* highest "stack aligned" address */
    284     unsigned32   the_size;
    285     unsigned32   tmp_psr;
     283    uint32_t     stack_high;  /* highest "stack aligned" address */
     284    uint32_t     the_size;
     285    uint32_t     tmp_psr;
    286286 
    287287    /*
     
    290290     */
    291291 
    292     stack_high = ((unsigned32)(stack_base) + size);
     292    stack_high = ((uint32_t  )(stack_base) + size);
    293293    stack_high &= ~(CPU_STACK_ALIGNMENT - 1);
    294294 
     
    299299     */
    300300 
    301     the_context->o7    = ((unsigned32) entry_point) - 8;
     301    the_context->o7    = ((uint32_t  ) entry_point) - 8;
    302302    the_context->o6_sp = stack_high - CPU_MINIMUM_STACK_FRAME_SIZE;
    303303    the_context->i6_fp = stack_high;
  • cpukit/score/cpu/sparc/rtems/score/cpu.h

    rd86bae8 r2a0a6851  
    211211
    212212typedef struct {
    213   unsigned32  l0;
    214   unsigned32  l1;
    215   unsigned32  l2;
    216   unsigned32  l3;
    217   unsigned32  l4;
    218   unsigned32  l5;
    219   unsigned32  l6;
    220   unsigned32  l7;
    221   unsigned32  i0;
    222   unsigned32  i1;
    223   unsigned32  i2;
    224   unsigned32  i3;
    225   unsigned32  i4;
    226   unsigned32  i5;
    227   unsigned32  i6_fp;
    228   unsigned32  i7;
     213  uint32_t    l0;
     214  uint32_t    l1;
     215  uint32_t    l2;
     216  uint32_t    l3;
     217  uint32_t    l4;
     218  uint32_t    l5;
     219  uint32_t    l6;
     220  uint32_t    l7;
     221  uint32_t    i0;
     222  uint32_t    i1;
     223  uint32_t    i2;
     224  uint32_t    i3;
     225  uint32_t    i4;
     226  uint32_t    i5;
     227  uint32_t    i6_fp;
     228  uint32_t    i7;
    229229  void       *structure_return_address;
    230230  /*
     
    232232   *  should this be necessary.
    233233   */
    234   unsigned32  saved_arg0;
    235   unsigned32  saved_arg1;
    236   unsigned32  saved_arg2;
    237   unsigned32  saved_arg3;
    238   unsigned32  saved_arg4;
    239   unsigned32  saved_arg5;
    240   unsigned32  pad0;
     234  uint32_t    saved_arg0;
     235  uint32_t    saved_arg1;
     236  uint32_t    saved_arg2;
     237  uint32_t    saved_arg3;
     238  uint32_t    saved_arg4;
     239  uint32_t    saved_arg5;
     240  uint32_t    pad0;
    241241}  CPU_Minimum_stack_frame;
    242242
     
    297297     */
    298298    double     g0_g1;
    299     unsigned32 g2;
    300     unsigned32 g3;
    301     unsigned32 g4;
    302     unsigned32 g5;
    303     unsigned32 g6;
    304     unsigned32 g7;
    305 
    306     unsigned32 l0;
    307     unsigned32 l1;
    308     unsigned32 l2;
    309     unsigned32 l3;
    310     unsigned32 l4;
    311     unsigned32 l5;
    312     unsigned32 l6;
    313     unsigned32 l7;
    314 
    315     unsigned32 i0;
    316     unsigned32 i1;
    317     unsigned32 i2;
    318     unsigned32 i3;
    319     unsigned32 i4;
    320     unsigned32 i5;
    321     unsigned32 i6_fp;
    322     unsigned32 i7;
    323 
    324     unsigned32 o0;
    325     unsigned32 o1;
    326     unsigned32 o2;
    327     unsigned32 o3;
    328     unsigned32 o4;
    329     unsigned32 o5;
    330     unsigned32 o6_sp;
    331     unsigned32 o7;
    332 
    333     unsigned32 psr;
     299    uint32_t  g2;
     300    uint32_t  g3;
     301    uint32_t  g4;
     302    uint32_t  g5;
     303    uint32_t  g6;
     304    uint32_t  g7;
     305
     306    uint32_t  l0;
     307    uint32_t  l1;
     308    uint32_t  l2;
     309    uint32_t  l3;
     310    uint32_t  l4;
     311    uint32_t  l5;
     312    uint32_t  l6;
     313    uint32_t  l7;
     314
     315    uint32_t  i0;
     316    uint32_t  i1;
     317    uint32_t  i2;
     318    uint32_t  i3;
     319    uint32_t  i4;
     320    uint32_t  i5;
     321    uint32_t  i6_fp;
     322    uint32_t  i7;
     323
     324    uint32_t  o0;
     325    uint32_t  o1;
     326    uint32_t  o2;
     327    uint32_t  o3;
     328    uint32_t  o4;
     329    uint32_t  o5;
     330    uint32_t  o6_sp;
     331    uint32_t  o7;
     332
     333    uint32_t  psr;
    334334} Context_Control;
    335335
     
    403403    double      f28_f29;
    404404    double      f30_f31;
    405     unsigned32  fsr;
     405    uint32_t    fsr;
    406406} Context_Control_fp;
    407407
     
    443443typedef struct {
    444444  CPU_Minimum_stack_frame  Stack_frame;
    445   unsigned32               psr;
    446   unsigned32               pc;
    447   unsigned32               npc;
    448   unsigned32               g1;
    449   unsigned32               g2;
    450   unsigned32               g3;
    451   unsigned32               g4;
    452   unsigned32               g5;
    453   unsigned32               g6;
    454   unsigned32               g7;
    455   unsigned32               i0;
    456   unsigned32               i1;
    457   unsigned32               i2;
    458   unsigned32               i3;
    459   unsigned32               i4;
    460   unsigned32               i5;
    461   unsigned32               i6_fp;
    462   unsigned32               i7;
    463   unsigned32               y;
    464   unsigned32               tpc;
     445  uint32_t                 psr;
     446  uint32_t                 pc;
     447  uint32_t                 npc;
     448  uint32_t                 g1;
     449  uint32_t                 g2;
     450  uint32_t                 g3;
     451  uint32_t                 g4;
     452  uint32_t                 g5;
     453  uint32_t                 g6;
     454  uint32_t                 g7;
     455  uint32_t                 i0;
     456  uint32_t                 i1;
     457  uint32_t                 i2;
     458  uint32_t                 i3;
     459  uint32_t                 i4;
     460  uint32_t                 i5;
     461  uint32_t                 i6_fp;
     462  uint32_t                 i7;
     463  uint32_t                 y;
     464  uint32_t                 tpc;
    465465} CPU_Interrupt_frame;
    466466
     
    507507  void       (*idle_task)( void );
    508508  boolean      do_zero_of_workspace;
    509   unsigned32   idle_task_stack_size;
    510   unsigned32   interrupt_stack_size;
    511   unsigned32   extra_mpci_receive_server_stack;
    512   void *     (*stack_allocate_hook)( unsigned32 );
     509  uint32_t     idle_task_stack_size;
     510  uint32_t     interrupt_stack_size;
     511  uint32_t     extra_mpci_receive_server_stack;
     512  void *     (*stack_allocate_hook)( uint32_t  );
    513513  void       (*stack_free_hook)( void* );
    514514  /* end of fields required on all CPUs */
     
    561561 
    562562typedef struct {
    563   unsigned32   mov_psr_l0;                     /* mov   %psr, %l0           */
    564   unsigned32   sethi_of_handler_to_l4;         /* sethi %hi(_handler), %l4  */
    565   unsigned32   jmp_to_low_of_handler_plus_l4;  /* jmp   %l4 + %lo(_handler) */
    566   unsigned32   mov_vector_l3;                  /* mov   _vector, %l3        */
     563  uint32_t     mov_psr_l0;                     /* mov   %psr, %l0           */
     564  uint32_t     sethi_of_handler_to_l4;         /* sethi %hi(_handler), %l4  */
     565  uint32_t     jmp_to_low_of_handler_plus_l4;  /* jmp   %l4 + %lo(_handler) */
     566  uint32_t     mov_vector_l3;                  /* mov   _vector, %l3        */
    567567} CPU_Trap_table_entry;
    568568 
     
    749749   sparc_enable_interrupts( _newlevel << 8)
    750750 
    751 unsigned32 _CPU_ISR_Get_level( void );
     751uint32_t  _CPU_ISR_Get_level( void );
    752752 
    753753/* end of ISR handler macros */
     
    771771void _CPU_Context_Initialize(
    772772  Context_Control  *the_context,
    773   unsigned32       *stack_base,
    774   unsigned32        size,
    775   unsigned32        new_level,
     773  uint32_t         *stack_base,
     774  uint32_t          size,
     775  uint32_t          new_level,
    776776  void             *entry_point,
    777777  boolean           is_fp
     
    824824#define _CPU_Fatal_halt( _error ) \
    825825  do { \
    826     unsigned32 level; \
     826    uint32_t  level; \
    827827    \
    828828    level = sparc_disable_interrupts(); \
     
    883883 
    884884void _CPU_ISR_install_raw_handler(
    885   unsigned32  vector,
     885  uint32_t    vector,
    886886  proc_ptr    new_handler,
    887887  proc_ptr   *old_handler
     
    895895
    896896void _CPU_ISR_install_vector(
    897   unsigned32  vector,
     897  uint32_t    vector,
    898898  proc_ptr    new_handler,
    899899  proc_ptr   *old_handler
     
    978978)
    979979{
    980   unsigned32 byte1, byte2, byte3, byte4, swapped;
     980  uint32_t  byte1, byte2, byte3, byte4, swapped;
    981981 
    982982  byte4 = (value >> 24) & 0xff;
  • cpukit/score/cpu/sparc/rtems/score/sparc.h

    rd86bae8 r2a0a6851  
    229229#define sparc_flash_interrupts( _level ) \
    230230  do { \
    231     register unsigned32 _ignored = 0; \
     231    register uint32_t  _ignored = 0; \
    232232    \
    233233    sparc_enable_interrupts( (_level) ); \
     
    238238#define sparc_set_interrupt_level( _new_level ) \
    239239  do { \
    240     register unsigned32 _new_psr_level = 0; \
     240    register uint32_t  _new_psr_level = 0; \
    241241    \
    242242    sparc_get_psr( _new_psr_level ); \
     
    250250#define sparc_get_interrupt_level( _level ) \
    251251  do { \
    252     register unsigned32 _psr_level = 0; \
     252    register uint32_t  _psr_level = 0; \
    253253    \
    254254    sparc_get_psr( _psr_level ); \
Note: See TracChangeset for help on using the changeset viewer.