Changeset 3f71ac1 in rtems


Ignore:
Timestamp:
Mar 31, 2004, 3:47:48 AM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
bad8092c
Parents:
2a832d8
Message:

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

  • include/bsp.h, shmsupp/getcfg.c, startup/bspstart.c, timer/timer.c: Convert to using c99 fixed size types.
Location:
c/src/lib/libbsp/powerpc/psim
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/psim/ChangeLog

    r2a832d8 r3f71ac1  
     12004-03-31      Ralf Corsepius <ralf_corsepius@rtems.org>
     2
     3        * include/bsp.h, shmsupp/getcfg.c, startup/bspstart.c,
     4        timer/timer.c: Convert to using c99 fixed size types.
     5
    162004-02-19      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    27
  • c/src/lib/libbsp/powerpc/psim/include/bsp.h

    r2a832d8 r3f71ac1  
    8282#define Cause_tm27_intr()  \
    8383  do { \
    84     unsigned32 _clicks = 1; \
     84    uint32_t  _clicks = 1; \
    8585    asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
    8686  } while (0)
     
    8989#define Clear_tm27_intr() \
    9090  do { \
    91     unsigned32 _clicks = 0xffffffff; \
     91    uint32_t  _clicks = 0xffffffff; \
    9292    asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
    9393  } while (0)
     
    9595#define Lower_tm27_intr() \
    9696  do { \
    97     unsigned32 _msr = 0; \
     97    uint32_t  _msr = 0; \
    9898    _ISR_Set_level( 0 ); \
    9999    asm volatile( "mfmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
     
    155155extern rtems_cpu_table           Cpu_table;             /* owned by BSP */
    156156
    157 extern rtems_unsigned32          bsp_isr_level;
     157extern uint32_t                  bsp_isr_level;
    158158
    159159#endif /* ASM */
  • c/src/lib/libbsp/powerpc/psim/shmsupp/getcfg.c

    r2a832d8 r3f71ac1  
    3232
    3333void Shm_Get_configuration(
    34   rtems_unsigned32   localnode,
     34  uint32_t           localnode,
    3535  shm_config_table **shmcfg
    3636)
    3737{
    38    BSP_shm_cfgtbl.base         = (rtems_unsigned32 *)0xc0000000;
     38   BSP_shm_cfgtbl.base         = (uint32_t*)0xc0000000;
    3939   BSP_shm_cfgtbl.length       = 64 * 1024;
    4040   BSP_shm_cfgtbl.format       = SHM_BIG;
  • c/src/lib/libbsp/powerpc/psim/startup/bspstart.c

    r2a832d8 r3f71ac1  
    3232
    3333rtems_cpu_table   Cpu_table;
    34 rtems_unsigned32  bsp_isr_level;
     34uint32_t          bsp_isr_level;
    3535
    3636/*
     
    3939
    4040#if 0
    41 extern rtems_unsigned32  rdb_start;
     41extern uint32_t          rdb_start;
    4242#endif
    4343
     
    4747 
    4848void bsp_postdriver_hook(void);
    49 void bsp_libc_init( void *, unsigned32, int );
     49void bsp_libc_init( void *, uint32_t, int );
    5050
    5151/*
     
    5959{
    6060  extern int end;
    61   rtems_unsigned32 heap_start;
    62   rtems_unsigned32 heap_size;
     61  uint32_t        heap_start;
     62  uint32_t        heap_size;
    6363
    64   heap_start = (rtems_unsigned32) &end;
     64  heap_start = (uint32_t) &end;
    6565  if (heap_start & (CPU_ALIGNMENT-1))
    6666    heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
  • c/src/lib/libbsp/powerpc/psim/timer/timer.c

    r2a832d8 r3f71ac1  
    1313#include <bsp.h>
    1414
    15 rtems_unsigned64 Timer_driver_Start_time;
     15uint64_t        Timer_driver_Start_time;
    1616
    1717rtems_boolean Timer_driver_Find_average_overhead;
     
    3333int Read_timer()
    3434{
    35   rtems_unsigned64  clicks;
    36   rtems_unsigned64  total64;
    37   rtems_unsigned32  total;
     35  uint64_t          clicks;
     36  uint64_t          total64;
     37  uint32_t          total;
    3838
    3939  /* approximately CLOCK_SPEED clicks per microsecond */
     
    4545  total64 = clicks - Timer_driver_Start_time;
    4646
    47   assert( total64 <= 0xffffffff );  /* fits into a unsigned32 */
     47  assert( total64 <= 0xffffffff );  /* fits into a uint32_t  */
    4848
    49   total = (rtems_unsigned32) total64;
     49  total = (uint32_t) total64;
    5050
    5151  if ( Timer_driver_Find_average_overhead == 1 )
Note: See TracChangeset for help on using the changeset viewer.